Wpa-Supplicant

wpa_supplicant 無法連接到 peap 網路,原因為 15

  • June 19, 2019

我無法登錄我的大學網路。

配置:

network {
   scan_ssid=1
   ssid="apname"
   key_mgmt=WPA_EAP
   eap=PEAP
   ca_cert="/path/to/correct_and_verified_cert.pem"
   altsubject_match="DNS:xxx"
   identity="correct_identity"
   password="password"
   phase1="peaplabel=0"
   phase2="auth=MSCHAPV2"
}

wpa_supplicant 的輸出:

user@comp$ sudo wpa_supplicant -c /etc/wpa_supplicant/network.conf -i wlp4s0
Successfully initialized wpa_supplicant
wlp4s0: Trying to associate with SSID 'apname'
wlp4s0: Associated with xx:xx:xx:xx:xx:xx
wlp4s0: CTRL-EVENT-EAP-STARTED EAP authentication started
wlp4s0: CTRL-EVENT-SUBNET-STATUS-UPDATE status=0
wlp4s0: CTRL-EVENT-EAP-PROPOSED-METHOD vendor=0 method=25
wlp4s0: CTRL-EVENT-EAP-METHOD EAP vendor 0 method 25 (PEAP) selected
wlp4s0: CTRL-EVENT-EAP-PEER-CERT depth=2 subject='/C=US/O=DigiCert Inc/OU=www.digicert.com/CN=DigiCert Assured ID Root CA' hash=HASHHASH
wlp4s0: CTRL-EVENT-EAP-PEER-CERT depth=1 subject='/C=NL/ST=Noord-Holland/L=Amsterdam/O=TERENA/CN=TERENA SSL CA 3' hash=HASHHASH
wlp4s0: CTRL-EVENT-EAP-PEER-CERT depth=0 subject='/C=XX/L=Loc/O=UNIV_ID Loc/OU=ZID KOM/CN=odo.XXX' hash=HASHHASH
wlp4s0: CTRL-EVENT-EAP-PEER-ALT depth=0 DNS:odo.XXX
wlp4s0: CTRL-EVENT-EAP-PEER-ALT depth=0 DNS:radius.XXX
EAP-MSCHAPV2: Authentication succeeded
EAP-TLV: TLV Result - Success - EAP-TLV/Phase2 Completed
wlp4s0: CTRL-EVENT-EAP-SUCCESS EAP authentication completed successfully
wlp4s0: CTRL-EVENT-CONNECTED - Connection to xx:xx:xx:xx:xx:xx completed [id=2 id_str=]
wlp4s0: CTRL-EVENT-DISCONNECTED bssid=xx:xx:xx:xx:xx:xx reason=15 locally_generated=1
wlp4s0: CTRL-EVENT-REGDOM-CHANGE init=CORE type=WORLD

已知此配置適用於其他系統。我還嘗試刪除配置中的 ca_cert 行,以防止驗證證書。

原因 15 表示 4 次握手由於超時而失敗。

有誰知道是什麼導致了這個問題?

  • Linux核心版本:5.1.9
  • wpa_supplicant 版本:v2.8
  • 無線網卡:04:00.0 網路控制器:Broadcom Inc. 及其子公司 BCM43602 802.11ac 無線 LAN SoC (rev 01)
  • 無線網卡驅動:brcmfmac

所以 wpa_supplicant 的 2.6 和 2.7 版本之間出現了問題。

降級起到了作用。

我正在執行拱門(令人驚訝的東西壞了),所以我做了以下事情:

sudo pacman -U /var/cache/pacman/wpa_supplicant-2\:2.6-2-x86_64.pkg.tar.gz
echo 'IgnorePkg=wpa_supplicant >> /etc/pacman.conf'

在擺弄了一段時間後,我發現使用wext而不是新的nl80211驅動程序也可以解決這個問題,即使對於 wpa_supplicant 的 2.8 版也是如此。

引用自:https://unix.stackexchange.com/questions/524894