
wps_utility 

NAME
			wps_utility - Ralink WPS utility.
			
SYNOPSIS
			wps_utility [options]

DESCRIPTION
			Ralink WiFi Simple Config.

[options]
			[init]				- Initialize WPS basic settings.
							  You have to execute this when bring up the wireless interface
							  (ie. it will be called when you are using ifconfig WL_IFNAME up).
								
			[PBC]				- Starting WPS-PBC mode.
			
			[PIN]				- Starting WPS-PIN mode.
							  The PIN code variable in nvram shoule named "wl0_enrollee_pin".
											
			[PIN-Enrollee-Random]		- Generate one random PINs and starting WPS-PIN mode with an external Registrar.
			
			[PIN-Enrollee-Manual]		- N/A
			
			[PIN-Enrollee-Router]		- Restore router's deafult PIN and starting WPS-PIN mode with an external Registrar.
		
			[WSC-STOP]			- Stop driver's WPS process.

			[update]			- Update all WPS informations.
							  1. This will update currently status in nvram value "wps_status":
							  value		0 	- Not use
									1	- Idle
									2	- WSC Process Fail
									3	- Start WSC Process
									4	- Received EAPOL-Start
									5	- Sending EAP-Req(ID)
									6	- Receive EAP-Rsp(ID)
									7	- Receive EAP-Req with wrong WSC SMI Vendor Id
									8	- Receive EAPReq with wrong WSC Vendor Type
									9	- Sending EAP-Req(WSC_START)
									10	- Send M1
									11	- Received M1
									12	- Send M2
									13	- Received M2
									14	- Received M2D
									15	- Send M3
									16	- Received M3
									17	- Send M4
									18	- Received M4
									19	- Send M5
									20	- Received M5
									21	- Send M6
									22	- Received M6
									23	- Send M7
									24	- Received M7
									25	- Send M8
									26	- Received M8
									27	- Processing EAP Response (ACK)
									28	- Processing EAP Request (Done)
									29	- Processing EAP Response (Done)
									30	- Sending EAP-Fail
									31	- WSC_ERROR_HASH_FAIL
									32	- WSC_ERROR_HMAC_FAIL
									33	- WSC_ERROR_DEV_PWD_AUTH_FAIL
									34	- Configured
									35	- Scanning AP
									36	- Send EAPOL-Start
									37	- Processing EAP Response (Done)
									38	- Waiting PIN Code
							
							2. All security variables in nvram will be updated when the status of wps_status is 34 :
									"wl0_sec_mode wl0_keylength wl0_txkey wl0_key1 wl0_key2 wl0_key3 wl0_key4 wl0_wpaenc wl0_pskkey"
											
NOTE
			1. Make sure WL_IFNAME be "ra0". (wps_utility.h :#define WL_IFNAME		"ra0")
			