Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

8723au AP mode #43

Open
yankerssnh opened this issue Jun 24, 2014 · 14 comments
Open

8723au AP mode #43

yankerssnh opened this issue Jun 24, 2014 · 14 comments

Comments

@yankerssnh
Copy link

Kernel: 3.0.35
Wpa_supplicant: 2.2

When starting wpa_supplicant, got "wlan0: Driver does not support AP mode"

  1. Driver wext:
    /wpa_supplicant -Dwext -iwlan0 -c/etc/wpaAP.conf
    Successfully initialized wpa_supplicant
    ioctl[SIOCSIWAP]: Operation not permitted
    wlan0: Driver does not support AP mode
    wlan0: Driver does not support AP mode
  2. Driver nl80211
    wpa_supplicant -Dnl80211 -iwlan0 -c/etc/wpaAP.conf
    Successfully initialized wpa_supplicant
    wlan0: Failed to initialize driver interface

How to solve?

@lwfinger
Copy link
Owner

First of all, you should switch to the kernel from git://git.kernel.org/pub/scm/linux/kernel/git/jes/linux.git. That is where all current development is taking place. Jes Sorensen, who is the maintainer for the driver, has put a lot of effort into making the driver work with the cfg80211 ioctls that are needed to operate with the nl80211 interface. This repo was intended to provide a driver until it was incorporated into the kernel. That step has now been accomplished.

@yankerssnh
Copy link
Author

I tried src from this:
git clone -b kernel_version https://github.com/lwfinger/rtl8723au.git

but I use rtl8723au on ARM linux, I can not change kernel to another

kernel_version can not build in my environment. I think it need higher version of kernel

@lwfinger
Copy link
Owner

I was not talking about using the kernel-version branch, but switching to a completely new kernel. As you did not say what ARM device you are using, I have no idea what modifications are required to use that kernel with your device. Unfortunately, there is not a lot of standardization in the ARM world.

To build the kernel-version branch, you would need to backport that code to your older kernel. The differences between the master and kernel-version branches should give you a clue.

@yankerssnh
Copy link
Author

If I will upgrade to 3.5 kernel, will it solve problem?

@lwfinger
Copy link
Owner

Probably not. The version of the driver that supports nl80211 commands is from the current kernel, and that code is what constitutes the kernel-version branch of this repo. It requires kernel 3.15, but it may build with 3.14.

@yankerssnh
Copy link
Author

Oh, imx provide only 3.10 kernel. Few days will try build on 3.10 kernel

@yankerssnh
Copy link
Author

Now kernel 3.10.17. During make get errors:
lucid@ubuntu14:~/rtl8723au$ make
make ARCH=arm CROSS_COMPILE=/home/lucid/fsl-release-bsp/build/tmp/sysroots/i686-linux/usr/bin/cortexa9hf-vfp-neon-poky-linux-gnueabi/arm-poky-linux-gnueabi- -C /home/lucid/fsl-release-bsp/build/tmp/work/imx6qsabresd-poky-linux-gnueabi/linux-imx/3.10.17-r0/git M=/home/lucid/rtl8723au modules
make[1]: Entering directory /home/lucid/fsl-release-bsp/build/tmp/work/imx6qsabresd-poky-linux-gnueabi/linux-imx/3.10.17-r0/git' CC [M] /home/lucid/rtl8723au/core/rtw_cmd.o /home/lucid/rtl8723au/core/rtw_cmd.c: In function 'rtw_joinbss_cmd23a': /home/lucid/rtl8723au/core/rtw_cmd.c:555:3: error: implicit declaration of function 'ether_addr_copy' [-Werror=implicit-function-declaration] ether_addr_copy(&pmlmepriv->assoc_bssid[0], ^ cc1: some warnings being treated as errors make[2]: *** [/home/lucid/rtl8723au/core/rtw_cmd.o] Error 1 make[1]: *** [_module_/home/lucid/rtl8723au] Error 2 make[1]: Leaving directory/home/lucid/fsl-release-bsp/build/tmp/work/imx6qsabresd-poky-linux-gnueabi/linux-imx/3.10.17-r0/git'
make: *** [modules] Error 2

