8723一直测试通不过

感觉是内核配置 方面的问题,内核设备树都是通过otg重新刷过的
log如下[root@100ask:~]# wpa_supplicant -B -iwlan0 -c /etc/wpa_supplicant.conf
Successfully initialized wpa_supplicant
rfkill: Cannot open RFKILL control device
[root@100ask:~]# [ 203.759488] RTL871X: RTW_ADAPTIVITY_EN_[ 203.763330] AUTO, chplan:0x20, Regulation:3,3
[ 203.767786] RTL871X: RTW_ADAPTIVITY_MODE_[ 203.771703] NORMAL
[ 206.618289] RTL871X: nolinked power save leave
[ 208.495171] RTL871X: nolinked power save enter
[ 209.526237] RTL871X: RTW_ADAPTIVITY_EN_[ 209.530003] AUTO, chplan:0x20, Regulation:3,3
[ 209.534444] RTL871X: RTW_ADAPTIVITY_MODE_[ 209.538348] NORMAL
[ 210.159475] RTL871X: nolinked power save leave
[ 210.395281] RTL871X: rtw_set_802_11_connect(wlan0) fw_state=0x00000008
[ 210.491387] RTL871X: start auth
[ 210.498010] RTL871X: auth success, start assoc
[ 210.507946] RTL871X: rtw_cfg80211_indicate_connect(wlan0) BSS not found !!
[ 210.515008] RTL871X: assoc success
[ 212.291840] RTL871X: nolinked power save enter
[ 213.465626] RTL871X: RTW_ADAPTIVITY_EN_[ 213.469324] AUTO, chplan:0x20, Regulation:3,3
[ 213.473777] RTL871X: RTW_ADAPTIVITY_MODE_[ 213.478795] NORMAL
[ 214.194653] RTL871X: nolinked power save leave
[ 216.070300] RTL871X: nolinked power save enter
[ 221.437488] RTL871X: RTW_ADAPTIVITY_EN_[ 221.441187] AUTO, chplan:0x20, Regulation:3,3
[ 221.446539] RTL871X: RTW_ADAPTIVITY_MODE_[ 221.450396] NORMAL
[ 222.167669] RTL871X: nolinked power save leave
iw wlan0 link
Connected to ec:97:e0:ed:5e:9f (on wlan0)
SSID: DFTX
freq: 2412
command failed: No such file or directory (-2)
[root@100ask:~]# [ 224.137238] RTL871X: nolinked power save enter
[ 225.171856] RTL871X: RTW_ADAPTIVITY_EN_[ 225.175753] AUTO, chplan:0x20, Regulation:3,3
[ 225.180134] RTL871X: RTW_ADAPTIVITY_MODE_[ 225.185736] NORMAL
[ 225.891026] RTL871X: nolinked power save leave

请教支持的老师,解决了问题!

[root@100ask:~]# rm /etc/wpa_supplicant.conf
[root@100ask:~]# ifconfig wlan0 down
[root@100ask:~]# ifconfig wlan0 up
[ 244.669394] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[root@100ask:~]# ps -ef | grep “wpa”
333 root wpa_supplicant -B -iwlan0 -c /etc/wpa_supplicant.conf
359 root grep wpa
[root@100ask:~]# kill -9 333
[root@100ask:~]# ps -ef | grep “wpa”
361 root grep wpa
[root@100ask:~]# iw dev wlan0 scan |grep SSID
SSID: HUAWEI-zhen
SSID:
SSID:
SSID: stu.gpnu.edu.cn
SSID: gpnu.edu.cn
SSID: LU
SSID: Tenda_BD1680
SSID: gpnu.edu.cn
SSID: stu.gpnu.edu.cn
SSID: gpnu.edu.cn
SSID: stu.gpnu.edu.cn
SSID: gpnu.edu.cn
SSID: stu.gpnu.edu.cn
SSID: BiY
SSID: gpnu.edu.cn
SSID: gpnu.edu.cn
SSID: stu.gpnu.edu.cn
SSID: Kunkun
SSID: wifi2.4
SSID: stu.gpnu.edu.cn
SSID: stu.gpnu.edu.cn
SSID: gpnu.edu.cn
[root@100ask:~]# iw dev wlan0 scan |grep SSID

    SSID: HUAWEI-zhen
    SSID:
    SSID:
    SSID: stu.gpnu.edu.cn
    SSID: gpnu.edu.cn
    SSID: LU
    SSID: Tenda_BD1680
    SSID: gpnu.edu.cn
    SSID: stu.gpnu.edu.cn
    SSID: gpnu.edu.cn
    SSID: stu.gpnu.edu.cn
    SSID: gpnu.edu.cn
    SSID: stu.gpnu.edu.cn
    SSID: BiY
    SSID: gpnu.edu.cn
    SSID: stu.gpnu.edu.cn
    SSID: wifi2.4
    SSID: stu.gpnu.edu.cn
    SSID: stu.gpnu.edu.cn
    SSID: gpnu.edu.cn
    SSID: feng
    SSID: \xe4\xb9\xb3
    SSID: realme GT NEO 3

