Raspberry pi wpa_supplicant 无法连接到特定 wifi。CTRL-EVENT-ASSOC-REJECT status_code = 16

Raspberry pi wpa_supplicant 无法连接到特定 wifi。CTRL-EVENT-ASSOC-REJECT status_code = 16

我在使用 Raspberry Pi 连接特定 WiFi 时遇到问题。这是我检查时的输出/var/log/syslog

Jun 19 09:44:52 raspberrypi wpa_supplicant[447]: wlan0: Trying to associate with 86:2a:a8:2d:35:ea (SSID='XXXX Wi-Fi' freq=2462 MHz)
Jun 19 09:44:52 raspberrypi wpa_supplicant[447]: wlan0: CTRL-EVENT-ASSOC-REJECT status_code=16
Jun 19 09:44:52 raspberrypi wpa_supplicant[447]: wlan0: CTRL-EVENT-SSID-TEMP-DISABLED id=1 ssid="XXXX Wi-Fi" auth_failures=6 duration=90 reason=CONN_FAILED

但当我连接到其他wifi时,它可以成功连接:

Jun 19 09:45:24 raspberrypi dhcpcd[437]: wlan0: adding address fe80::c6af:a739:b4bb:4d62
Jun 19 09:45:24 raspberrypi kernel: [    5.610985] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
Jun 19 09:45:24 raspberrypi avahi-daemon[438]: Joining mDNS multicast group on interface wlan0.IPv6 with address fe80::c6af:a739:b4bb:4d62.
Jun 19 09:45:24 raspberrypi avahi-daemon[438]: New relevant interface wlan0.IPv6 for mDNS.
Jun 19 09:45:24 raspberrypi avahi-daemon[438]: Registering new address record for fe80::c6af:a739:b4bb:4d62 on wlan0.*.
Jun 19 09:45:24 raspberrypi dhcpcd[437]: wlan0: waiting for carrier
Jun 19 09:45:24 raspberrypi wpa_supplicant[565]: wlan0: CTRL-EVENT-REGDOM-CHANGE init=USER type=COUNTRY alpha2=PH
Jun 19 09:46:56 raspberrypi wpa_supplicant[565]: wlan0: Trying to associate with 40:ee:dd:a9:96:94 (SSID='YYYY Wi-Fi' freq=2457 MHz)
Jun 19 09:46:56 raspberrypi wpa_supplicant[565]: wlan0: Associated with 40:ee:dd:a9:96:94
Jun 19 09:46:56 raspberrypi kernel: [   98.377088] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
Jun 19 09:46:56 raspberrypi wpa_supplicant[565]: wlan0: CTRL-EVENT-REGDOM-CHANGE init=COUNTRY_IE type=COUNTRY alpha2=PH
Jun 19 09:46:56 raspberrypi wpa_supplicant[565]: wlan0: WPA: Key negotiation completed with 40:ee:dd:a9:96:94 [PTK=CCMP GTK=TKIP]
Jun 19 09:46:56 raspberrypi wpa_supplicant[565]: wlan0: CTRL-EVENT-CONNECTED - Connection to 40:ee:dd:a9:96:94 completed [id=3 id_str=]
Jun 19 09:46:56 raspberrypi dhcpcd[607]: wlan0: carrier acquired
Jun 19 09:46:56 raspberrypi dhcpcd[607]: wlan0: IAID eb:ed:a2:e2
Jun 19 09:46:57 raspberrypi dhcpcd[607]: wlan0: rebinding lease of 192.168.43.166
Jun 19 09:46:57 raspberrypi kernel: [   99.230155] IPv6: wlan0: IPv6 duplicate address fe80::c6af:a739:b4bb:4d62 detected!
Jun 19 09:46:57 raspberrypi dhcpcd[607]: wlan0: soliciting an IPv6 router
Jun 19 09:47:01 raspberrypi dhcpcd[607]: wlan0: NAK: from 192.168.16.254
Jun 19 09:47:01 raspberrypi dhcpcd[607]: wlan0: soliciting a DHCP lease
Jun 19 09:47:03 raspberrypi dhcpcd[607]: wlan0: offered 192.168.16.80 from 192.168.16.254
Jun 19 09:47:08 raspberrypi dhcpcd[607]: wlan0: leased 192.168.16.80 for 259200 seconds
Jun 19 09:47:08 raspberrypi avahi-daemon[438]: Joining mDNS multicast group on interface wlan0.IPv4 with address 192.168.16.80.
Jun 19 09:47:08 raspberrypi avahi-daemon[438]: New relevant interface wlan0.IPv4 for mDNS.
Jun 19 09:47:08 raspberrypi dhcpcd[607]: wlan0: adding route to 192.168.16.0/24
Jun 19 09:47:08 raspberrypi avahi-daemon[438]: Registering new address record for 192.168.16.80 on wlan0.IPv4.
Jun 19 09:47:08 raspberrypi dhcpcd[607]: wlan0: adding default route via 192.168.16.254
Jun 19 09:47:10 raspberrypi ntpd[637]: Listen normally on 4 wlan0 192.168.16.80 UDP 123

以下是输出lsb_release -a

Distributor ID: Raspbian
Description:    Raspbian GNU/Linux 8.0 (jessie)
Release:    8.0
Codename:   jessie

输出uname -a

Linux raspberrypi 4.9.35-v7+ #1014 SMP Fri Jun 30 14:47:43 BST 2017 armv7l GNU/Linux

我已经搜索了很长时间,但似乎找不到可行的解决方案。在这种情况下,可能的问题在于路由器或接入点,但在我的智能手机上,我能够连接到“XXXX Wi-Fi”。所以现在我没有主意了。任何帮助都将不胜感激。

答案1

我遇到了这个问题,这个答案帮助了。换句话说,我做到了

rmmod brcmfmac 
modprobe brcmfmac roamoff=1 feature_disable=0x82000

然后wpa_supplicant像正常一样,它连接了。

相关内容