@lwfinger
Copy link
Owner

lwfinger commented Jul 2, 2014

What branch are you using?

@yankerssnh
Copy link
Author

kernel_version.

I corrected sources of your driver and add some missing declaration for kernel. Now it had builded, but without BT. Will try how AP mode will work.

@lwfinger
Copy link
Owner

lwfinger commented Jul 2, 2014

Branch kernel_version is for the current kernel (3.16). If you want to build it on kernels older than 3.14, you must fix such problems yourself. For my purposes, that branch cannot have any code that is conditional on the kernel version.

@yankerssnh
Copy link
Author

root@imx6qsabresd:~# insmod 8723au.ko
8723au: module license 'unspecified' taints kernel.
Disabling lock debugging due to kernel taint
8723au: Unknown symbol rtw_os_xmit_resource_free23a (err 0)
8723au: Unknown symbol PHY_SetBWMode23a8723A (err 0)
8723au: Unknown symbol ODM_Write_DIG23a (err 0)
8723au: Unknown symbol rtl8723au_read16 (err 0)
8723au: Unknown symbol rtw_hw_suspend23a (err 0)
8723au: Unknown symbol rtw_reset_securitypriv23a (err 0)
8723au: Unknown symbol rtw_hw_resume23a (err 0)
8723au: Unknown symbol GetHalDefVar8192CUsb (err 0)
8723au: Unknown symbol rtl8723au_mgnt_xmit (err 0)
8723au: Unknown symbol PHY_SetRFReg (err 0)
8723au: Unknown symbol rtw_cancel_all_timer23a (err 0)
8723au: Unknown symbol RfOnOffDetect23a (err 0)
8723au: Unknown symbol c2h_id_filter_ccx_8723a (err 0)
8723au: Unknown symbol SwLedOn23a (err 0)
8723au: Unknown symbol rtw_os_xmit_complete23a (err 0)
8723au: Unknown symbol CCKSwingTable_Ch1_Ch1323A (err 0)
8723au: Unknown symbol rtl8723au_hal_xmitframe_enqueue (err 0)
8723au: Unknown symbol rtw_cfg80211_surveydone_event_callback (err 0)
8723au: Unknown symbol rtw_cfg80211_indicate_scan_done (err 0)
8723au: Unknown symbol ODM_SetBBReg (err 0)
8723au: Unknown symbol rtl8723a_set_FwPwrMode_cmd (err 0)
8723au: Unknown symbol rtl8723a_SetBeaconRelatedRegisters (err 0)
8723au: Unknown symbol _rtw_init_queue23a (err 0)
8723au: Unknown symbol rtl8723a_readefuse (err 0)
8723au: Unknown symbol c2h_handler_8723a (err 0)
8723au: Unknown symbol rtl8723au_write16 (err 0)
8723au: Unknown symbol rtl8723a_EfuseGetCurrentSize_BT (err 0)
8723au: Unknown symbol rtw_os_pkt_complete23a (err 0)
8723au: Unknown symbol ODM_Write1Byte (err 0)
8723au: Unknown symbol rtl8723a_update_ramask (err 0)
8723au: Unknown symbol rtl8723au_write8 (err 0)
8723au: Unknown symbol rtl8723a_HalDmWatchDog (err 0)
8723au: Unknown symbol PHY_SwChnl8723A (err 0)
8723au: Unknown symbol rtw_cfg80211_indicate_sta_assoc (err 0)
8723au: Unknown symbol rtw_cfg80211_pwr_mgmt (err 0)
8723au: Unknown symbol rtl8723au_write32 (err 0)
8723au: Unknown symbol ODM_SetRFReg (err 0)
8723au: Unknown symbol rtl8723a_add_rateatid (err 0)
8723au: Unknown symbol rtl8723au_xmit_tasklet (err 0)
8723au: Unknown symbol hw_var_set_bssid (err 0)
8723au: Unknown symbol rtw_recv_indicatepkt23a (err 0)
8723au: Unknown symbol rtw_init_recv_timer23a (err 0)
8723au: Unknown symbol rtl8723au_init_recv_priv (err 0)
8723au: Unknown symbol rtw_cfg80211_indicate_sta_disassoc (err 0)
8723au: Unknown symbol rtl8723a_EfuseGetCurrentSize_WiFi (err 0)
8723au: Unknown symbol hw_var_set_mlme_disconnect (err 0)
8723au: Unknown symbol PHY_SetBBReg (err 0)
8723au: Unknown symbol rtl8723au_free_recv_priv (err 0)
8723au: Unknown symbol rtw_cfg80211_indicate_connect (err 0)
8723au: Unknown symbol OFDMSwingTable23A (err 0)
8723au: Unknown symbol PHY_QueryRFReg (err 0)
8723au: Unknown symbol rtl8723a_set_FwJoinBssReport_cmd (err 0)
8723au: Unknown symbol rtl8723a_sreset_linked_status_check (err 0)
8723au: Unknown symbol SwLedOff23a (err 0)
8723au: Unknown symbol GlobalDebugLevel23A (err 0)
8723au: Unknown symbol rtl8723au_read8 (err 0)
8723au: Unknown symbol hw_var_set_correct_tsf (err 0)
8723au: Unknown symbol rtl8723a_SetHalODMVar (err 0)
8723au: Unknown symbol cancel_work_sync (err 0)
8723au: Unknown symbol find_vpid (err 0)
8723au: Unknown symbol CCKSwingTable_Ch1423A (err 0)
8723au: Unknown symbol rtl8723au_read32 (err 0)
8723au: Unknown symbol PHY_QueryBBReg (err 0)
8723au: Unknown symbol hw_var_set_mlme_join (err 0)
8723au: Unknown symbol __alloc_workqueue_key (err 0)
8723au: Unknown symbol SetBcnCtrlReg23a (err 0)
8723au: Unknown symbol rtw_os_indicate_disconnect23a (err 0)
8723au: Unknown symbol rtl8723a_sreset_xmit_status_check (err 0)
8723au: Unknown symbol rtw_os_xmit_schedule23a (err 0)
8723au: Unknown symbol rtw_os_xmit_resource_alloc23a (err 0)
8723au: Unknown symbol rtl8723au_hal_xmit (err 0)
8723au: Unknown symbol rtw_handle_tkip_mic_err23a (err 0)
8723au: Unknown symbol rtw_ips_pwr_up23a (err 0)
8723au: Unknown symbol rtw_cfg80211_indicate_disconnect (err 0)
8723au: Unknown symbol rtw_ips_pwr_down23a (err 0)
8723au: Unknown symbol hw_var_set_opmode (err 0)
insmod: ERROR: could not insert module 8723au.ko: Unknown symbol in module

@lwfinger
Copy link
Owner

lwfinger commented Jul 3, 2014

The kernel headers used to build the module do not match the running kernel. Other than that, I have no idea what happened.

Because ARM is such a mess of different kernel modifications needed for each type of board, there are always problems like this. I do not know what to tell you to do.

@yankerssnh
Copy link
Author

Maybe main branch will be support AP mode? Have you this plans? I mean for not newest kernel, but for 3.10+ kernel, or the best for 3.0+ kernel

@lwfinger
Copy link
Owner

lwfinger commented Jul 3, 2014

I have no plans to update the main branch, and the kernel-version will just get the latest code copied from the kernel source. As the driver is now in the kernel, and that version supports cfg80211, I see no purpose in maintaining an older version. If you cannot use a new kernel, but want the latest driver for the rtl8723au, you will need to do the backport yourself. The Backports project will show you some of the things that need to be done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants