纸上得来终觉浅,绝知此事要躬行。 生命不息,奋斗不止。
分类: LINUX
2020-06-02 17:41:59
原文地址:【转】wlanconfig命令 作者:whxlovehy
~ # wlanconfig
usage: wlanconfig athX create wlandev wifiX
wlanmode [sta|adhoc|ap|monitor|p2pgo|p2pcli|p2pdev] [bssid | -bssid] [nosbeacon]
usage: wlanconfig athX destroy
usage: wlanconfig athX nawds mode (0-4)
usage: wlanconfig athX nawds defcaps CAPS
usage: wlanconfig athX nawds override (0-1)
usage: wlanconfig athX nawds add-repeater MAC (0-1)
usage: wlanconfig athX nawds del-repeater MAC
usage: wlanconfig athX nawds list
usage: wlanconfig athX wds add-addr MAC_NODE MAC (1-2)
创建VAP接口
AP模式
wlanconfig athN create wlandev wifiN wlanmode ap
wlanconfig ath0 create wlandev wifi0 wlanmode ap
Station模式
wlanconfig athN create wlandev wifiN wlanmode sta nosbeacon
Ad Hoc模式
wlanconfig athN create wlandev wifiN wlanmode adhoc
Monitor模式
wlanconfig monN create wlandev wifiN wlanmode mon
删除VAP接口
wlanconfig athN destroy
查看支持的信道
~ # wlanconfig ath0 list chan
Channel 1 : 2412 Mhz 11ng C CU Channel 64 : 5320 *~ Mhz 11na C CL
Channel 2 : 2417 Mhz 11ng C CU Channel 100 : 5500 *~ Mhz 11na C CU
Channel 3 : 2422 Mhz 11ng C CU Channel 104 : 5520 *~ Mhz 11na C CL
Channel 4 : 2427 Mhz 11ng C CU Channel 108 : 5540 *~ Mhz 11na C CU
Channel 5 : 2432 Mhz 11ng C CU CL Channel 112 : 5560 *~ Mhz 11na C CL
Channel 6 : 2437 Mhz 11ng C CU CL Channel 116 : 5580 *~ Mhz 11na C CU
Channel 7 : 2442 Mhz 11ng C CU CL Channel 120 : 5600 *~ Mhz 11na C CL
Channel 8 : 2447 Mhz 11ng C CL Channel 124 : 5620 *~ Mhz 11na C CU
Channel 9 : 2452 Mhz 11ng C CL Channel 128 : 5640 *~ Mhz 11na C CL
Channel 10 : 2457 Mhz 11ng C CL Channel 132 : 5660 *~ Mhz 11na C CU
Channel 11 : 2462 Mhz 11ng C CL Channel 136 : 5680 *~ Mhz 11na C CL
Channel 36 : 5180 Mhz 11na C CU Channel 140 : 5700 *~ Mhz 11na C
Channel 40 : 5200 Mhz 11na C CL Channel 149 : 5745 Mhz 11na C CU
Channel 44 : 5220 Mhz 11na C CU Channel 153 : 5765 Mhz 11na C CL
Channel 48 : 5240 Mhz 11na C CL Channel 157 : 5785 Mhz 11na C CU
Channel 52 : 5260 *~ Mhz 11na C CU Channel 161 : 5805 Mhz 11na C CL
Channel 56 : 5280 *~ Mhz 11na C CL Channel 165 : 5825 Mhz 11na C
Channel 60 : 5300 *~ Mhz 11na C CU
~ # wlanconfig ath0 list scan
~ # wlanconfig ath0 list sta
~ # wlanconfig ath0 list uista