WPS: Add support for NCF password token from AP
authorJouni Malinen <j@w1.fi>
Thu, 28 Jun 2012 16:43:29 +0000 (19:43 +0300)
committerJouni Malinen <j@w1.fi>
Thu, 28 Jun 2012 16:43:29 +0000 (19:43 +0300)
commitffdaa05a6b1b59c4b2e50f9b7fef82769fc2d3fe
tree6929645e340769e4acfd2b56fd165abc75ce1ccb
parente484e927a6754557599d07b84944a748e77ef85c
WPS: Add support for NCF password token from AP

The new hostapd ctrl_iface command WPS_NFC_TOKEN can now be used to
manage AP-as-Enrollee operations with NFC password token. WPS/NDEF
parameters to this command can be used to generate a new NFC password
token. enable/disable parameters can be used to enable/disable use of
NFC password token (instead of AP PIN) for external Registrars.

A preconfigured NFS password token can be used by providing its
parameters with new hostapd.conf fields wps_nfc_dev_pw_id,
wps_nfc_dh_pubkey, wps_nfc_dh_privkey, and wps_nfc_dev_pw. This use
will also depend on WPS_NFC_TOKEN enable/disable commands, i.e., the
configured NFS password token is disabled by default.

Signed-hostap: Jouni Malinen <j@w1.fi>
hostapd/config_file.c
hostapd/ctrl_iface.c
hostapd/hostapd_cli.c
src/ap/ap_config.c
src/ap/ap_config.h
src/ap/wps_hostapd.c
src/ap/wps_hostapd.h
src/wps/wps.c
src/wps/wps.h
src/wps/wps_attr_build.c