COMPANY CONFIDENTIAL
30
txpower
#iwconfig ath
N
txpower
power_setting
This command will set the transmit power for all packets on the device. This power is limited by the regulatory
limits encoded into the driver, and selected by setting the country code (see iwpriv command
setCountry
). The
value of power_setting is provided in units of dBm. Setting the
power_setting
value to off will enable the
internal power control logic for setting power level. Default Tx power levels are dependant on the information
in the selected regulatory table.
#iwconfig ath0 txpower 30
enc
key
#iwconfig ath
N
key [
index
]
key_value
The commands
enc
and
key
are synonyms for the same command to set and manage WEP keys. The hardware
will support up to four WEP keys per radio module. The optional index value indicates which key is being
set/activated. The index value can be from 1 to 4.
The key_value parameter can be specified in either hex mode or as an ASCII string. Key values can be
specified for either WEP 64 (40) bit mode, requiring 5 bytes, or WEP 128 (108) bit mode, requiring 13 bytes.
In hexadecimal mode this comes out to 10 or 26 hex digits, respectively. Hex digits are separated in groups of 4
by hyphens. When specifying ASCII keys, the keys will require 5 or 13 characters, respectively. All ASCII
key strings are preceded by the
s:
indicator.
To turn WEP off, use the off command without index. WEP is automatically turned on when a key is specified.
Specifying a key index without a key value will select that key as the active key.
#iwconfig ath0 key [2] DEAD_BEEF_EA
#iwconfig ath0 key [1] s:AnASCIIkeyVal
#iwconfig ath0 key off
2.5.2.2 iwpriv
The following section defines all of the iwpriv commands available for each layer. Note that there are some duplicate
commands between the layers. It is recommended to use the radio layer commands over the protocol layer command
(wifi
N
commands over ath
N
commands) when duplication exists.