系统:archlinux(最后更新)
我插入了 USB 无线适配器,基本功能似乎可以开箱即用,但我似乎无法正确配置 wpa_supplicant 来获得连接。它总是告诉我,我可能有一个错误的密钥 - 我知道我没有,因为这是我在其他系统上使用的,所以我肯定缺少一些东西。
我使用 MAC 过滤,但设置正确。
我可以检查我的界面
> iw dev
phy#0
Interface wlp0s29f0u1
ifindex 3
wdev 0x1
addr <<mywirelessmac>>
type managed
我可以扫描可用的网络
> iw dev wlp0s29f0u1 scan
该命令提供了许多与我的其他系统相匹配的结果和信息。包括我的ssid:
BSS <<mywirelessroutermac>>(on wlp0s29f0u1)
TSF: 5596476527 usec (0d, 01:33:16)
freq: 2412
beacon interval: 200 TUs
capability: ESS Privacy ShortSlotTime (0x0411)
signal: -65.00 dBm
last seen: 1430 ms ago
Information elements from Probe Response frame:
SSID: <<myssid>>
Supported rates: 1.0* 2.0* 5.5* 11.0* 6.0 9.0 12.0 18.0
DS Parameter set: channel 1
Country: GB Environment: Indoor/Outdoor
Channels [1 - 13] @ 20 dBm
ERP: Barker_Preamble_Mode
Extended supported rates: 24.0 36.0 48.0 54.0
HT capabilities:
Capabilities: 0x1ad
RX LDPC
HT20
SM Power Save disabled
RX HT20 SGI
TX STBC
RX STBC 1-stream
Max AMSDU length: 3839 bytes
No DSSS/CCK HT40
Maximum RX AMPDU length 65535 bytes (exponent: 0x003)
Minimum RX AMPDU time spacing: No restriction (0x00)
HT TX/RX MCS rate indexes supported: 0-15
HT operation:
* primary channel: 1
* secondary channel offset: no secondary
* STA channel width: 20 MHz
* RIFS: 0
* HT protection: non-HT mixed
* non-GF present: 1
* OBSS non-GF present: 1
* dual beacon: 0
* dual CTS protection: 0
* STBC beacon: 0
* L-SIG TXOP Prot: 0
* PCO active: 0
* PCO phase: 0
Overlapping BSS scan params:
* passive dwell: 20 TUs
* active dwell: 10 TUs
* channel width trigger scan interval: 300 s
* scan passive total per channel: 200 TUs
* scan active total per channel: 20 TUs
* BSS width channel transition delay factor: 5
* OBSS Scan Activity Threshold: 0.25 %
Extended capabilities: HT Information Exchange Supported, 6
WMM: * Parameter version 1
* u-APSD
* BE: CW 15-1023, AIFSN 3
* BK: CW 15-1023, AIFSN 7
* VI: CW 7-15, AIFSN 2, TXOP 3008 usec
* VO: CW 3-7, AIFSN 2, TXOP 1504 usec
RSN: * Version: 1
* Group cipher: CCMP
* Pairwise ciphers: CCMP
* Authentication suites: PSK
* Capabilities: 1-PTKSA-RC 1-GTKSA-RC (0x0000)
我有一个基本的个人资料:
> cat /etc/wpa_supplicant/wpa.conf
ctrl_interface=/var/run/wpa_supplicant
update_config=1
network={
ssid="<<ssid>>"
psk=<<either "mypassphrase" or [the result of wpa_passphrase ssid passphrase] neither works>>
key_mgmt=WPA-PSK # I tried without, same result
ieee80211w=1 # I tried without (both), same result
}
我尝试了两种启动 wpa_supplicant 的方法,结果完全相同:
> wpa_supplicant -B -Dnl80211 -iwlp0s29f0u1 -c /etc/wpa_supplicant/wpa.conf
Successfully initialized wpa_supplicant
(杀死-9并重新启动)
> wpa_supplicant -B -Dnl80211,wext -iwlp0s29f0u1 -c /etc/wpa_supplicant/wpa.conf
Successfully initialized wpa_supplicant
现在看看这两种情况会发生什么:
> wpa_cli
> scan
> scan_results
<<mac>> 2412 -65 [WPA2-PSK-CCMP][ESS] <<ssid>>
<3>CTRL-EVENT-SCAN-STARTED
<3>CTRL-EVENT-SCAN-RESULTS
<3>WPS-AP-AVAILABLE
<3>CTRL-EVENT-SSID-REENABLED id=0 ssid="<<ssid>>"
<3>SME: Trying to authenticate with <<mac>> (SSID='<<ssid>>' freq=2412 MHz)
<3>Trying to associate with <<mac>> (SSID='<<ssid>>' freq=2412 MHz)
<3>Associated with <<mac>>
<4>WPA: Failed to set PTK to the driver (alg=3 keylen=16 bssid=<<mac>>)
<3>CTRL-EVENT-DISCONNECTED bssid=<<mac>> reason=1 locally_generated=1
<3>WPA: 4-Way Handshake failed - pre-shared key may be incorrect
<3>CTRL-EVENT-SSID-TEMP-DISABLED id=0 ssid="<<ssid>>" auth_failures=<x> duration=<xx> reason=WRONG_KEY
<3>CTRL-EVENT-SCAN-STARTED
<3>CTRL-EVENT-SCAN-RESULTS
<3>WPS-AP-AVAILABLE
有两件事跳出来:
<4>WPA: Failed to set PTK to the driver (alg=3 keylen=16 bssid=<<mac>>)
<3>CTRL-EVENT-SSID-TEMP-DISABLED id=0 ssid="<<ssid>>" auth_failures=<x> duration=<xx> reason=WRONG_KEY
我相信第二个是第一个的症状。
所以我真正的问题是理解我的设置出了什么问题,它生成了第一条错误消息。这就是我希望得到一点帮助的地方。
谢谢。
答案1
哎呀,看来重新启动系统就解决了问题。
感谢一路上的帮助。