通过终端 Edimax ew-7811un 错误 ioctl[SIOCSIWENCODEEXT] 连接到 WPA:参数无效

通过终端 Edimax ew-7811un 错误 ioctl[SIOCSIWENCODEEXT] 连接到 WPA:参数无效

我一直在尝试学习如何连接到我的 WPA 安全无线路由器,但无论我研究多少次,我都找不到此错误的修复方法。我两次收到错误(ioctl[SIOCSIWENCODEEXT]:无效参数),然后收到一长串重复输出,涉及我的设备(wlan0)正忙,然后出现错误,声称我的身份验证错误。我也在笔记本电脑上使用其默认无线网卡尝试过该命令,它返回相同的错误。除此之外,偶尔在运行 wpa_supplicant 命令并得到同样令人失望的结果后,我的 wlan0 设备将被设置为 DOWN。我正在尝试从 Edimax ew-7811un usb wifi 加密狗进行连接。

我的 wpa.conf 文件: /home/me/wpa.conf:

# reading passphrase from stdin
network={
        ssid="######"
        #psk="#############"
        psk=#############################################
}

wpa_supplicant 命令:

sudo wpa_supplicant -D wext -i wlan0 -c /home/me/wpa.conf

接下来我删除了我分配的IP:

sudo dhclient -r

并分配一个新的:

sudo dhclient wlan0

我是通过 eth0 连接到互联网来执行所有这些操作的(如果这很重要的话),但是我已经在 eth0 关闭时测试了这一点。我还多次卸载并重新安装了 wpa_supplicant。我还将我的 wpa.conf 文件放在 /etc/wpa_supplicant 中。

wpa_supplicant 的输出,部分内容已被审查:

Successfully initialized wpa_supplicant
ioctl[SIOCSIWENCODEEXT]: Invalid argument
ioctl[SIOCSIWENCODEEXT]: Invalid argument
ioctl[SIOCSIWSCAN]: Device or resource busy
wlan0: Trying to associate with XXXXXXXXXXXXXX (SSID='XXXXXXX' freq=2437 MHz)
wlan0: Associated with XXXXXXXXXXXXXXX
wlan0: CTRL-EVENT-DISCONNECTED bssid=XXXXXXXXXXXXX reason=0
ioctl[SIOCSIWSCAN]: Device or resource busy
wlan0: Trying to associate with XXXXXXXXXXXXX (SSID='XXXXXXXXXXXXX' freq=2437 MHz)
ioctl[SIOCSIWFREQ]: Device or resource busy
wlan0: Association request to the driver failed
wlan0: Associated with XXXXXXXXXXXXX
wlan0: CTRL-EVENT-DISCONNECTED bssid=XXXXXXXXXXXXX reason=0
ioctl[SIOCSIWSCAN]: Device or resource busy
wlan0: Trying to associate with XXXXXXXXXXXXX (SSID='XXXXXXXXXXXXX' freq=2437 MHz)
ioctl[SIOCSIWFREQ]: Device or resource busy
wlan0: Association request to the driver failed
wlan0: Associated with XXXXXXXXXXXXX
wlan0: CTRL-EVENT-DISCONNECTED bssid=XXXXXXXXXXXXX reason=0
ioctl[SIOCSIWSCAN]: Device or resource busy
wlan0: Trying to associate with XXXXXXXXXXXXX (SSID='XXXXXXXXXXXXX' freq=2437 MHz)
ioctl[SIOCSIWFREQ]: Device or resource busy
wlan0: Association request to the driver failed
wlan0: Associated with XXXXXXXXXXXXX
wlan0: CTRL-EVENT-DISCONNECTED bssid=XXXXXXXXXXXXX reason=0
wlan0: CTRL-EVENT-SSID-TEMP-DISABLED id=0 ssid="XXXXXXXXXXXXX" auth_failures=1 duration=10
ioctl[SIOCSIWSCAN]: Device or resource busy

相关内容