@yiltoncent
2015-03-25T14:21:19.000000Z
字数 1609
阅读 3560
WiFi
In the Atheros driver, two device types are created when the AP is brought up.
Two main programs of the wireless tools suite:
iwconfig
iwpriv
Many commands are only effective before the AP interface is in the up state, so these commands must be performed prior to issuing the ifconfig up
command to the interface.
iwconfig
命令,该命令只能用在协议层。ifconfig
命令只能应用于协议层设备。iwconfig
命令是一套固定的用于设定和操作WLAN
接口的命令集。
参数:
parameter | format | description |
---|---|---|
ap | iwconfig ath N ap MAC | |
channel | iwconfig ath N channel args | |
enc key | iwconfig ath N key [idx] key_val | |
essid | iwconfig ath N essid "name" | |
frag | iwconfig ath N frag level | |
freq | iwconfig ath N freq frequency | |
rate | iwconfig ath N rate rateval/auto | |
rts | iwconfig ath N rts pkt_size | |
txpower | iwconfig ath N txpower power_num |
iwpriv
命令可用于各层。有些命令在各层间复用。建议复用的命令出现的时候,使用radio层命令。
eg:
iwpriv wifiN AMPDU 1
addmac/delmac/getmac/maccmd/get_maccmd 这些命令设定或修改MAC过滤列表。
addmac
:增加指定MAC地址到访问控制列表中(ACL)。
delmac
:
getmac
:
maccmd
:指示ACL如何限制访问AP
ap_bridge/get_ap_bridge
使能或禁止AP驱动的桥接功能。
wlanconfig ath[N] create wlandev *wifiN* wlanmode *[ap/sta/mon]* [bssid *-bssid*] [nosbeacon]
wlanconfig athN list [*sta/ap/chan/keys/caps/wme*]
wlanconfig athN destroy