setrate script
==============

Description:
	Set fixed transmit rates (MCS) on NDIS driver (ar5416.sys).

Usage:
	setrate rateseq shortGI
	
	where 
	    rateseq is a string of 4 hex characters 
                    corresponding to each of 4 h/w retry rates
		    (mcs0 = 0, mcs1=1, ...., mcs9=9, mcs10=a, ..., mcs15=f)
	    shortGI (0 - disable, 1 - enable)

	If setrate is run with no parameters, the driver will be reconfigured to use automatic rate control.
	

Example:

	To set an mcs13 (=d) rate and short GI enabled:

	% Setrate dddd 1

	To set an mcs9 (=9) rate and short GI disabled:

	% Setrate 9999 0


Internal:
	The setrate script modifies the following registry keys:

	TransmitRate11ng
	rateCtrlEnable
	shortGI

Notes:
- Short GI must be disabled for HT20.
- Script works on Atheros adapters only (Atheros word in the name of adapter. To change, modify the search pattern in the script. It is on the first line. Or modify script to use DeviceID instead of DeviceName).
- WlanMon should be installed on the machine where this is to be run (or copy and register WlanMonHelper.dll on the target machine)