歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux技術 >> wpa_supplication的使用(1)

wpa_supplication的使用(1)

日期:2017/3/3 12:59:59   编辑:Linux技術

Wpa_supplicant

Wpa_supplicant是linux系統的無線網卡管理程序。
下面先給出我測試機TECNO-Phantom6 的wpa_supplication.conf
adb shell
cd data/misc/wifi
cat wpa_supplicant.conf
[code]ctrl_interface=/data/misc/wifi/sockets
driver_param=use_p2p_group_interface=1
update_config=1
device_name=Phantom6
manufacturer=TECNO
model_name=Phantom6
model_number=Phantom6
serial_number=0123456789ABCDEF
device_type=10-0050F204-5
os_version=01020300
config_methods=physical_display virtual_push_button
p2p_no_group_iface=1
external_sim=1
wowlan_triggers=disconnect

network={
    ssid="transsion-tecno"
    psk="tecno1234"
    key_mgmt=WPA-PSK
    priority=15
}
network={
    ssid="ssss"
    scan_ssid=1 
    psk="11111111"
    key_mgmt=WPA-PSK
    priority=7
}

在手機wifi中保存的網絡,會在該配置文件中以network節點保存
ssid :接入點名稱
scan_ssid=1 :說明無線接入點是隱藏的
參考官方配置:wpa_supplicant官方配置文件(英文)
proto: ——支持的協議列表
WPA = WPA/IEEE 802.11i/D3.0
RSN = WPA2/IEEE 802.11i ———也能稱為WPA2,它只是RSN的一個別名
如果不設置,默認WPA RSN(WPA2)
key_mgmt: —認證密鑰管理協議,支持的協議列表
WPA-PSK = WPA pre-shared key (this requires ‘psk’ field) —一般都是這個,這就包括了WPA、WPA2開始的那些方式
WPA-EAP = WPA using EAP authentication
IEEE8021X = IEEE 802.1X using EAP authentication and (optionally) dynamically generated WEP keys
NONE = WPA is not used; plaintext or static WEP could be used —這個是開放的,沒密碼、CMCC…
WPA-PSK-SHA256 = Like WPA-PSK but using stronger SHA256-based algorithms
WPA-EAP-SHA256 = Like WPA-EAP but using stronger SHA256-based algorithms
If not set, this defaults to: WPA-PSK WPA-EAP —如果未設置,默認支持WAP、WEP開頭那些
pairwise: list of accepted pairwise (unicast) ciphers for WPA —WPA可用的加密方式列表
CCMP = AES in Counter mode with CBC-MAC [RFC 3610, IEEE 802.11i/D7.0] —這個就是AES
TKIP = Temporal Key Integrity Protocol [IEEE 802.11i/D7.0]
NONE = Use only Group Keys (deprecated, should not be included if APs support pairwise keys)
If not set, this defaults to: CCMP TKIP —不設置默認為CCMP TKIP
Copyright © Linux教程網 All Rights Reserved