Version 2 (modified by 19 years ago) ( diff ) | ,
---|
"iwpriv" command line interface to driver parameters
- Madwifi provides an ioctl based command line interface "iwpriv" to set certain driver parameters specific to the wireless interface.
Usage of iwpriv
- Typing iwpriv on the command line would give a list of the available private ioctls for each of the wireless interfaces that are up.
For example,
node1-1:~# iwpriv
eth0 no private ioctls.
eth1 no private ioctls.
lo no private ioctls.
ath0 Available private ioctls :
setoptie (8BE8) : set 256 byte & get 0
getoptie (8BE9) : set 0 & get 256 byte
setkey (8BE2) : set 60 byte & get 0
delkey (8BE4) : set 7 byte & get 0
setmlme (8BE6) : set 42 byte & get 0
addmac (8BEA) : set 1 addr & get 0
delmac (8BEC) : set 1 addr & get 0
chanlist (8BEE) : set 32 byte & get 0
wdsadd (8BF0) : set 1 addr & get 0
wdsdel (8BF2) : set 1 addr & get 0
setparam (8BE0) : set 2 int & get 0
getparam (8BE1) : set 1 int & get 1 int
turbo (0001) : set 1 int & get 0
get_turbo (0001) : set 0 & get 1 int
mode (0002) : set 1 int & get 0
get_mode (0002) : set 0 & get 1 int
authmode (0003) : set 1 int & get 0
get_authmode (0003) : set 0 & get 1 int
protmode (0004) : set 1 int & get 0
get_protmode (0004) : set 0 & get 1 int
mcastcipher (0005) : set 1 int & get 0
get_mcastcipher (0005) : set 0 & get 1 int
mcastkeylen (0006) : set 1 int & get 0
get_mcastkeylen (0006) : set 0 & get 1 int
ucastciphers (0007) : set 1 int & get 0
get_uciphers (0007) : set 0 & get 1 int
ucastcipher (0008) : set 1 int & get 0
get_ucastcipher (0008) : set 0 & get 1 int
ucastkeylen (0009) : set 1 int & get 0
get_ucastkeylen (0009) : set 0 & get 1 int
keymgtalgs (0015) : set 1 int & get 0
get_keymgtalgs (0015) : set 0 & get 1 int
rsncaps (0016) : set 1 int & get 0
get_rsncaps (0016) : set 0 & get 1 int
roaming (000C) : set 1 int & get 0
get_roaming (000C) : set 0 & get 1 int
privacy (000D) : set 1 int & get 0
get_privacy (000D) : set 0 & get 1 int
countermeasures (000E) : set 1 int & get 0
get_countermeas (000E) : set 0 & get 1 int
dropunencrypted (000F) : set 1 int & get 0
get_dropunencry (000F) : set 0 & get 1 int
wpa (000A) : set 1 int & get 0
get_wpa (000A) : set 0 & get 1 int
driver_caps (0010) : set 1 int & get 0
get_driver_caps (0010) : set 0 & get 1 int
maccmd (0011) : set 1 int & get 0
wme (0012) : set 1 int & get 0
get_wme (0012) : set 0 & get 1 int
hide_ssid (0013) : set 1 int & get 0
get_hide_ssid (0013) : set 0 & get 1 int
ap_bridge (0014) : set 1 int & get 0
get_ap_bridge (0014) : set 0 & get 1 int
inact (0017) : set 1 int & get 0
get_inact (0017) : set 0 & get 1 int
inact_auth (0018) : set 1 int & get 0
get_inact_auth (0018) : set 0 & get 1 int
inact_init (0019) : set 1 int & get 0
get_inact_init (0019) : set 0 & get 1 int
ibss (001A) : set 1 int & get 0
get_ibss (001A) : set 0 & get 1 int
pureg (001B) : set 1 int & get 0
get_pureg (001B) : set 0 & get 1 int
wdsonly (001C) : set 1 int & get 0
get_wdsonly (001C) : set 0 & get 1 int
calint (001D) : set 1 int & get 0
get_calint (001D) : set 0 & get 1 int
reset (0063) : set 1 int & get 0
- To set a parameter using an available ioctl, one can issue a following command
iwpriv <interface name> <an iotcl name with set flag 1> value.
For example, to set the periodic noise floor calibration interval to a value of 3 seconds on interface ath0, issue the following command.
iwpriv ath0 calint 3
- To get a parameter using an available ioctl, one can use the following command
iwpriv <interface name> <an ioctl name with get flag 1> value.
For example, to get the periodic noise floor calibration interval,
iwpriv ath0 get_calint