Hi All,
Here i'm using Ath9 series of chips for WiFi-BT, when i disable wifi-direct feature on Freescale Android JB.4.2.2.1 version, wiFi feature works and when i enable, it fails with following error.
D/CommandListener( 2171): Setting iface cfg
D/CommandListener( 2171): Trying to bring down wlan0
E/WifiHW ( 2547): wifi_start_supplicant p2p=1
E/WifiHW ( 2547): Wi-Fi will ensure config file exist
E/WifiHW ( 2547): start supplicant cmd=p2p_supplicant
I/wpa_supplicant( 3178): Successfully initialized wpa_supplicant
I/wpa_supplicant( 3178): rfkill: Cannot open RFKILL control device
E/wpa_supplicant( 3178): nl80211: Could not configure driver to use managed mode
E/wpa_supplicant( 3178): Could not read interface p2p0 flags: No such device
E/wpa_supplicant( 3178): p2p0: Failed to initialize driver interface
E/WifiStateMachine( 2547): Failed to start supplicant!
W/Netd ( 2171): No subsystem found in netlink event
D/NetlinkEvent( 2171): Unexpected netlink message. type=0x11
Fails to enable P2P interface,
Please guide me regarding this issue.
thanks,
Sandesh D
Solved! Go to Solution.
Hi ,
P2P is supported on kernel 3.0.15. The P2P driver is not part of the kernel instead is part of the wpa supplicant user space program.
I tried to find your chipset in order to ensure you are using the latest driver and firmware but i didn't find that chipset you are using. Are you using ar9285 or are sure is ath9245?
http://wikidevi.com/wiki/Atheros
As comment Android doesn't use the drivers which are part of the kernel. Instead they use the lasted upstream drivers and provide the binaries in the packet.
Maybe you could check if you drivers are the latest ones specially the driver nl80211 which is not part of the kernel but comes in the wpa supplicant program.
Some instructions on how install and compile are in the first link and also here:
Regards,
-Israel.
Hi All,
Here i'm using Ath9 (AR5BHB116) series of chips for PCie-WiFi. I am using i.Mx6 processor. I am trying to bring up Wi-Fi in the Android Jellybean and I am using Freescale JellyBean-4.3-1.1.0-ga release source code. I have added the source changes to load the modules for this chip. While turning ON the Wi-Fi, I am getting the below error messages and the Wi-Fi is turning ON:
D/Tethering( 2541): sendTetherStateChangedBroadcast 1, 0, 0
D/Tethering( 2541): InitialState.processMessage what=4
D/Tethering( 2541): sendTetherStateChangedBroadcast 0, 0, 0
E/WifiHW ( 2258): Failed to open wlan fw path param (No such file or directory)
E/SoftapController( 2258): Softap fwReload failed
E/WifiStateMachine( 2541): Failed to reload STA firmware java.lang.IllegalStateException: command '9 softap fwreload wlan0 STA' failed with '400 9 SoftAP command has failed'
D/CommandListener( 2258): Setting iface cfg
D/CommandListener( 2258): Trying to bring down wlan0
E/WifiHW ( 2541): Unable to open connection to supplicant on "/data/system/wpa_supplicant/wlan0": No such file or directory
D/BluetoothAdapter( 2758): 1100334080: getState() : mService = null. Returning STATE_OFF
I/wpa_supplicant( 3368): Successfully initialized wpa_supplicant
I/wpa_supplicant( 3368): rfkill: Cannot open RFKILL control device
E/wpa_supplicant( 3368): nl80211: Could not configure driver to use managed mode
E/wpa_supplicant( 3368): Could not read interface p2p0 flags: No such device
E/wpa_supplicant( 3368): p2p0: Failed to initialize driver interface
E/WifiHW ( 2541): Supplicant not running, cannot connect
E/WifiHW ( 2541): Supplicant not running, cannot connect
E/WifiHW ( 2541): Supplicant not running, cannot connect
E/WifiHW ( 2541): Supplicant not running, cannot connect
E/WifiHW ( 2541): Supplicant not running, cannot connect
E/WifiStateMachine( 2541): Failed to setup control channel, restart supplicant
D/WifiHW ( 2541): Fail to Load cfg80211 module
E/WifiStateMachine( 2541): Failed to load driver
Please let me know what might be the cause for this issue and give me any solution to solve this issue.
Thanks in advance,
Regards,
Salih
Our engineer has below reply. Please see if it answers your question. And please click Correct Answer/Helpful Answer if it does.
-----------------------------------------------------------------------------
Seem the error messages are caused because rfkill callback is not implemented in your board file or in the driver.
Also seem the driver lacks of others functionalities.
You could take as example the code for mx6sl-evk in arch/arm/mach-mx6/board-mx6sl_evk.c Look for structure imx_bt_rfkill_platformdata which provides the callback to mx6sl_evk_bt_power_chnage. Similar work need to be done for Wifi. https://www.kernel.org/doc/Documentation/rfkill.txt
------------------------------------------------------------------------------
Thanks,
I enabled RFKILL in defconfig and this fixed that issue and fails to enable WiFI direct feature on ath9245 chip because 3.0.15 kernel doesnt have P2P feature support on this version.
Please let me know do you have any kernel driver changes to support WiFi Direct feature on Ath9k series.?
Hi ,
P2P is supported on kernel 3.0.15. The P2P driver is not part of the kernel instead is part of the wpa supplicant user space program.
I tried to find your chipset in order to ensure you are using the latest driver and firmware but i didn't find that chipset you are using. Are you using ar9285 or are sure is ath9245?
http://wikidevi.com/wiki/Atheros
As comment Android doesn't use the drivers which are part of the kernel. Instead they use the lasted upstream drivers and provide the binaries in the packet.
Maybe you could check if you drivers are the latest ones specially the driver nl80211 which is not part of the kernel but comes in the wpa supplicant program.
Some instructions on how install and compile are in the first link and also here:
Regards,
-Israel.
Thanks Israel,
Sorry typo error while repling to Yixing mail, i'm using Atheros AR3012 + AR9485 chip to bringup wifi+ BT.
http://www.sparklan.com/product.php?func=view&prod_id=198
I'm using Freescale released Android source code hardware/imx/wlan/atheros/compat-wireless/ to configure for 9485 based chipset and as of now it's working for wlan and BT interface. but not P2P interface.
Regards,
Sandesh D
Sandesh, will Juan and Israel's response help you? Are you ok for us to close the DI? If not please keep working with our engineer. We may close the DI if no activity in 3 days.
Thanks,
Yixing
Yixing,
No not yet resolved this issue. Still working on this issue.
Thanks,
Sandesh D
Sandesh, we are closing the DI now since yo may take long time to get back to here. You may create another dicussion here once you have any new question.
Thanks,
Yixing
This issue should be reopened. I experienced the same issues with getting the Atheros 9462 up and running. The p2p0 interface does not exist under /sys/class/net and this stops even basic Wifi functionality from working. The only way to get the basic Wifi to work is to strip out P2P from the supplicant and device configuration.
The P2P functionality is essential for my company going forward. In addition, we experienced similar and worse problems trying to get the Intel 3160 (which supports P2P) up and running. We were advised on the linux-wireless network that we needed to update the supplicant to v2.2+. However, this requires the Freescale Intel wpa supplicant nl80211 private code to be updated as well (the code under myandroid/hardware/imx/wlan/intel/wpa_supplicant_8_lib).
Michael Robbeloth
Sandesh, is there any progress on this issue? Could you report your status here and keep workng with Juan?
Thanks,
Yixing
Hi
Im not sure for Ath9 series but For Ath6k, if you installed the drivers manually you need to pass some arguments to enable the p2p support.
insmod /lib/modules/compat.ko
insmod /lib/modules/cfg80211.ko
insmod /lib/modules/ath6kl_sdio.ko suspend_mode=3 wow_mode=2 ar6k_clock=26000000 ath6kl_p2p=1 debug_mask=0x2413
Android also installed the drivers automatically when turning wifi on, and this arguments are configured at
/hardware/libhardware_legacy/wifi/wifi_unite.c:
#define WIFI_DRIVER_MODULE_PATH_ATHEROS "/system/lib/modules/ath6kl_sdio.ko"
#define WIFI_DRIVER_MODULE_NAME_ATHEROS "ath6kl_sdio"
#define WIFI_DRIVER_MODULE_ARG_ATHEROS "suspend_mode=3 wow_mode=2 ar6k_clock=26000000 ath6kl_p2p=1"
#define WIFI_DRIVER_P2P_MODULE_ARG_ATHEROS "suspend_mode=3 wow_mode=2 ar6k_clock=26000000 ath6kl_p2p=1 debug_mask=0x2413”
#define WIFI_SDIO_IF_DRIVER_MODULE_PATH_ATHEROS "/system/lib/modules/cfg80211.ko"
#define WIFI_SDIO_IF_DRIVER_MODULE_NAME "cfg80211"
You can check if there is something similar or missing for ath9 series