iwpriv ================= This is detailed explanation of each parameters for iwpriv. Before reading this document, make sure you already read README. ------------------------------------------------------------------------------------------------------- USAGE_1: iwpriv rausb0 set [parameters]=[val] NOTE: Execute one iwpriv/set command simultaneously. DESCRIPTION [parameters] [val] range explaination ----------------- ----------------------- --------------------------------------------- CountryRegion {0~7} Set country region 0: use 1 ~ 11 Channel 1: use 1 ~ 13 Channel 2: use 10, 11 Channel 3: use 10 ~ 13 Channel 4: use 14 Channel 5: use 1 ~ 14 Channel 6: use 3 ~ 9 Channel Set country region for A band CountryRegionForABand {0~7} 0: use 36, 40, 44, 48, 52, 56, 60, 64, 149, 153, 157, 161, 165 1: use 36, 40, 44, 48, 52, 56, 60, 64, 100, 104, 108, 112, 116, 120, 124, 128, 132, 136, 140 2: use 36, 40, 44, 48, 52, 56, 60, 64 3: use 52, 56, 60, 64, 149, 153, 157, 161 4: use 149, 153, 157, 161, 165 5: use 149, 153, 157, 161 6: use 36, 40, 44, 48 7: use 36, 40, 44, 48, 52, 56, 60, 64, 100, 104, 108, 112, 116, 120, 124, 128, 132, 136, 140, 149, 153, 157, 161, 165 SSID {0~z, 1~32 ascii characters.} Set SoftAP SSID WirelessMode {0~4} Set Wireless Mode 0:11b/g mixed, 1:11B only, 2:11A only 3:11a/b/g mixed, 4:11G only TxRate {0~12} Set TxRate 0:Auto, 1:1Mbps, 2:2Mbps, 3:5.5Mbps, 4:11Mbps, 5:6Mbps, 6:9Mbps, 7:12Mbps, 8:18Mbps, 9:24Mbps, 10:36Mbps, 11:48Mbps, 12:54Mbps Channel {1~14} depends on country region Set Channel BGProtection {0~2} Set 11B/11G Protection 0:Auto, 1:Always on, 2:Always off TxPreamble {0~2} Set TxPreamble 0:Preamble Long, 1:Preamble Short, 2:Auto RTSThreshold {1~2347} Set RTS Threshold FragThreshold {256~2346} Set Fragment Threshold TxBurst {0,1} Set TxBurst Enable or Disable 0:Disable, 1:Enable NetworkType {Infra,Adhoc} Set Network type AdhocOfdm {0~2} Set Adhoc Wireless Mode 0: Adhere WIFI spec, the Tx MAX rate will be 11Mbps in Adhoc mode 1: Violate WIFI spec, the Tx MAX rate will be 54Mbps in Adhoc mode(b/g mixed) 2: Violate WIFI spec, the Tx MAX rate will be 54Mbps in Adhoc mode(11g only) AuthMode {OPEN,SHARED,WEPAUTO,WPAPSK, Set Authentication Mode WPA2PSK,WPANONE} EncrypType {NONE,WEP,TKIP,AES} Set Encryption Type DefaultKeyID {1~4} Set Default Key ID Key1 {5 ascii characters or Set Key1 String 10 hex number or 13 ascii characters or 26 hex numbers} Key2 {5 ascii characters or Set Key2 String 10 hex number or 13 ascii characters or 26 hex numbers} Key3 {5 ascii characters or Set Key3 String 10 hex number or 13 ascii characters or 26 hex numbers} Key4 {5 ascii characters or Set Key4 String 10 hex number or 13 ascii characters or 26 hex numbers} WPAPSK {8~63 ASCII or 64 HEX characters} WPA Pre-Shared Key PktAggregate {0,1} Set TX Aggregation 0:Disable, 1: Enable when the peer supports it TurboRate {0,1} Set TurboRate 0:Disable, 1:Enable 72/100 Mbps whenever applicable WmmCapable {0,1} Set WMM Capable 0:Disable WMM, 1:Enable WMM PSMode {CAM, MAX_PSP, FAST_PSP} Set Power Saving Mode IEEE80211H {0,1} Spectrum management ------------------------------------------------------------------------------------------------------- USAGE_2: iwpriv rausb0 [parameters] [val] DESCRIPTION [parameters] [val] range explaination ----------------- ----------------------- --------------------------------------------- auth {1~5} 1:OPEN Authentication Mode 2:SHARED 3:WPAPSK 4:WPA2PSK 5:WPANONE enc {1~4} 1:NONE Encryption Type 2:WEP 3:TKIP 4:AES wpapsk {8~64 chars} WPAPSK/WPA2PSK Password psm {0~2} 0:constantly awake mode (CAM) Power Saving Mode 1:MAX_PSP 2:FAST_PSP ------------------------------------------------------------------------------------------------------- Examples ================= ------------------------------------------------------------------------------------------------------- Example I: Config STA to link with AP which is OPEN/NONE(Authentication/Encryption) 1. iwpriv rausb0 set NetworkType=Infra 2. iwpriv rausb0 set AuthMode=OPEN 3. iwpriv rausb0 set EncrypType=NONE 4. iwpriv rausb0 set SSID="AP's SSID" Example II: Config STA to link with AP which is SHARED/WEP(Authentication/Encryption). 1. iwpriv rausb0 set NetworkType=Infra 2. iwpriv rausb0 set AuthMode=SHARED 3. iwpriv rausb0 set EncrypType=WEP 4. iwpriv rausb0 set Key1="AP's wep key" 5. iwpriv rausb0 set DefaultKeyID=1 6. iwpriv rausb0 set SSID="AP's SSID" Example III: Config STA to link with AP which is WPAPSK/TKIP(Authentication/Encryption) 1. iwpriv rausb0 set NetworkType=Infra 2. iwpriv rausb0 set AuthMode=WPAPSK 3. iwpriv rausb0 set EncrypType=TKIP 4. iwpriv rausb0 set SSID="AP's SSID" 5. iwpriv rausb0 set WPAPSK="12345678" 6. iwpriv rausb0 set SSID="AP's SSID" p.s Step 4 is part of generating wpapsk password and is necessary. Example IV: Config STA to link with AP which is WPAPSK/AES(Authentication/Encryption) 1. iwconfig rausb0 mode managed 2. iwpriv rausb0 auth 3 3. iwpriv rausb0 enc 4 4. iwconfig rausb0 essid "AP's SSID" 5. iwpriv rausb0 wpapsk 12345678 6. iwconfig rausb0 essid "AP's SSID" Example V: Config STA to link with AP which is WPA2PSK/TKIP(Authentication/Encryption) 1. iwpriv rausb0 set NetworkType=Infra 2. iwpriv rausb0 set AuthMode=WPA2PSK 3. iwpriv rausb0 set EncrypType=TKIP 4. iwpriv rausb0 set SSID="AP's SSID" 5. iwpriv rausb0 set WPAPSK="12345678" 6. iwpriv rausb0 set SSID="AP's SSID" Example VI: Config STA to create/link as adhoc mode 1. iwpriv rausb0 set NetworkType=Adhoc 2. iwpriv rausb0 set AuthMode=OPEN 3. iwpriv rausb0 set EncrypType=NONE 4. iwpriv rausb0 set SSID="Adhoc's SSID" Example VII. Get site survey iwpriv rausb0 get_site_survey Example VIII. Get Statistics iwpriv rausb0 stat ; read statistic counter iwpriv rausb0 set ResetCounter=0 ; reset statistic counter =================================================================== iwlist ================= This is detailed explanation of each parameters for iwlist. ------------------------------------------------------------------------------------------------------- iwlist rausb0 scanning ; list the results after scanning(site survey) ======================================================================================================= iwconfig ================= The following are our support in standard configuration - iwconfig ------------------------------------------------------------------------------------------------------- iwconfig rausb0 essid {NN|on|off} ; set ssid iwconfig rausb0 mode {managed|ad-hoc|...} ; set wireless mode iwconfig rausb0 freq N.NNNN[k|M|G]] ; set frequency iwconfig rausb0 channel N ; set channel iwconfig rausb0 ap {N|off|auto} ; set ap address iwconfig rausb0 nick N ; set nickname iwconfig rausb0 rate {N|auto|fixed} ; set rate iwconfig rausb0 rts {N|auto|fixed|off} ; set rts threshold iwconfig rausb0 frag {N|auto|fixed|off} ; set fragment threshold iwconfig rausb0 enc {NNNN-NNNN|off} ; set encryption type iwconfig rausb0 power {period N|timeout N} ; set power management modes *** Please refer to man page of 'iwconfig', 'iwlist' and 'iwpriv'. ***