配置过程中的问题
wlan blocked
1
| sudo wpa_supplicant -B -D nl80211 -i wlan0 -c /etc/wpa_supplicant/wlan.conf
|
如果运行输出
wlan soft blocked
or wlan hardware blocked
这个是因为,无线已经被锁定了,就像你按了笔记本电脑上提供的 wifi关闭快捷键一样
wifi被关闭了,我们要开启才能启动了wifi模块。
rfkill
rfkill 提供就像我们笔记本电脑对wifi 蓝牙等设备开闭的快捷键一样的功能
列出所有的设备,设备有编号
1 2 3 4 5 6 7
| rfkill list 1: phy1: Wireless LAN Soft blocked: no Hard blocked: no
|
锁定设备
1 2 3 4 5 6 7
| rfkill block 1 rfkill list 1: phy1: Wireless LAN Soft blocked: yes Hard blocked: no
|
解锁设备
1 2 3 4 5 6 7
| rfkill unblock 1 rfkill list 1: phy1: Wireless LAN Soft blocked: no Hard blocked: no
|