wiki:Internal/Iwpriv

"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
...

  • In addition, support has also been added for setting/getting the periodic noise floor calibration interval through the ioctl "calint" and "get_calint" using iwpriv. The periodic noise floor calibration interval determines how often the radio card calibrates the noise floor to account for any temperature and/or environment changes.
  • 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

Last modified 13 years ago Last modified on 08/24/06 17:34:11