rk3288 系统设置中无法正常使用wifi分析

采用的是  RTL8188 芯片

现象:

驱动正常,手动可以连接网络并分配ip, 但是通过系统设置页面,dhcp会失败。


getprop  | grep dhcp


[dhcp.wlan0.dns1]: [192.168.9.3]
[dhcp.wlan0.dns2]: []
[dhcp.wlan0.dns3]: []
[dhcp.wlan0.dns4]: []
[dhcp.wlan0.domain]: []
[dhcp.wlan0.gateway]: [192.168.112.1]
[dhcp.wlan0.ipaddress]: [192.168.114.31]
[dhcp.wlan0.leasetime]: [3600]
[dhcp.wlan0.mask]: [255.255.252.0]
[dhcp.wlan0.mtu]: []
[dhcp.wlan0.pid]: [2426]
[dhcp.wlan0.reason]: [REBOOT]
[dhcp.wlan0.result]: [failed]
[dhcp.wlan0.server]: [192.168.112.1]
[dhcp.wlan0.vendorInfo]: []
[init.svc.dhcpcd_eth0]: [stopped]
[init.svc.dhcpcd_wlan0]: [stopped]

参考

https://blog.csdn.net/kangear/article/details/80289519

手动开启方式

start wpa_supplicant

dhcpcd wlan0

可以分配成功


wpa_cli -iwlan0 -g@android:wpa_wlan0 可以与之交互



dhcp相关文章

http://lishiwen4.github.io/android/android-dhcp-and-dns


可能解决方法:

https://www.cnblogs.com/zzb-Dream-90Time/p/8244566.html




最终解决:

发现logcat中,一条关键的信息 handleBadNetworkDisconnectReport 。

E/WifiConfigStore(  456): handleBadNetworkDisconnectReport (+8) 0 SSID: Starnet-Office, BSSID: 06:69:6c:41:83:69, MAC: 60:23:a4:e3:c0:2f, Supplicant state: COMPLETED, RSSI: -48, Link speed: 72Mbps, Frequency: 2412MHz, Net ID: 0, Metered hint: false, score: 60
E/WifiStateMachine(  456): transitionTo: destState=DisconnectingState


google搜索,这个文章说了,以太网连接时候优先级更高,会断开wifi。。。。

https://blog.csdn.net/u013686019/article/details/51447129


把网线拔了,发现认证连接就正常了。

posted on 2020-08-14 15:42  zhezhelin  阅读(100)  评论(0编辑  收藏

统计