我该如何配置我的 wpa_supplicant.conf?我在 TP-link WR841N 中以 STA 模式使用 OpenWRT。但我无法连接到 SMC! 我想通过 wpa_supplicant 连接到 SMC!但我知道在其他配置下也可以。我的最终目标是连接到 eduroam(企业、学校等网络)
wlan0 Scan completed :
Cell 01 - Address: 00:13:F7:E4:E3:B7
Channel:6
Frequency:2.437 GHz (Channel 6)
Quality=37/70 Signal level=-73 dBm
Encryption key:on
ESSID:"SMC"
Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 6 Mb/s
12 Mb/s; 24 Mb/s; 36 Mb/s
Bit Rates:9 Mb/s; 18 Mb/s; 48 Mb/s; 54 Mb/s
Mode:Master
Extra:tsf=0000000e397f7181
Extra: Last beacon: 100ms ago
IE: Unknown: 0003534D43
IE: Unknown: 010882848B960C183048
IE: Unknown: 030106
IE: Unknown: 07064E4C20010D14
IE: Unknown: 2A0100
IE: Unknown: 32041224606C
IE: IEEE 802.11i/WPA2 Version 1
Group Cipher : TKIP
Pairwise Ciphers (1) : CCMP
Authentication Suites (1) : PSK
Preauthentication Supported
IE: WPA Version 1
Group Cipher : TKIP
Pairwise Ciphers (2) : TKIP CCMP
Authentication Suites (1) : PSK
//My wpa_supplicant.conf
ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=0
network={
ssid="SMC"
key_mgmt=WPA-PSK
proto=RSN
pairwise=TKIP
group=TKIP
psk="secret passphrase"
}
//And in my /etc/config/wireless
config 'wifi-device' 'radio0'
option 'type' 'mac80211'
option 'macaddr' 'f8:d1:11:51:0a:2a'
option 'hwmode' '11ng'
option 'htmode' 'HT20'
list 'ht_capab' 'SHORT-GI-20'
list 'ht_capab' 'SHORT-GI-40'
list 'ht_capab' 'TX-STBC'
list 'ht_capab' 'RX-STBC1'
list 'ht_capab' 'DSSS_CCK-40'
option 'disabled' '0'
option 'channel' '6' #it is correct !
config 'wifi-iface'
option 'device' 'radio0'
option 'network' 'wwan'
option 'mode' 'sta'
option 'ssid' 'SMC'
option 'encryption' 'none' #I don't if it's correct ?
感谢您的帮助 :)
答案1
在 wpa_supplican.conf 中,写入如下内容。全部删除....
network={
ssid="SMC"
key_mgmt=WPA-PSK
proto=RSN
pairwise=CCMP
group=TKIP
psk="secret passphrase"
}
使用 wpa_passphrase 生成 psk。您将获得一次击杀。输入psk="那个键"
然后使用此命令运行
wpa_supplicant -Dwext -i wlan0 -c /etc/wpa_supplicant.conf -dd
如果不同,请更改驱动程序和接口名称。