wpa_supplicant 输出中的“由于与 WPA/WPA2 不匹配而拒绝”是什么意思?

wpa_supplicant 输出中的“由于与 WPA/WPA2 不匹配而拒绝”是什么意思?

我正在尝试连接到一个设置为 wifi 网络共享的 Android 4.0.4 设备,wpa_supplicant使用/etc/wpa_supplicant/wpa_supplicant.conf

ctrl_interface=/var/run/wpa_supplicant
ap_scan=1

network={
    ssid="STYLUS iDroid SP 1001"
    scan_ssid=1
    proto=RSN
    key_mgmt=WPA-PSK
    pairwise=CCMP
    group=TKIP
    psk="foobar"
}

以及设备上的此 SSID 和此 WPA2-PSK 密码。在输出中,wpa_supplicant我发现

Scan SSID - hexdump_ascii(len=21):
     53 54 59 4c 55 53 20 69 44 72 6f 69 64 20 53 50   STYLUS iDroid SP
     20 31 30 30 31                                     1001           
wlan0: Starting AP scan for specific SSID: STYLUS iDroid SP 1001
wlan0: Determining shared radio frequencies (max len 1)
wlan0: Shared frequencies (len=0): completed iteration
wlan0: Add radio work 'scan'@0x1fa2c90
wlan0: First radio work item in the queue - schedule start immediately
wlan0: Starting radio work 'scan'@0x1fa2c90 after 0.000019 second wait
Scan requested (ret=0) - scan timeout 30 seconds
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
WEXT: if_removed already cleared - ignore event
Wireless event: cmd=0x8b19 len=16
wlan0: Event SCAN_RESULTS (3) received
Scan results did not fit - trying larger buffer (8192 bytes)
Received 7950 bytes of scan results (13 BSSes)
wlan0: BSS: Start scan result update 2
BSS: last_scan_res_used=13/32
wlan0: New scan results available (own=0 ext=0)
WPS: AP[0] 50:7e:5d:3a:d6:f2 type=0 tries=0 last_attempt=-1 sec ago blacklist=0
WPS: AP[1] 44:94:fc:79:52:72 type=0 tries=0 last_attempt=-1 sec ago blacklist=0
WPS: AP[2] 08:96:d7:e1:82:77 type=0 tries=0 last_attempt=-1 sec ago blacklist=0
WPS: AP[3] 74:31:70:5d:fe:5c type=0 tries=0 last_attempt=-1 sec ago blacklist=0
WPS: AP[4] e8:94:f6:a5:dd:3d type=0 tries=0 last_attempt=-1 sec ago blacklist=0
WPS: AP[5] 34:31:c4:18:eb:a4 type=0 tries=0 last_attempt=-1 sec ago blacklist=0
WPS: AP[6] 88:25:2c:f5:71:76 type=0 tries=0 last_attempt=-1 sec ago blacklist=0
WPS: AP[7] 68:b6:fc:c3:01:e8 type=0 tries=0 last_attempt=-1 sec ago blacklist=0
WPS: AP[8] 68:b6:fc:d7:8d:98 type=0 tries=0 last_attempt=-1 sec ago blacklist=0
wlan0: Radio work 'scan'@0x1fa2c90 done in 0.435438 seconds
wlan0: Selecting BSS from priority group 0
wlan0: 0: 32:aa:bd:06:39:0f ssid='STYLUS iDroid SP 1001' wpa_ie_len=0 rsn_ie_len=20 caps=0x11 level=-43
wlan0:    skip RSN IE - GTK cipher mismatch
wlan0:    reject due to mismatch with WPA/WPA2
wlan0:    skip - SSID mismatch
wlan0:    skip - SSID mismatch
wlan0:    skip - SSID mismatch
wlan0:    skip - SSID mismatch
wlan0:    skip - SSID mismatch
wlan0:    skip - SSID mismatch

我怀疑“拒绝与 WPA/WPA2 不匹配”应该解释一下这个表述有什么问题,但正如许多其他表述一样,它既无用又不言自明。它是什么意思?

network-manager-gnome当我在 Ubuntu 14.04 中使用 (0.9.8.8-0ubuntu4.3) 的小部件(意味着停用该界面)时,连接有效/etc/network/interfaces

答案1

根据这篇文章,你的 ssid 中​​没有空格可能会有帮助。

https://android.stackexchange.com/questions/1494/wifi-wont-connect-when-ssid-has-space-character

当我看到你的 ssid 中​​有空格时,我感到很奇怪,所以我在 Google 上搜索了它是否允许,结果是允许的,但从我读到的内容来看,它可能会导致问题。上面的链接就是一个例子。

答案2

注释掉protokey_mgmt(如@muru 所建议的)并group让它们自动检测解决了该问题(这可能是network-manager-gnome小程序和/或network-manager所做的)。

相关内容