wpa_supplicant -iwlan1 -Dnl80211 -c/etc/wpa_supplicant.conf
Successfully initialized wpa_supplicant
nl80211: Could not re-add multicast membership for vendor events: -2 (No such file or directory)
wlan1: Trying to associate with 00:9a:cd:10:dd:5f (SSID='HUAWEI GRA-TL00' freq=2462 MHz)
RTL871X: rtw_set_802_11_connect(wlan1) fw_state=0x00000008
RTL871X: start auth
RTL871X: auth success, start assoc
RTL871X: assoc success
wlan1: Associated with 00:9a:cd:10:dd:5f
wlan1: CTRL-EVENT-SUBNET-STATUS-UPDATE status=0
RTL871X: OnDeAuth(wlan1) reason=7, ta=00:9a:cd:10:dd:5f, ignore=0
cfg80211: Calling CRDA for country: CN
wlan1: CTRL-EVENT-DISCONNECTED bssid=00:9a:cd:10:dd:5f reason=0
wlan1: Trying to associate with 00:9a:cd:10:dd:5f (SSID='HUAWEI GRA-TL00' freq=2462 MHz)
RTL871X: rtw_set_802_11_connect(wlan1) fw_state=0x00000008
RTL871X: start auth
RTL871X: auth success, start assoc
RTL871X: assoc success
wlan1: Associated with 00:9a:cd:10:dd:5f
wlan1: CTRL-EVENT-SUBNET-STATUS-UPDATE status=0
RTL871X: send eapol packet
RTL871X: send eapol packet
RTL871X: set pairwise key camid:4, addr:00:9a:cd:10:dd:5f, kid:0, type:AES
wlan1: WPA: Key negotiation completed with 00:9a:cd:10:dd:5f [PTK=CCMP GTK=CCMP]
wlan1: CTRL-EVENT-CONNECTED - Connection to 00:9a:cd:10:dd:5f completed [id=0 id_str=]
认证通过后通过dhcp可获得动态ip
udhcpc -i wlan1
/etc/wpa_supplicant.conf主要配置如下
WPA-Personal(PSK) with TKIP and enforcement for frequent PTK rekeying
network={
ssid="HUAWEI GRA-TL00"
scan_ssid=1
key_mgmt=WPA-PSK
proto=RSN WPA2
pairwise=CCMP
auth_alg=OPEN
psk="12345678abc"
#psk=a27eac44bca4a52e85adc080b6f7aee27d59d04bebced870eda9a06ddab0d184
}
linux下通过wpa_supplicant实现wifi方式上网
最新推荐文章于 2025-10-24 10:01:28 发布
本文详细记录了使用wpa_supplicant进行Wi-Fi连接的过程,包括初始化、认证、关联、断开及重连的全过程。特别关注了RTL871X芯片的无线网络操作细节,如802.11连接状态、EAPOL包发送、密钥设置及WPA协议交互。同时展示了/etc/wpa_supplicant.conf文件中关于WPA个人模式的配置参数。
1311

被折叠的 条评论
为什么被折叠?



