Linux Commands Examples

A great documentation place for Linux commands

iwpriv

configure optionals (private) parameters of a wireless network interface


see also : iwconfig - iwlist - iwevent - iwspy

Synopsis

iwpriv [interface]
iwpriv
interface private-command [private-parameters]
iwpriv
interface private-command [I] [private-parameters]
iwpriv
interface --all


add an example, a script, a trick and tips

: email address (won't be displayed)
: name

Step 2

Thanks for this example ! - It will be moderated and published shortly.

Feel free to post other examples
Oops ! There is a tiny cockup. A damn 404 cockup. Please contact the loosy team who maintains and develops this wonderful site by clicking in the mighty feedback button on the side of the page. Say what happened. Thanks!

examples

0
source
            
init_iwpriv() {
echo iwpriv: Plugin loaded
}
newif_iwpriv() {
IWPRIV_CMDS="true"
IWPRIV_CMDS="true"
}
iwpriv_option(){
IWPRIV_CMDS="$IWPRIV_CMDS ; iwpriv $IFNAME $*"
}
do_iwpriv() {
case "$IFTYPE" in
athvap) ;;
0
source
            
brctl delif $BRIDGE $IFNAME
brctl delif $BRIDGE $IFNAME
ifconfig $IFNAME down
}
start() {
iwpriv $IFNAME bgscan 0
iwpriv $IFNAME bgscan 0
iwpriv $IFNAME mode 11ng
iwpriv $IFNAME countryie 1
iwpriv $IFNAME doth 0
iwpriv $IFNAME cwmmode 1
0
source
            
VOICE_AIFS=2
VOICE_TXOP=0
iwpriv ath0 cwmin $VIDEO_QUEUE 0 $VIDEO_CWMIN ;
iwpriv ath0 cwmin $VIDEO_QUEUE 1 $VIDEO_CWMIN ;
iwpriv ath0 cwmin $VIDEO_QUEUE 1 $VIDEO_CWMIN ;
iwpriv ath0 cwmax $VIDEO_QUEUE 0 $VIDEO_CWMAX ;
iwpriv ath0 cwmax $VIDEO_QUEUE 1 $VIDEO_CWMAX ;

description

Iwpriv is the companion tool to iwconfig(8). Iwpriv deals with parameters and setting specific to each driver (as opposed to iwconfig which deals with generic ones).

Without any argument, iwpriv list the available private commands available on each interface, and the parameters that they require. Using this information, the user may apply those interface specific commands on the specified interface.

In theory, the documentation of each device driver should indicate how to use those interface specific commands and their effect.

display

For each device which support private commands, iwpriv will display the list of private commands available.

This include the name of the private command, the number or arguments that may be set and their type, and the number or arguments that may be display and their type.

For example, you may have the following display :
eth0 Available private ioctl :
setqualthr (89F0) : set 1 byte & get 0
gethisto (89F7) : set 0 & get 16 int

This indicate that you may set the quality threshold and display an histogram of up to 16 values with the following commands :
iwpriv eth0 setqualthr 20
iwpriv eth0 gethisto

files

/proc/net/wireless

parameters

private-command [private-parameters]

Execute the specified private-command on the interface.
The command may optionally take or require arguments, and may display information. Therefore, the command line parameters may or may not be needed and should match the command expectations. The list of commands that iwpriv displays (when called without argument) should give you some hints about those parameters.
However you should refer to the device driver documentation for information on how to properly use the command and the effect.

private-command [I] [private-parameters]

Idem, except that I (an integer) is passed to the command as a Token Index. Only some command will use the Token Index (most will ignore it), and the driver documentation should tell you when it’s needed.

-a/--all

Execute and display all the private commands that don’t take any arguments (i.e. read only).


see also

iwconfig , iwlist , iwevent , iwspy , wireless.


author

Jean Tourrilhes - jt[:at:]hpl.hp[:dot:]com

How can this site be more helpful to YOU ?


give  feedback