| 1 | = "iwpriv" command line interface to driver parameters = |
| 2 | * Madwifi provides an ioctl based command line interface "iwpriv" to set certain driver parameters specific to the wireless interface. [[BR]] |
| 3 | |
| 4 | == Usage of ipwriv == |
| 5 | |
| 6 | * Typing iwpriv on the command line would give a list of the available private ioctls for each of the wireless interfaces that are up. [[BR]] |
| 7 | For example, [[BR]] |
| 8 | |
| 9 | node1-1:~# iwpriv [[BR]] |
| 10 | eth0 no private ioctls. |
| 11 | |
| 12 | eth1 no private ioctls. |
| 13 | |
| 14 | lo no private ioctls. |
| 15 | |
| 16 | ath0 Available private ioctls : |
| 17 | setoptie (8BE8) : set 256 byte & get 0 [[BR]] |
| 18 | getoptie (8BE9) : set 0 & get 256 byte [[BR]] |
| 19 | setkey (8BE2) : set 60 byte & get 0 [[BR]] |
| 20 | delkey (8BE4) : set 7 byte & get 0 [[BR]] |
| 21 | setmlme (8BE6) : set 42 byte & get 0 [[BR]] |
| 22 | addmac (8BEA) : set 1 addr & get 0 [[BR]] |
| 23 | delmac (8BEC) : set 1 addr & get 0 [[BR]] |
| 24 | chanlist (8BEE) : set 32 byte & get 0 [[BR]] |
| 25 | wdsadd (8BF0) : set 1 addr & get 0 [[BR]] |
| 26 | wdsdel (8BF2) : set 1 addr & get 0 [[BR]] |
| 27 | setparam (8BE0) : set 2 int & get 0 [[BR]] |
| 28 | getparam (8BE1) : set 1 int & get 1 int [[BR]] |
| 29 | turbo (0001) : set 1 int & get 0 [[BR]] |
| 30 | get_turbo (0001) : set 0 & get 1 int [[BR]] |
| 31 | mode (0002) : set 1 int & get 0 [[BR]] |
| 32 | get_mode (0002) : set 0 & get 1 int [[BR]] |
| 33 | authmode (0003) : set 1 int & get 0 [[BR]] |
| 34 | get_authmode (0003) : set 0 & get 1 int [[BR]] |
| 35 | protmode (0004) : set 1 int & get 0 [[BR]] |
| 36 | get_protmode (0004) : set 0 & get 1 int [[BR]] |
| 37 | mcastcipher (0005) : set 1 int & get 0 [[BR]] |
| 38 | get_mcastcipher (0005) : set 0 & get 1 int [[BR]] |
| 39 | mcastkeylen (0006) : set 1 int & get 0 [[BR]] |
| 40 | get_mcastkeylen (0006) : set 0 & get 1 int [[BR]] |
| 41 | ucastciphers (0007) : set 1 int & get 0 [[BR]] |
| 42 | get_uciphers (0007) : set 0 & get 1 int [[BR]] |
| 43 | ucastcipher (0008) : set 1 int & get 0 [[BR]] |
| 44 | get_ucastcipher (0008) : set 0 & get 1 int [[BR]] |
| 45 | ucastkeylen (0009) : set 1 int & get 0 [[BR]] |
| 46 | get_ucastkeylen (0009) : set 0 & get 1 int [[BR]] |
| 47 | keymgtalgs (0015) : set 1 int & get 0 [[BR]] |
| 48 | get_keymgtalgs (0015) : set 0 & get 1 int [[BR]] |
| 49 | rsncaps (0016) : set 1 int & get 0 [[BR]] |
| 50 | get_rsncaps (0016) : set 0 & get 1 int [[BR]] |
| 51 | roaming (000C) : set 1 int & get 0 [[BR]] |
| 52 | get_roaming (000C) : set 0 & get 1 int [[BR]] |
| 53 | privacy (000D) : set 1 int & get 0 [[BR]] |
| 54 | get_privacy (000D) : set 0 & get 1 int[[BR]] |
| 55 | countermeasures (000E) : set 1 int & get 0 [[BR]] |
| 56 | get_countermeas (000E) : set 0 & get 1 int [[BR]] |
| 57 | dropunencrypted (000F) : set 1 int & get 0 [[BR]] |
| 58 | get_dropunencry (000F) : set 0 & get 1 int [[BR]] |
| 59 | wpa (000A) : set 1 int & get 0 [[BR]] |
| 60 | get_wpa (000A) : set 0 & get 1 int [[BR]] |
| 61 | driver_caps (0010) : set 1 int & get 0 [[BR]] |
| 62 | get_driver_caps (0010) : set 0 & get 1 int [[BR]] |
| 63 | maccmd (0011) : set 1 int & get 0 [[BR]] |
| 64 | wme (0012) : set 1 int & get 0 [[BR]] |
| 65 | get_wme (0012) : set 0 & get 1 int [[BR]] |
| 66 | hide_ssid (0013) : set 1 int & get 0 [[BR]] |
| 67 | get_hide_ssid (0013) : set 0 & get 1 int [[BR]] |
| 68 | ap_bridge (0014) : set 1 int & get 0 [[BR]] |
| 69 | get_ap_bridge (0014) : set 0 & get 1 int [[BR]] |
| 70 | inact (0017) : set 1 int & get 0 [[BR]] |
| 71 | get_inact (0017) : set 0 & get 1 int [[BR]] |
| 72 | inact_auth (0018) : set 1 int & get 0 [[BR]] |
| 73 | get_inact_auth (0018) : set 0 & get 1 int [[BR]] |
| 74 | inact_init (0019) : set 1 int & get 0 [[BR]] |
| 75 | get_inact_init (0019) : set 0 & get 1 int [[BR]] |
| 76 | ibss (001A) : set 1 int & get 0 [[BR]] |
| 77 | get_ibss (001A) : set 0 & get 1 int [[BR]] |
| 78 | pureg (001B) : set 1 int & get 0 [[BR]] |
| 79 | get_pureg (001B) : set 0 & get 1 int [[BR]] |
| 80 | wdsonly (001C) : set 1 int & get 0 [[BR]] |
| 81 | get_wdsonly (001C) : set 0 & get 1 int [[BR]] |
| 82 | calint (001D) : set 1 int & get 0 [[BR]] |
| 83 | get_calint (001D) : set 0 & get 1 int [[BR]] |
| 84 | reset (0063) : set 1 int & get 0 [[BR]] |
| 85 | * To set a parameter using an available ioctl, one can issue a following command |
| 86 | iwpriv <interface name> <an iotcl name with set flag 1> value. [[BR]] |
| 87 | For example, to set the periodic noise floor calibration interval to a value of 3 seconds on interface ath0, issue the following command. [[BR]] |
| 88 | |
| 89 | iwpriv ath0 calint 3 |
| 90 | |
| 91 | * To get a parameter using an available ioctl, one can use the following command |
| 92 | iwpriv <interface name> <an ioctl name with get flag 1> value. [[BR]] |
| 93 | For example, to get the periodic noise floor calibration interval, [[BR]] |
| 94 | |
| 95 | iwpriv ath0 get_calint [[BR]] |