Except for commands support for wireless extension, we also define some commands for us to set parameters to our driver. One can use the ¡°i wpri v¡±for this purpose.
3.4.1 Set authentication type
One can set the authentication to our driver by the following command:
iwpriv ethX set_auth <Auth Type>
0:Open System
1:Shared Key
Be aware that shared key authentication requires a WEP key.
3.4.2 Set preamble type
One can set the preamble type to our driver by the following command:
iwpriv ethX set_preamble <Preamble Type>
0:Long preamble
1:Short preamble
3.4.3 Get preamble type
One can get the preamble type of our driver by the following command:
iwpriv ethX get_preamble
3.4.4 Set MAC mode
Because the
iwpriv ethX set_mac_mode <MAC mode>
1:Mixed Mode
2:Pure G Mode
3:Pure B Mode
4:Pure A Mode
3.4.5 Get MAC mode
One can get the MAC mode of our driver by the following command
iwpriv ethX get_mac_mode
3.4.6 Connect to the given Access Point
One can associate with the given Access Point with a given Cell Number by the following command.
iwpriv ethX connect <Cell Number>
7