硬件平台:全志A20
软件平台:android4.2.2
模块: MT7601 WIFI 模块
原来在驱动A13上面的驱动代码, 现在移植到了A20上面,驱动编译过了。
放到板子上面,没有看到加载的模块。
跟踪发现程序好像没有走到加载模块的部分就出错了。
wpa_supplicant也没有启起来
以下是我截取的关于wifi部分的log,大家能否帮忙看看是什么问题:
I/qtaguid ( 2112): Failed write_ctrl(s 0 10031) res=-1 errno=1
W/NetworkManagementSocketTagger( 2112): setKernelCountSet(10031, 0) failed with errno -1
D/WifiService( 2112): setWifiEnabled: true pid=4766, uid=1000
D/WifiHW ( 953): Enter: wifi_get_fw_path function, fw_type=0,
E/WifiStateMachine( 2112): Failed to reload STA firmware java.lang.IllegalStateException: command '10 softap fwreload wlan0 STA' failed with '400 10 Softap operation failed (No such file or directory)'
I/BluetoothAdapter( 4766): this device does not have Bluetooth support
W/CommandListener( 953): Failed to retrieve HW addr for wlan0 (No such device)
D/CommandListener( 953): Setting iface cfg
E/WifiStateMachine( 2112): Unable to change interface settings: java.lang.IllegalStateException: command '12 interface setcfg wlan0 0.0.0.0 0 down' failed with '400 12 Failed to set address (No such device)'
E/WifiHW ( 2112): ctrl_interface != /data/misc/wifi/sockets
I/wpa_supplicant( 4895): rfkill: Cannot open RFKILL control device
E/wpa_supplicant( 4895): nl80211: Could not configure driver to use managed mode
E/wpa_supplicant( 4895): Could not read interface p2p0 flags: No such device
I/wpa_supplicant( 4895): ##### nl80211: wpa_driver_nl80211_deinit
E/wpa_supplicant( 4895): p2p0: Failed to initialize driver interface
E/WifiHW ( 2112): Supplicant not running, cannot connect
E/WifiHW ( 2112): Supplicant not running, cannot connect
W/BufferQueue( 952): freeAllBuffersLocked called but mQueue is not empty
E/WifiHW ( 2112): Supplicant not running, cannot connect
E/WifiHW ( 2112): Supplicant not running, cannot connect
W/InputEventReceiver( 4766): Attempted to finish an input event but the input event receiver has already been disposed.
W/InputEventReceiver( 4766): Attempted to finish an input event but the input event receiver has already been disposed.
W/InputMethodManagerService( 2112): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@41f5fa98 attribute=null, token = android.os.BinderProxy@421578c0
E/WifiHW ( 2112): Supplicant not running, cannot connect
E/WifiStateMachine( 2112): Failed to setup control channel, restart supplicant
D/WifiHW ( 953): Enter: wifi_get_fw_path function, fw_type=0,
E/WifiStateMachine( 2112): Failed to reload STA firmware java.lang.IllegalStateException: command '13 softap fwreload wlan0 STA' failed with '400 13 Softap operation failed (No such device)'
W/CommandListener( 953): Failed to retrieve HW addr for wlan0 (No such device)
D/CommandListener( 953): Setting iface cfg
E/WifiStateMachine( 2112): Unable to change interface settings: java.lang.IllegalStateException: command '15 interface setcfg wlan0 0.0.0.0 0 down' failed with '400 15 Failed to set address (No such device)'
I/wpa_supplicant( 4985): rfkill: Cannot open RFKILL control device
E/wpa_supplicant( 4985): nl80211: Could not configure driver to use managed mode
E/wpa_supplicant( 4985): Could not read interface p2p0 flags: No such device
I/wpa_supplicant( 4985): ##### nl80211: wpa_driver_nl80211_deinit
E/wpa_supplicant( 4985): p2p0: Failed to initialize driver interface
E/WifiHW ( 2112): Unable to open connection to supplicant on "wlan0": No such file or directory
E/WifiHW ( 2112): Supplicant not running, cannot connect
E/WifiHW ( 2112): Supplicant not running, cannot connect
E/WifiHW ( 2112): Supplicant not running, cannot connect
D/dalvikvm( 2112): GC_FOR_ALLOC freed 1741K, 30% free 7745K/10976K, paused 123ms, total 125ms
E/WifiHW ( 2112): Supplicant not running, cannot connect
E/WifiHW ( 2112): Supplicant not running, cannot connect
E/WifiStateMachine( 2112): Failed to setup control channel, restart supplicant
D/WifiHW ( 953): Enter: wifi_get_fw_path function, fw_type=0,
E/WifiStateMachine( 2112): Failed to reload STA firmware java.lang.IllegalStateException: command '16 softap fwreload wlan0 STA' failed with '400 16 Softap operation failed (No such device)'
W/CommandListener( 953): Failed to retrieve HW addr for wlan0 (No such device)
D/CommandListener( 953): Setting iface cfg
E/WifiStateMachine( 2112): Unable to change interface settings: java.lang.IllegalStateException: command '18 interface setcfg wlan0 0.0.0.0 0 down' failed with '400 18 Failed to set address (No such device)'
I/wpa_supplicant( 5011): rfkill: Cannot open RFKILL control device
E/wpa_supplicant( 5011): nl80211: Could not configure driver to use managed mode
E/wpa_supplicant( 5011): Could not read interface p2p0 flags: No such device
I/wpa_supplicant( 5011): ##### nl80211: wpa_driver_nl80211_deinit
E/wpa_supplicant( 5011): p2p0: Failed to initialize driver interface
E/WifiHW ( 2112): Unable to open connection to supplicant on "wlan0": No such file or directory
E/WifiHW ( 2112): Supplicant not running, cannot connect
E/WifiHW ( 2112): Supplicant not running, cannot connect
E/WifiHW ( 2112): Supplicant not running, cannot connect
E/WifiHW ( 2112): Supplicant not running, cannot connect
E/WifiHW ( 2112): Supplicant not running, cannot connect
E/WifiStateMachine( 2112): Failed to setup control channel, restart supplicant