[转]wpa_supplicant连接wifi出错

移植rtl8192eu驱动,在使用过wpa_supplicant连接wifi时遇到如下问题:

root@NanoPi-NEO4:~# wpa_supplicant -D nl80211 -i enx0013ef3f0029 -c /etc/wpa_supplicant/wpa_supplicant.conf
Successfully initialized wpa_supplicant
nl80211: Driver does not support authentication/association or connect commands
nl80211: deinit ifname=enx0013ef3f0029 disabled_11b_rates=0
enx0013ef3f0029: Failed to initialize driver interface

我的配置(/etc/wpa_supplicant/*.conf):

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
country=CN

network={
       ssid="TP-LINK_5A6E"
       #ssid="MERCURY_OFFICE"
       psk="xonz123456"
}

网上找到原因是硬件不支持nl80211这个驱动,使用下面的命令就可以了:

sudo wpa_supplicant -D wext -i enx0013ef3f0029 -c /etc/wpa_supplicant/wpa_supplicant.conf

[转]wpa_supplicant连接wifi出错_第1张图片

传送门:https://wiki.archlinux.org/index.php?title=WPA_supplicant_(%E7%AE%80%E4%BD%93%E4%B8%AD%E6%96%87)&oldid=452628

你可能感兴趣的:(linux,wifi)