Hi TI,
My board is based on Android4.2.2(4AJ.2.5P2 OMAP4). Now I already ported the WL18xx R8.5 drivers to my board. But it seems libhardware_legacy have some problems to support the new wifi driver. Is it related to libnl? But in Blazetablet board, I can't find the libnl* file.
If I use the old driver, there has no libnl* file too. But there is no the errors below. Could you kindly show me what should me to port or change?
Android error logs with the R8.5 drivers:
11-05 15:04:40.343 416 535 W WifiHW : Wien wifi load driver ok, DRIVER_PROP_NAME=wlan.driver.status
11-05 15:04:40.351 94 353 W CommandListener: Failed to retrieve HW addr for wlan0 (No such device)
11-05 15:04:40.351 416 430 D PowerManagerService: mScreenOffTimeoutSetting =300000
11-05 15:04:40.359 94 353 D CommandListener: Setting iface cfg
11-05 15:04:40.359 416 433 I Zygote : Process: zygote socket opened
11-05 15:04:40.359 416 528 E WifiStateMachine: Unable to change interface settings: java.lang.IllegalStateException: command '4 interface setcfg wlan0 0.0.0.0 0 down' failed with '400 4 Failed to set address (No such device)'
11-05 15:04:40.359 416 528 D WifiHW : Wien wifi wifi_stop_supplicant
11-05 15:04:40.359 416 528 D WifiHW : Wien wifi wifi_start_supplicant
11-05 15:04:40.359 416 430 I ActivityManager: Sending system update to ComponentInfo{com.android.providers.media/com.android.providers.media.MediaUpgradeReceiver} for user 0
11-05 15:04:40.359 416 430 I SystemServer: Enabled StrictMode for system server main thread.
11-05 15:04:40.367 416 528 E WifiHW : ctrl_interface != /data/misc/wifi/sockets
11-05 15:04:40.367 416 528 D WifiHW : Wien wifi add_remove_p2p_interface, 1
11-05 15:04:40.367 416 528 D WifiHW : Wien wifi to init nl
11-05 15:04:40.367 416 528 D WifiHW : Wien wifi init nl done
11-05 15:04:40.367 416 528 D WifiHW : Wien wifi execute_nl_interface_cmd
11-05 15:04:40.367 416 528 D WifiHW : Wien wifi phy_lookup
11-05 15:04:40.367 416 528 E WifiHW : unexpected - found 0 phys in /sys/class/ieee80211
11-05 15:04:40.367 416 528 D WifiHW : Wien wifi nl_error_handler
11-05 15:04:40.367 416 528 E WifiHW : could not add P2P interface: -19
11-05 15:04:40.367 416 528 D WifiHW : Wien wifi delete nl
11-05 15:04:40.367 416 528 E WifiHW : Wi-Fi - could not create p2p interface
11-05 15:04:40.367 416 528 E WifiStateMachine: Failed to start supplicant!
11-05 15:04:40.367 416 574 D WifiHW : Wien wifi unloaded driver
11-05 15:04:40.351 94 353 W CommandListener: Failed to retrieve HW addr for wlan0 (No such device)
11-05 15:04:40.351 416 430 D PowerManagerService: mScreenOffTimeoutSetting =300000
11-05 15:04:40.359 94 353 D CommandListener: Setting iface cfg
11-05 15:04:40.359 416 433 I Zygote : Process: zygote socket opened
11-05 15:04:40.359 416 528 E WifiStateMachine: Unable to change interface settings: java.lang.IllegalStateException: command '4 interface setcfg wlan0 0.0.0.0 0 down' failed with '400 4 Failed to set address (No such device)'
11-05 15:04:40.359 416 528 D WifiHW : Wien wifi wifi_stop_supplicant
11-05 15:04:40.359 416 528 D WifiHW : Wien wifi wifi_start_supplicant
11-05 15:04:40.359 416 430 I ActivityManager: Sending system update to ComponentInfo{com.android.providers.media/com.android.providers.media.MediaUpgradeReceiver} for user 0
11-05 15:04:40.359 416 430 I SystemServer: Enabled StrictMode for system server main thread.
11-05 15:04:40.367 416 528 E WifiHW : ctrl_interface != /data/misc/wifi/sockets
11-05 15:04:40.367 416 528 D WifiHW : Wien wifi add_remove_p2p_interface, 1
11-05 15:04:40.367 416 528 D WifiHW : Wien wifi to init nl
11-05 15:04:40.367 416 528 D WifiHW : Wien wifi init nl done
11-05 15:04:40.367 416 528 D WifiHW : Wien wifi execute_nl_interface_cmd
11-05 15:04:40.367 416 528 D WifiHW : Wien wifi phy_lookup
11-05 15:04:40.367 416 528 E WifiHW : unexpected - found 0 phys in /sys/class/ieee80211
11-05 15:04:40.367 416 528 D WifiHW : Wien wifi nl_error_handler
11-05 15:04:40.367 416 528 E WifiHW : could not add P2P interface: -19
11-05 15:04:40.367 416 528 D WifiHW : Wien wifi delete nl
11-05 15:04:40.367 416 528 E WifiHW : Wi-Fi - could not create p2p interface
11-05 15:04:40.367 416 528 E WifiStateMachine: Failed to start supplicant!
11-05 15:04:40.367 416 574 D WifiHW : Wien wifi unloaded driver
11-05 15:25:51.031 416 1230 D WifiHW : Wien wifi to load driver
11-05 15:25:51.031 416 1230 D WifiHW : Wien wifi is_wifi_driver_loaded
11-05 15:25:51.031 416 1230 D WifiHW : Wien wifi driver is found
11-05 15:25:51.031 416 1230 W WifiHW : Wien wifi driver is already loaded, ko=/system/lib/modules/wlcore_sdio.ko, arg=
11-05 15:25:51.031 416 732 D WifiService: setWifiEnabled: true pid=733, uid=1000
11-05 15:25:51.039 94 353 D CommandListener: Setting iface cfg
11-05 15:25:51.039 94 353 D CommandListener: Trying to bring down wlan0
11-05 15:25:51.039 416 528 D WifiHW : Wien wifi wifi_stop_supplicant
11-05 15:25:51.039 416 528 D WifiHW : Wien wifi wifi_start_supplicant
11-05 15:25:51.039 416 528 D WifiHW : Wien wifi add_remove_p2p_interface, 1
11-05 15:25:51.039 416 528 D WifiHW : Wien wifi to init nl
11-05 15:25:51.039 416 528 D WifiHW : Wien wifi init nl done
11-05 15:25:51.039 416 528 D WifiHW : Wien wifi execute_nl_interface_cmd
11-05 15:25:51.039 416 528 D WifiHW : Wien wifi phy_lookup
11-05 15:25:51.046 416 528 D WifiHW : Wien wifi nl_error_handler
11-05 15:25:51.046 416 528 D WifiHW : added/removed p2p interface. add: 1
11-05 15:25:51.046 416 528 D WifiHW : Wien wifi delete nl
11-05 15:25:51.054 733 733 D BluetoothAdapter: 1092501048: getState() : mService = null. Returning STATE_OFF
11-05 15:25:51.078 1231 1231 I wpa_supplicant: Successfully initialized wpa_supplicant
11-05 15:25:51.078 1231 1231 I wpa_supplicant: rfkill: Cannot open RFKILL control device
11-05 15:25:51.148 416 1232 D WifiHW : Wien wifi wifi_connect_to_supplicant, wlan0
11-05 15:25:51.703 1231 1231 I wpa_supplicant: rfkill: Cannot open RFKILL control device
11-05 15:25:51.773 416 528 D WifiHW : Wien wifi wifi_command, DRIVER MACADDR
11-05 15:25:51.773 416 528 D WifiHW : Wien wifi wifi_send_command, DRIVER MACADDR
11-05 15:25:51.773 416 528 D WifiHW : Wien wifi wifi_command, LIST_NETWORKS
11-05 15:25:51.773 416 528 D WifiHW : Wien wifi wifi_send_command, LIST_NETWORKS
11-05 15:25:51.781 416 528 E WifiConfigStore: Error parsing configurationjava.io.FileNotFoundException: /data/misc/wifi/ipconfig.txt: open failed: ENOENT (No such file or directory)
11-05 15:25:51.031 416 1230 D WifiHW : Wien wifi is_wifi_driver_loaded
11-05 15:25:51.031 416 1230 D WifiHW : Wien wifi driver is found
11-05 15:25:51.031 416 1230 W WifiHW : Wien wifi driver is already loaded, ko=/system/lib/modules/wlcore_sdio.ko, arg=
11-05 15:25:51.031 416 732 D WifiService: setWifiEnabled: true pid=733, uid=1000
11-05 15:25:51.039 94 353 D CommandListener: Setting iface cfg
11-05 15:25:51.039 94 353 D CommandListener: Trying to bring down wlan0
11-05 15:25:51.039 416 528 D WifiHW : Wien wifi wifi_stop_supplicant
11-05 15:25:51.039 416 528 D WifiHW : Wien wifi wifi_start_supplicant
11-05 15:25:51.039 416 528 D WifiHW : Wien wifi add_remove_p2p_interface, 1
11-05 15:25:51.039 416 528 D WifiHW : Wien wifi to init nl
11-05 15:25:51.039 416 528 D WifiHW : Wien wifi init nl done
11-05 15:25:51.039 416 528 D WifiHW : Wien wifi execute_nl_interface_cmd
11-05 15:25:51.039 416 528 D WifiHW : Wien wifi phy_lookup
11-05 15:25:51.046 416 528 D WifiHW : Wien wifi nl_error_handler
11-05 15:25:51.046 416 528 D WifiHW : added/removed p2p interface. add: 1
11-05 15:25:51.046 416 528 D WifiHW : Wien wifi delete nl
11-05 15:25:51.054 733 733 D BluetoothAdapter: 1092501048: getState() : mService = null. Returning STATE_OFF
11-05 15:25:51.078 1231 1231 I wpa_supplicant: Successfully initialized wpa_supplicant
11-05 15:25:51.078 1231 1231 I wpa_supplicant: rfkill: Cannot open RFKILL control device
11-05 15:25:51.148 416 1232 D WifiHW : Wien wifi wifi_connect_to_supplicant, wlan0
11-05 15:25:51.703 1231 1231 I wpa_supplicant: rfkill: Cannot open RFKILL control device
11-05 15:25:51.773 416 528 D WifiHW : Wien wifi wifi_command, DRIVER MACADDR
11-05 15:25:51.773 416 528 D WifiHW : Wien wifi wifi_send_command, DRIVER MACADDR
11-05 15:25:51.773 416 528 D WifiHW : Wien wifi wifi_command, LIST_NETWORKS
11-05 15:25:51.773 416 528 D WifiHW : Wien wifi wifi_send_command, LIST_NETWORKS
11-05 15:25:51.781 416 528 E WifiConfigStore: Error parsing configurationjava.io.FileNotFoundException: /data/misc/wifi/ipconfig.txt: open failed: ENOENT (No such file or directory)