Chinaunix首页 | 论坛 | 博客
  • 博客访问: 256460
  • 博文数量: 86
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 640
  • 用 户 组: 普通用户
  • 注册时间: 2018-10-15 14:13
个人简介

搭建一个和linux开发者知识共享和学习的平台

文章分类

全部博文(86)

文章存档

2023年(24)

2022年(27)

2019年(8)

2018年(27)

分类: 嵌入式

2018-10-17 10:02:46

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
}

阅读(10862) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~