我在使用旧 HP 笔记本电脑的嵌入式 Wi-Fi 时遇到了问题Ubuntu 20.04 上的 HP 15-ac002ur 上的 WiFi 被硬封锁,没有任何帮助并且无法解决这个问题,所以我购买了 Wi-Fi USB 棒 D-Link DWA-131,但也遇到了问题。
已识别 Wi-Fi USB 棒:
[08:06]dmitriy@dmitriy-HP-Notebook[~]$ dmesg | tail
[ 1154.683426] usb 1-5.2: 1d8: ff ff ff ff ff ff ff ff
[ 1154.683429] usb 1-5.2: 1e0: ff ff ff ff ff ff ff ff
[ 1154.683431] usb 1-5.2: 1e8: ff ff ff ff ff ff ff ff
[ 1154.683434] usb 1-5.2: 1f0: ff ff ff ff ff ff ff ff
[ 1154.683437] usb 1-5.2: 1f8: ff ff ff ff ff ff ff ff
[ 1154.683442] usb 1-5.2: RTL8192EU rev B (SMIC) 2T2R, TX queues 3, WiFi=1, BT=0, GPS=0, HI PA=0
[ 1154.683446] usb 1-5.2: RTL8192EU MAC: 18:0f:76:09:dc:de
[ 1154.683449] usb 1-5.2: rtl8xxxu: Loading firmware rtlwifi/rtl8192eu_nic.bin
[ 1154.683585] usb 1-5.2: Firmware revision 19.0 (signature 0x92e1)
[ 1155.722333] rtl8xxxu 1-5.2:1.0 wlx180f7609dcde: renamed from wlan0
rfkill
不显示阻止状态:
[08:06]dmitriy@dmitriy-HP-Notebook[~]$ rfkill list
0: phy1: Wireless LAN
Soft blocked: no
Hard blocked: yes
2: phy2: Wireless LAN
Soft blocked: no
Hard blocked: no
接口处于开启状态:
[08:07]dmitriy@dmitriy-HP-Notebook[~]$ ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: enp3s0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc fq_codel state DOWN group default qlen 1000
link/ether 48:0f:cf:de:e9:15 brd ff:ff:ff:ff:ff:ff
3: wlp2s0: <BROADCAST,MULTICAST> mtu 1500 qdisc mq state DOWN group default qlen 1000
link/ether d8:5d:e2:4d:ec:ee brd ff:ff:ff:ff:ff:ff
5: wlx180f7609dcde: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN group default qlen 1000
link/ether 18:0f:76:09:dc:de brd ff:ff:ff:ff:ff:ff
并且扫描成功:
[08:08]dmitriy@dmitriy-HP-Notebook[~]$ sudo iwlist wlx180f7609dcde scan | head -20
wlx180f7609dcde Scan completed :
Cell 01 - Address: A0:AB:1B:2C:A3:69
Channel:1
Frequency:2.412 GHz (Channel 1)
Quality=22/70 Signal level=-88 dBm
Encryption key:on
ESSID:"MTSRouter-2CA369"
...
但nmcli
显示接口已被禁用:
[08:08]dmitriy@dmitriy-HP-Notebook[~]$ nmcli
...
wlx180f7609dcde: unavailable
"D-Link Nano"
wifi (rtl8xxxu), 18:0F:76:09:DC:DE, sw disabled, hw, mtu 1500
...
已尝试nmcli radio wifi on
- 同样的结果。
尝试创建连接,但nmcli
显示设备不可用:
[08:18]dmitriy@dmitriy-HP-Notebook[~]$ nmcli connection up "Wi-Fi connection 1" ifname wlx180f7609dcde
Error: Connection activation failed: Connection 'Wi-Fi connection 1' is not available on device wlx180f7609dcde because device is not available
尝试systemctl
使用 wpa 请求者手动进行非 NetworkManager 访问(用 禁用它),它显示(我确定密码正确):
[08:13]dmitriy@dmitriy-HP-Notebook[~]$ sudo wpa_supplicant -i wlx180f7609dcde -c wpa-2.conf
Successfully initialized wpa_supplicant
wlx180f7609dcde: SME: Trying to authenticate with 04:5e:a4:1d:d2:5a (SSID='netis_2.4G_1DD253' freq=2422 MHz)
wlx180f7609dcde: SME: Trying to authenticate with 04:5e:a4:1d:d2:5a (SSID='netis_2.4G_1DD253' freq=2422 MHz)
wlx180f7609dcde: SME: Trying to authenticate with 04:5e:a4:1d:d2:5a (SSID='netis_2.4G_1DD253' freq=2422 MHz)
wlx180f7609dcde: SME: Trying to authenticate with 04:5e:a4:1d:d2:5a (SSID='netis_2.4G_1DD253' freq=2422 MHz)
wlx180f7609dcde: CTRL-EVENT-SSID-TEMP-DISABLED id=0 ssid="netis_2.4G_1DD253" auth_failures=1 duration=10 reason=CONN_FAILED
所以看来我已经接近解决方案了,但不知道如何迈出最后一步。
有人可以帮忙吗?
答案1
找到了我自己关于同一台 Wi-Fi USB 棒和同一台旧笔记本电脑的问题D-Link DWA-131 在 Ubuntu 18.04 中无法工作(我当时放弃了并且忘记了那里发布的答案),列入黑名单rtl8188ee
并且现在 Wi-Fi 可以与模块配合使用rtl8xxxu
。