最近调试realtek的 usb wifi,型号是8192cu,下载到开发板后点击wifi turn on出现连接不上而不停的连接,下面是logcat的输出,麻烦大家给指点指点.
D/WifiHW ( 948): enter the realtek wifi_load_driver(): //pinery20110111
D/WifiHW ( 948): enter the realtek check_driver_loaded(): //pinery20110111
D/WifiHW ( 948): enter the realtek load_driver: //pinery20110111
D/WifiHW ( 948): serial[0000001FC606A4E31010221005540001`N7]
D/WifiHW ( 948): hello /system/wifi
D/WifiHW ( 1237): Ready to execte /system/wifi/wifi_sta_up.sh
D/WifiHW ( 948): enter the realtek insmod: //pinery20110111
D/SettingsWifiEnabler( 1129): Received wifi state changed from Disabled to Enabling
D/WifiHW ( 948): leave the realtek insmod: //pinery20110111
D/WifiHW ( 948): load_driver()->insomd successful //pinery20110111
D/WifiHW ( 948): load_driver()->waitpid cnt = 20 //pinery20110111
D/WifiHW ( 948): waitpid finished ret 1237
D/WifiHW ( 948): child process exited normally, with exit code 127
I/WifiHW ( 948): wifi_load_driver: return 0
I/WifiHW ( 948): wifi_start_supplicant enter
D/WifiHW ( 948): enter the realtek wifi_start_supplicant(): //pinery20110111
D/WifiHW ( 948): enter the realtek ensure_config_file_exists(): //pinery20110111
I/WifiHW ( 948): wifi_start_supplicant before ctl.start pi 0x40004500, serial 117440546
I/WifiHW ( 948): wifi_start_supplicant is running now. leave
D/WifiService( 948): ACTION_BATTERY_CHANGED pluggedType: 2
D/WifiHW ( 948): enter the realtek wifi_connect_to_supplicant(): //pinery20110111
I/WifiHW ( 948): wifi_connect_to_supplicant enter
D/WifiHW ( 948): WiFi ifname:(wlan0)
D/WifiHW ( 948): ifname = /data/misc/wifi/wpa_supplicant/wlan0
D/SettingsWifiEnabler( 1129): Received wifi state changed from Enabling to Enabled
D/WifiHW ( 948): enter the realtek wifi_send_command(): //pinery20110111
V/WifiHW ( 948): Not connected to wpa_supplicant - "SCAN" command dropped.
这一句是因为wpa_supplicant.conf里设置ap_scan=0的原因?接下来调试信息显示运行wifi_stop_supplicant()函数,开始退出了.D/WifiHW ( 948): enter the realtek wifi_stop_supplicant(): //pinery20110111
D/SettingsWifiEnabler( 1129): Received wifi state changed from Enabled to Disabling
D/dalvikvm( 1129): GC freed 13808 objects / 637288 bytes in 83ms
D/WifiHW ( 948): enter the realtek wifi_unload_driver(): //pinery20110111
D/WifiHW ( 948): enter the realtek rmmod: //pinery20110111
D/WifiHW ( 948): enter the realtek check_driver_loaded(): //pinery20110111
V/WifiWatchdogService( 948): (android.server.ServerThread) onDisconnected
D/SettingsWifiEnabler( 1129): Received wifi state changed from Disabling to Disabled
D/WifiHW ( 948): ifname /data/misc/wifi/wpa_supplicant/wlan0 is not ready, cnt=-1
D/WifiHW ( 948): Retry to wpa_ctrl_open
D/WifiHW ( 948): Retry to wpa_ctrl_open 下面是再次连接
D/WifiHW ( 948): enter the realtek wifi_load_driver(): //pinery20110111
D/WifiHW ( 948): enter the realtek check_driver_loaded(): //pinery20110111
D/WifiHW ( 948): enter the realtek load_driver: //pinery20110111
D/WifiHW ( 948): serial[0000001FC606A4E31010221005540001`N7]
D/WifiHW ( 948): hello /system/wifi
D/WifiHW ( 948): Retry to wpa_ctrl_open
D/WifiHW ( 1248): Ready to execte /system/wifi/wifi_sta_up.sh
D/WifiHW ( 948): enter the realtek insmod: //pinery20110111
D/SettingsWifiEnabler( 1129): Received wifi state changed from Disabled to Enabling
D/WifiHW ( 948): Retry to wpa_ctrl_open
D/WifiHW ( 948): Retry to wpa_ctrl_open
E/WifiHW ( 948): Unable to open connection to supplicant on "/data/misc/wifi/wpa_supplicant/wlan0": No such file or directory
不太明白,我的配置里只有data/misc/wifi/wpa_supplicant,为什么还有一个wpa-supplicant目录,并且目录下还有一个wlan0,这个是做什么用的?连接不上好象与这个有很大关系.是不是我自己要创建一个这样的目录?
D/WifiHW ( 948): enter the realtek wifi_send_command(): //pinery20110111
V/WifiHW ( 948): Not connected to wpa_supplicant - "BLACKLIST clear" command dropped.
V/WifiWatchdogService( 948): (WifiWatchdogThread) handleSwitchToIdle
V/WifiWatchdogService( 948): Set state to IDLE
D/WifiHW ( 948): leave the realtek insmod: //pinery20110111
D/WifiHW ( 948): load_driver()->insomd successful //pinery20110111
D/WifiHW ( 948): load_driver()->waitpid cnt = 20 //pinery20110111
D/WifiHW ( 948): waitpid finished ret 1248
D/WifiHW ( 948): child process exited normally, with exit code 127
I/WifiHW ( 948): wifi_load_driver: return 0
I/WifiHW ( 948): wifi_start_supplicant enter
D/WifiHW ( 948): enter the realtek wifi_start_supplicant(): //pinery20110111
D/WifiHW ( 948): enter the realtek ensure_config_file_exists(): //pinery20110111
I/WifiHW ( 948): wifi_start_supplicant before ctl.start pi 0x40004500, serial 117440552
I/WifiHW ( 948): wifi_start_supplicant is running now. leave
D/WifiService( 948): ACTION_BATTERY_CHANGED pluggedType: 2
D/WifiHW ( 948): enter the realtek wifi_connect_to_supplicant(): //pinery20110111
I/WifiHW ( 948): wifi_connect_to_supplicant enter
D/WifiHW ( 948): WiFi ifname:(wlan0)
D/WifiHW ( 948): ifname = /data/misc/wifi/wpa_supplicant/wlan0
D/SettingsWifiEnabler( 1129): Received wifi state changed from Enabling to Enabled
D/WifiHW ( 948): enter the realtek wifi_stop_supplicant(): //pinery20110111
D/SettingsWifiEnabler( 1129): Received wifi state changed from Enabled to Disabling
D/WifiHW ( 948): enter the realtek wifi_unload_driver(): //pinery20110111
D/WifiHW ( 948): enter the realtek rmmod: //pinery20110111
D/WifiHW ( 948): enter the realtek check_driver_loaded(): //pinery20110111
V/WifiWatchdogService( 948): (android.server.ServerThread) onDisconnected
D/SettingsWifiEnabler( 1129): Received wifi state changed from Disabling to Disabled
D/WifiHW ( 948): ifname /data/misc/wifi/wpa_supplicant/wlan0 is not ready, cnt=-1
D/WifiHW ( 948): Retry to wpa_ctrl_open
D/WifiHW ( 948): Retry to wpa_ctrl_open 下面为再次连接
D/WifiHW ( 948): enter the realtek wifi_load_driver(): //pinery20110111
D/WifiHW ( 948): enter the realtek check_driver_loaded(): //pinery20110111
D/WifiHW ( 948): enter the realtek load_driver: //pinery20110111
D/WifiHW ( 948): serial[0000001FC606A4E31010221005540001`N7]
D/WifiHW ( 948): hello /system/wifi
D/WifiHW ( 1259): Ready to execte /system/wifi/wifi_sta_up.sh
D/WifiHW ( 948): enter the realtek insmod: //pinery20110111
D/SettingsWifiEnabler( 1129): Received wifi state changed from Disabled to Enabling
D/WifiHW ( 948): Retry to wpa_ctrl_open
D/WifiHW ( 948): Retry to wpa_ctrl_open
D/WifiHW ( 948): Retry to wpa_ctrl_open
E/WifiHW ( 948): Unable to open connection to supplicant on "/data/misc/wifi/wpa_supplicant/wlan0": No such file or directory
D/WifiHW ( 948): enter the realtek wifi_send_command(): //pinery20110111
V/WifiHW ( 948): Not connected to wpa_supplicant - "BLACKLIST clear" command dropped.
V/WifiWatchdogService( 948): (WifiWatchdogThread) handleSwitchToIdle
V/WifiWatchdogService( 948): Set state to IDLE
D/WifiHW ( 948): enter the realtek wifi_connect_to_supplicant(): //pinery20110111
I/WifiHW ( 948): wifi_connect_to_supplicant enter
E/WifiHW ( 948): Supplicant not running, cannot connect
D/WifiHW ( 948): leave the realtek insmod: //pinery20110111
D/WifiHW ( 948): load_driver()->insomd successful //pinery20110111
D/WifiHW ( 948): load_driver()->waitpid cnt = 20 //pinery20110111
D/WifiHW ( 948): waitpid finished ret 1259
D/WifiHW ( 948): child process exited normally, with exit code 127
I/WifiHW ( 948): wifi_load_driver: return 0
I/WifiHW ( 948): wifi_start_supplicant enter
D/WifiHW ( 948): enter the realtek wifi_start_supplicant(): //pinery20110111
D/WifiHW ( 948): enter the realtek ensure_config_file_exists(): //pinery20110111
I/WifiHW ( 948): wifi_start_supplicant before ctl.start pi 0x40004500, serial 117440558
I/WifiHW ( 948): wifi_start_supplicant is running now. leave
D/WifiService( 948): ACTION_BATTERY_CHANGED pluggedType: 2
D/WifiHW ( 948): enter the realtek wifi_connect_to_supplicant(): //pinery20110111
I/WifiHW ( 948): wifi_connect_to_supplicant enter
D/WifiHW ( 948): WiFi ifname:(wlan0)
D/WifiHW ( 948): ifname = /data/misc/wifi/wpa_supplicant/wlan0
D/SettingsWifiEnabler( 1129): Received wifi state changed from Enabling to Enabled
D/WifiHW ( 948): enter the realtek wifi_stop_supplicant(): //pinery20110111
D/SettingsWifiEnabler( 1129): Received wifi state changed from Enabled to Disabling
D/WifiHW ( 948): enter the realtek wifi_unload_driver(): //pinery20110111
D/WifiHW ( 948): enter the realtek rmmod: //pinery20110111
D/WifiHW ( 948): enter the realtek check_driver_loaded(): //pinery20110111
V/WifiWatchdogService( 948): (android.server.ServerThread) onDisconnected
D/SettingsWifiEnabler( 1129): Received wifi state changed from Disabling to Disabled
郁闷,搞了好几天了,卡在这.
D/WifiHW ( 948): enter the realtek wifi_load_driver(): //pinery20110111
D/WifiHW ( 948): enter the realtek check_driver_loaded(): //pinery20110111
D/WifiHW ( 948): enter the realtek load_driver: //pinery20110111
D/WifiHW ( 948): serial[0000001FC606A4E31010221005540001`N7]
D/WifiHW ( 948): hello /system/wifi
D/WifiHW ( 1237): Ready to execte /system/wifi/wifi_sta_up.sh
D/WifiHW ( 948): enter the realtek insmod: //pinery20110111
D/SettingsWifiEnabler( 1129): Received wifi state changed from Disabled to Enabling
D/WifiHW ( 948): leave the realtek insmod: //pinery20110111
D/WifiHW ( 948): load_driver()->insomd successful //pinery20110111
D/WifiHW ( 948): load_driver()->waitpid cnt = 20 //pinery20110111
D/WifiHW ( 948): waitpid finished ret 1237
D/WifiHW ( 948): child process exited normally, with exit code 127
I/WifiHW ( 948): wifi_load_driver: return 0
I/WifiHW ( 948): wifi_start_supplicant enter
D/WifiHW ( 948): enter the realtek wifi_start_supplicant(): //pinery20110111
D/WifiHW ( 948): enter the realtek ensure_config_file_exists(): //pinery20110111
I/WifiHW ( 948): wifi_start_supplicant before ctl.start pi 0x40004500, serial 117440546
I/WifiHW ( 948): wifi_start_supplicant is running now. leave
D/WifiService( 948): ACTION_BATTERY_CHANGED pluggedType: 2
D/WifiHW ( 948): enter the realtek wifi_connect_to_supplicant(): //pinery20110111
I/WifiHW ( 948): wifi_connect_to_supplicant enter
D/WifiHW ( 948): WiFi ifname:(wlan0)
D/WifiHW ( 948): ifname = /data/misc/wifi/wpa_supplicant/wlan0
D/SettingsWifiEnabler( 1129): Received wifi state changed from Enabling to Enabled
D/WifiHW ( 948): enter the realtek wifi_send_command(): //pinery20110111
V/WifiHW ( 948): Not connected to wpa_supplicant - "SCAN" command dropped.
这一句是因为wpa_supplicant.conf里设置ap_scan=0的原因?接下来调试信息显示运行wifi_stop_supplicant()函数,开始退出了.D/WifiHW ( 948): enter the realtek wifi_stop_supplicant(): //pinery20110111
D/SettingsWifiEnabler( 1129): Received wifi state changed from Enabled to Disabling
D/dalvikvm( 1129): GC freed 13808 objects / 637288 bytes in 83ms
D/WifiHW ( 948): enter the realtek wifi_unload_driver(): //pinery20110111
D/WifiHW ( 948): enter the realtek rmmod: //pinery20110111
D/WifiHW ( 948): enter the realtek check_driver_loaded(): //pinery20110111
V/WifiWatchdogService( 948): (android.server.ServerThread) onDisconnected
D/SettingsWifiEnabler( 1129): Received wifi state changed from Disabling to Disabled
D/WifiHW ( 948): ifname /data/misc/wifi/wpa_supplicant/wlan0 is not ready, cnt=-1
D/WifiHW ( 948): Retry to wpa_ctrl_open
D/WifiHW ( 948): Retry to wpa_ctrl_open 下面是再次连接
D/WifiHW ( 948): enter the realtek wifi_load_driver(): //pinery20110111
D/WifiHW ( 948): enter the realtek check_driver_loaded(): //pinery20110111
D/WifiHW ( 948): enter the realtek load_driver: //pinery20110111
D/WifiHW ( 948): serial[0000001FC606A4E31010221005540001`N7]
D/WifiHW ( 948): hello /system/wifi
D/WifiHW ( 948): Retry to wpa_ctrl_open
D/WifiHW ( 1248): Ready to execte /system/wifi/wifi_sta_up.sh
D/WifiHW ( 948): enter the realtek insmod: //pinery20110111
D/SettingsWifiEnabler( 1129): Received wifi state changed from Disabled to Enabling
D/WifiHW ( 948): Retry to wpa_ctrl_open
D/WifiHW ( 948): Retry to wpa_ctrl_open
E/WifiHW ( 948): Unable to open connection to supplicant on "/data/misc/wifi/wpa_supplicant/wlan0": No such file or directory
不太明白,我的配置里只有data/misc/wifi/wpa_supplicant,为什么还有一个wpa-supplicant目录,并且目录下还有一个wlan0,这个是做什么用的?连接不上好象与这个有很大关系.是不是我自己要创建一个这样的目录?
D/WifiHW ( 948): enter the realtek wifi_send_command(): //pinery20110111
V/WifiHW ( 948): Not connected to wpa_supplicant - "BLACKLIST clear" command dropped.
V/WifiWatchdogService( 948): (WifiWatchdogThread) handleSwitchToIdle
V/WifiWatchdogService( 948): Set state to IDLE
D/WifiHW ( 948): leave the realtek insmod: //pinery20110111
D/WifiHW ( 948): load_driver()->insomd successful //pinery20110111
D/WifiHW ( 948): load_driver()->waitpid cnt = 20 //pinery20110111
D/WifiHW ( 948): waitpid finished ret 1248
D/WifiHW ( 948): child process exited normally, with exit code 127
I/WifiHW ( 948): wifi_load_driver: return 0
I/WifiHW ( 948): wifi_start_supplicant enter
D/WifiHW ( 948): enter the realtek wifi_start_supplicant(): //pinery20110111
D/WifiHW ( 948): enter the realtek ensure_config_file_exists(): //pinery20110111
I/WifiHW ( 948): wifi_start_supplicant before ctl.start pi 0x40004500, serial 117440552
I/WifiHW ( 948): wifi_start_supplicant is running now. leave
D/WifiService( 948): ACTION_BATTERY_CHANGED pluggedType: 2
D/WifiHW ( 948): enter the realtek wifi_connect_to_supplicant(): //pinery20110111
I/WifiHW ( 948): wifi_connect_to_supplicant enter
D/WifiHW ( 948): WiFi ifname:(wlan0)
D/WifiHW ( 948): ifname = /data/misc/wifi/wpa_supplicant/wlan0
D/SettingsWifiEnabler( 1129): Received wifi state changed from Enabling to Enabled
D/WifiHW ( 948): enter the realtek wifi_stop_supplicant(): //pinery20110111
D/SettingsWifiEnabler( 1129): Received wifi state changed from Enabled to Disabling
D/WifiHW ( 948): enter the realtek wifi_unload_driver(): //pinery20110111
D/WifiHW ( 948): enter the realtek rmmod: //pinery20110111
D/WifiHW ( 948): enter the realtek check_driver_loaded(): //pinery20110111
V/WifiWatchdogService( 948): (android.server.ServerThread) onDisconnected
D/SettingsWifiEnabler( 1129): Received wifi state changed from Disabling to Disabled
D/WifiHW ( 948): ifname /data/misc/wifi/wpa_supplicant/wlan0 is not ready, cnt=-1
D/WifiHW ( 948): Retry to wpa_ctrl_open
D/WifiHW ( 948): Retry to wpa_ctrl_open 下面为再次连接
D/WifiHW ( 948): enter the realtek wifi_load_driver(): //pinery20110111
D/WifiHW ( 948): enter the realtek check_driver_loaded(): //pinery20110111
D/WifiHW ( 948): enter the realtek load_driver: //pinery20110111
D/WifiHW ( 948): serial[0000001FC606A4E31010221005540001`N7]
D/WifiHW ( 948): hello /system/wifi
D/WifiHW ( 1259): Ready to execte /system/wifi/wifi_sta_up.sh
D/WifiHW ( 948): enter the realtek insmod: //pinery20110111
D/SettingsWifiEnabler( 1129): Received wifi state changed from Disabled to Enabling
D/WifiHW ( 948): Retry to wpa_ctrl_open
D/WifiHW ( 948): Retry to wpa_ctrl_open
D/WifiHW ( 948): Retry to wpa_ctrl_open
E/WifiHW ( 948): Unable to open connection to supplicant on "/data/misc/wifi/wpa_supplicant/wlan0": No such file or directory
D/WifiHW ( 948): enter the realtek wifi_send_command(): //pinery20110111
V/WifiHW ( 948): Not connected to wpa_supplicant - "BLACKLIST clear" command dropped.
V/WifiWatchdogService( 948): (WifiWatchdogThread) handleSwitchToIdle
V/WifiWatchdogService( 948): Set state to IDLE
D/WifiHW ( 948): enter the realtek wifi_connect_to_supplicant(): //pinery20110111
I/WifiHW ( 948): wifi_connect_to_supplicant enter
E/WifiHW ( 948): Supplicant not running, cannot connect
D/WifiHW ( 948): leave the realtek insmod: //pinery20110111
D/WifiHW ( 948): load_driver()->insomd successful //pinery20110111
D/WifiHW ( 948): load_driver()->waitpid cnt = 20 //pinery20110111
D/WifiHW ( 948): waitpid finished ret 1259
D/WifiHW ( 948): child process exited normally, with exit code 127
I/WifiHW ( 948): wifi_load_driver: return 0
I/WifiHW ( 948): wifi_start_supplicant enter
D/WifiHW ( 948): enter the realtek wifi_start_supplicant(): //pinery20110111
D/WifiHW ( 948): enter the realtek ensure_config_file_exists(): //pinery20110111
I/WifiHW ( 948): wifi_start_supplicant before ctl.start pi 0x40004500, serial 117440558
I/WifiHW ( 948): wifi_start_supplicant is running now. leave
D/WifiService( 948): ACTION_BATTERY_CHANGED pluggedType: 2
D/WifiHW ( 948): enter the realtek wifi_connect_to_supplicant(): //pinery20110111
I/WifiHW ( 948): wifi_connect_to_supplicant enter
D/WifiHW ( 948): WiFi ifname:(wlan0)
D/WifiHW ( 948): ifname = /data/misc/wifi/wpa_supplicant/wlan0
D/SettingsWifiEnabler( 1129): Received wifi state changed from Enabling to Enabled
D/WifiHW ( 948): enter the realtek wifi_stop_supplicant(): //pinery20110111
D/SettingsWifiEnabler( 1129): Received wifi state changed from Enabled to Disabling
D/WifiHW ( 948): enter the realtek wifi_unload_driver(): //pinery20110111
D/WifiHW ( 948): enter the realtek rmmod: //pinery20110111
D/WifiHW ( 948): enter the realtek check_driver_loaded(): //pinery20110111
V/WifiWatchdogService( 948): (android.server.ServerThread) onDisconnected
D/SettingsWifiEnabler( 1129): Received wifi state changed from Disabling to Disabled
郁闷,搞了好几天了,卡在这.
解决方案 »
- 时间紧迫,求高手解救!!java不断截屏,安卓端接收图片,安卓端显示不了图片,求解!!
- 求助,在view中,可否动态改变此view包含view的位置
- ListView,使用SimpleAdapter绑定数据,如何根据每一行的数据,改变listView的背影颜色?
- PreferenceScreen加载一个自定义布局layout,怎么设置监听
- 关于ImageView的布局
- jre路径问题还是api版本问题引起的?
- 安卓多语言,切换图片
- 用 ndk 编译,在 jni 中调用 parcel
- android 就是java语言吗,界面怎么控制?
- 使用友推分享sdk时遇到一些问题,求大神帮忙
- android真机调试没有shared_pref目录
- 为何在使用json时不能new JSONArray(json)
不太明白,我的配置里只有data/misc/wifi/wpa_supplicant,为什么还有一个wpa-supplicant目录,并且目录下还有一个wlan0,这个是做什么用的?连接不上好象与这个有很大关系.是不是我自己要创建一个这样的目录?呵呵,不好意思,上面一句话说错了,
data/misc/wifi/wpa_supplicant/目录是我自己创建的,但是wlan0这个文件没有找到,也不太明白wlan0里面是什么东西,只知道网络接口用wlan0.
目前就是wpa_supplicant的wpa_ctrl_open()函数,因为找不到data/misc/wifi/wpa_supplicant/下的wlan0就返回,继续等待帮助
但是新问题又出来了,输入密码后连接不上,获取不到wifi的ip,不知道什么原因,虽然没解决,但是在一点点前进,继续折腾......
,但是我用的是android下的wpa,而且没有hostcmd.conf,只有自己搞一个了.
我在调试WIFI,遇到的问题跟您的很像,希望得到您的帮助,如何联系到您,649424815我的QQ,谢谢。
我现在是能搜索到ap,总在sannning,connecting中循环,就是连接不上