wpa_supplicant 未在启动时连接,但手动

wpa_supplicant 未在启动时连接,但手动

我使用 Yocto Kirkstone 生成了一个嵌入式 Linux 系统,该系统具有通过 RTL8192 加密狗实现 WiFi 所需的所有模块。当我启动设备时,wpa_supplicant 无法连接网络,并显示以下输出

Configuring network interfaces... 
[    5.522312] random: wpa_supplicant: uninitialized urandom read (4096 bytes read)
Successfully initialized wpa_supplicant
[    5.749164] rtl8192cu: MAC auto ON okay!
[    5.785079] rtl8192cu: Tx queue select: 0x05
ioctl[SIOCSIWPMKSA]: Inappropriate ioctl for device
ioctl[SIOCSIWMODE]: Inappropriate ioctl for device
ioctl[SIOCGIWRANGE]: Inappropriate ioctl for device
ioctl[SIOCGIWMODE]: Inappropriate ioctl for device
ioctl[SIOCSIWAP]: Inappropriate ioctl for device
ioctl[SIOCSIWESSID]: Inappropriate ioctl for device
ioctl[SIOCSIWENCODEEXT]: Inappropriate ioctl for device
ioctl[SIOCSIWENCODEEXT]: Inappropriate ioctl for device
ioctl[SIOCSIWENCODEEXT]: Inappropriate ioctl for device
ioctl[SIOCSIWENCODEEXT]: Inappropriate ioctl for device
ioctl[SIOCSIWENCODEEXT]: Inappropriate ioctl for device
ioctl[SIOCSIWENCODEEXT]: Inappropriate ioctl for device
ioctl[SIOCSIWPMKSA]: Inappropriate ioctl for device
[    9.613212] random: crng init done
[    9.615185] random: 4 urandom warning(s) missed due to ratelimiting
udhcpc: started, v1.35.0
udhcpc: broadcasting discover
udhcpc: broadcasting discover
udhcpc: broadcasting discover
udhcpc: no lease, forking to background

但是当我手动做

ip link set wlan0 up
wpa_supplicant -i wlan0 -c /etc/wpa_supplicant.conf &

它连接了我的网络并毫无问题地获取了 IP。

这里出了什么问题?谢谢!

答案1

我终于找到了答案。在 /etc/network/interfaces 中,驱动程序设置为wpa-driver wext,但它应该是wpa-driver nl80211

相关内容