[root@100ask:~]#
[root@100ask:~]# wpa_passphrase feng 12312312 >> /etc/wpa_supplicant.conf
[root@100ask:~]# wpa_supplicant -B -iwlan0 -c /etc/wpa_supplicant.conf
Successfully initialized wpa_supplicant
rfkill: Cannot open RFKILL control device
[root@100ask:~]# [ 332.333735] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready

[root@100ask:~]#
[root@100ask:~]# iw wlan0 link
Connected to 12:51:07:11:7a:fb (on wlan0)
SSID: feng
freq: 2437
signal: -45 dBm
tx bitrate: 72.2 MBit/s
[root@100ask:~]# udhcpc -i wlan0
udhcpc: started, v1.31.1
udhcpc: sending discover
udhcpc: sending select for 192.168.137.97
udhcpc: lease of 192.168.137.97 obtained, lease time 604800
deleting routers
adding dns 192.168.137.1
[root@100ask:~]#
[root@100ask:~]#
[root@100ask:~]# ping -I wlan0 www.baidu.com
PING www.baidu.com (120.232.145.144): 56 data bytes
^C
www.baidu.com ping statistics —
7 packets transmitted, 0 packets received, 100% packet loss
[root@100ask:~]#
[root@100ask:~]# ifconfig -a
can0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
NOARP MTU:16 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:10
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Interrupt:29

eth0 Link encap:Ethernet HWaddr 00:01:3F:2D:3E:4D
inet addr:192.168.5.30 Bcast:192.168.5.255 Mask:255.255.255.0
inet6 addr: fe80::201:3fff:fe2d:3e4d/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:214 errors:0 dropped:0 overruns:0 frame:0
TX packets:168 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:18670 (18.2 KiB) TX bytes:7480 (7.3 KiB)

eth1 Link encap:Ethernet HWaddr 00:01:1F:2D:3E:4D
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:484 errors:0 dropped:0 overruns:0 frame:0
TX packets:484 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1
RX bytes:36544 (35.6 KiB) TX bytes:36544 (35.6 KiB)

sit0 Link encap:IPv6-in-IPv4
NOARP MTU:1480 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

wlan0 Link encap:Ethernet HWaddr F0:C8:14:7D:B7:DA
inet addr:192.168.137.97 Bcast:192.168.137.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:36 errors:0 dropped:69 overruns:0 frame:0
TX packets:49 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:5601 (5.4 KiB) TX bytes:6129 (5.9 KiB)

wlan1 Link encap:Ethernet HWaddr F2:C8:14:7D:B7:DA
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:52 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

[root@100ask:~]#

哥们 我按照你的步骤还是会报错

1. 禁止系统自动启动wpa_supplicant,

否则后面执行"iw wlan0 link"时会提示"command failed: No such file or directory"

mv /etc/init.d/S45network-manager /root
reboot

2. 启动WIFI网卡

ifconfig wlan0 up

3. 查找SSID

iw dev wlan0 scan | grep SSID

4. 设置WIFI SSID和密码

ssid_name 改为你的WIFI SSID

your_password 改为你的WIFI密码

wpa_passphrase ssid_name your_password >> /etc/wpa_supplicant.conf

5. 连接WIFI

wpa_supplicant -B -iwlan0 -c /etc/wpa_supplicant.conf
等待出现: wlan0: link becomes ready

6. 查看连接状态

iw wlan0 link

7. 动态获取IP

udhcpc -i wlan0

8. 测试

ping news.qq.com

成功后,以后再次启动系统后,只需要执行第5、第7条命令即可连接WIFI