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
}
阅读(11092) | 评论(0) | 转发(0) |