iwpriv
=================
This driver supports "iwpriv" as an interface allowing you to set
wireless lan specific parameters.

Usage:
	iwpriv ra0 set [parameters]=[val]
	

where

[parameters]          [val] constraints                    explaination
-----------------   -----------------------              ---------------------------------------------
CountryRegion       {0~7}                                  Set country region 
                                                           0: use 1 ~ 11 Channel
                                                           1: use 1 ~ 11 Channel
                                                           2: use 1 ~ 13 Channel
                                                           3: use 10, 11 Channel
                                                           4: use 10 ~ 13 Channel
                                                           5: use 14 Channel
                                                           6: use 1 ~ 14 Channel
                                                           7: use 3 ~ 9 Channel
                                                           
SSID                {0~z, less than 32 characters}         Set SoftAP SSID

WirelessMode        {0,1}				   Set Wireless Mode 
                                                           0:11b/g mixed, 1:11B 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

BeaconPeriod	    {50~1024} ms                           Set beacon period

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

TurboRate           {0,1}                                  Set TurboRate Enable or Disable
                                                           0:Disable, 1:Enable
                                                           
NoForwarding        {0,1}                                  Set No Forwarding Enable or Disable                                                          
                                                           0:Disable, 1:Enable
                                                           
HideSSID            {0,1}                                  Set Hide SSID Enable or Disable                                                         
                                                           0:Disable, 1:Enable
                         	
ShortSlot           {0,1}                                  Set Short Slot Time Enable or Disable                                                         
                                                           0:Disable, 1:Enable
                                                           
AuthMode            {OPEN,SHARED,WPAPSK}                   Set Authentication mode

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}                                                                                                                        

AccessPolicy        {0~2}                                  Set Access ctrol policy
                                                           0:Disble, 1:Allow All, 2:Reject All
                                                           
AccessControlList   {"[mac address];[mac address];..."}    Set Access ctrol mac table list
                                                           Up to 32 mac address.

WPAPSK              {32 ascii characters or                Set WPA_PSK Key
                     64 hex numbers}                      
-------------------------------------------------------------------------------------------------------
For example: 

            iwpriv ra0 set CountryRegion=1
            iwpriv ra0 set SSID=SoftAp-1
            iwpriv ra0 set WirelessMode=0
            iwpriv ra0 set TxRate=0
            iwpriv ra0 set Channel=1
            iwpriv ra0 set BeaconPeriod=50
            iwpriv ra0 set BGProtection=1
            iwpriv ra0 set TxPreamble=0
            iwpriv ra0 set RTSThreshold=2347
            iwpriv ra0 set FragThreshold=2346
            iwpriv ra0 set TxBurst=0
            iwpriv ra0 set TurboRate=0
            iwpriv ra0 set NoForwarding=0
            iwpriv ra0 set HideSSID=0
            iwpriv ra0 set ShortSlot=0
            iwpriv ra0 set AuthMode=SHARED
            iwpriv ra0 set EncrypType=WEP
            iwpriv ra0 set DefaultKeyID=1
            iwpriv ra0 set Key1=1234567890
            iwpriv ra0 set Key2=passd
            iwpriv ra0 set Key3=12345678901234567890123456
            iwpriv ra0 set key4=enterpassword
            iwpriv ra0 set AccessPolicy=1
            iwpriv ra0 set AccessControlList="00:03:A0:10:0E:10;00:08:0c:FD:e1:00;1a:28:40:42:ce:6f"
            iwpriv ra0 set WPAPSK=915909AF16587E5BC089515F32FA1B7C7F2A1CC6AB7F092C078200DB0341C13D

Also, you could set more than one parameter at the same time. 
For example:

        iwpriv ra0 set SSID=SoftAp-1,Channel=8,TxAntenna=0,RxAntenna=0
