madwifi ioctls

Notes on a few madwifi ioctls

Turn off 802.11h
# iwpriv ath0 doth 0 

fast frames support
# iwpriv ath0 ff 1 
This feature increases the amount of information that can be sent per frame, also resulting in a reduction of transmission overhead. It is a proprietary feature that needs to be supported by the Access Point.

Burst mode
# iwpriv ath0 burst 1 
Bursting allows multiple frames to be sent at once, rather than pausing after each frame. This reduces the overhead needed for transmission and thus increases the throughput. Slight modifications to the standard timing also add a bit to the throughput. Bursting is a standards-compliant feature that can be used with any Access Point.

Turn off Background Scan
# iwpriv ath0 bgscan 0 

Use A mode
# iwpriv ath0 mode 1 

# iwpriv ath0 mode 11a

An outdoor client-if configuration
# cat wireless 

config wifi-device 'radio0'
 option type 'atheros'
 option macaddr '00:0b:6b:84:41:59'
 option distance '3870'
  option outdoor '1'
 option txantenna '1'
 option rxantenna '1'
 option hwmode '11a'
 option channel '112'
 option diversity '0'
 option bursting '1'
 option ff '1'
 option disabled '0'
 option regdomain '97'
 option countrycode '0'
 option bgscan '0'
 option doth '0'
 option txpower '4'

config wifi-iface
 option device 'radio0'
 option encryption 'none'
 option ssid 'wn-x-y'
 option rate '48M fixed'
 option mode 'sta'
 option network 'ath0'
 option ifname 'ath0'

I prefer editing /etc/config/wireless, however I think that the UCI is great for scripting and sending configs.

Openwrt UCI usage examples

Enable wifi set for the first wireless interface --in /etc/config/wireless-- disabled to 0
# uci set wireless.@wifi-device[0].disabled=0; uci commit wireless; wifi

Set txpower to 6 dBm on the first wireless interface.
# uci set wireless.@wifi-device[0].txpower=6; uci commit wireless; wifi

Atheros Super A/G
openwrt uci wireless

madwifi ioctls