
(i)
[AP]
Start PIN on the Enrollee WPS AP.
(ii)
[RT5370 Linux WPS STA]
iwpriv ra0 wsc_conf_mode 2
;; Registrar
iwpriv ra0 wsc_mode 1
;; PIN
iwpriv ra0 wsc_pin xxxxxxxx
;; AP's PIN Code
iwpriv ra0 wsc_ssid "AP's SSID"
iwpriv ra0 wsc_start
(iii)
If the registration is successful;
in case 'a':
The Registrar will be re-configured with the new parameters, and will connect to the AP
with these new parameters;
in case 'b':
The Registrar will be re-configured with AP's configurations, and will connect to the AP
with these new parameters.
5.2.2.2
PBC mode
Running Scenarios (case 'a' and 'b')
a.
Configure the un-configured AP
[Unconfigured AP]<----EAP--->[Registrar]
b.
Configure the configured AP
Configured AP]<----EAP--->[Registrar]
(i)
[AP]
Start PBC on the Enrollee WPS AP.
(ii)
[RT5370 Linux WPS STA]
iwpriv ra0 wsc_conf_mode 2
;; Registrar
iwpriv ra0 wsc_mode 2
;; PBC
iwpriv ra0 wsc_start
(iii)
If the registration is successful;
in case 'a':
The Registrar will be re-configured with the new parameters, and will connect to the AP
with these new parameters;
in case 'b':
The Registrar will be re-configured with AP's configurations, and will connect to the AP
with these new parameters.
5.3
WPS IOCTL use
This section describes specific parameters and arguments. Please refer to the previous section for more general
data.
5.3.1
iwpriv commands without argument
1.
iwpriv ra0 wsc_start
2.
iwpriv ra0 wsc_stop
3.
iwpriv ra0 wsc_gen_pincode
31/75