hostap/src/wps
Masashi Honma e1ee6b600b WPS: Add support for NFC out-of-band mechanism
The new file wps_nfc.c and ndef.c implements NFC device independent
operation, wps_nfc_pn531.c implements NFC device dependent operation.

This patch is only for the following use case:
- Enrollee = wpa_supplicant
- Registrar = hostapd internal Registrar

Following NFC methods can be used:
- Enrollee PIN with NFC
- Registrar PIN with NFC
- unencrypted credential with NFC

Encrypted credentials are not supported.

Enrollee side operation:

Registrar side operation:

Example configuration.
CONFIG_WPS=y
CONFIG_WPS_NFC=y
CONFIG_WPS_NFC_PN531=y

I used NFC device "NXP PN531". The NFC device access method is
confidential, so I used outer library. Please download below files from
https://www.saice-wpsnfc.bz/index.php

[WPS NFC Library]
WpsNfcLibrary/WpsNfc.h
WpsNfcLibrary/WpsNfcType.h
WpsNfcLibrary/WpsNfcVersion.h
WpsNfcLibrary/linux/libnfc_mapping_pn53x.dll
WpsNfcLibrary/linux/wpsnfc.dll

[NFC Reader/Writer Kernel Driver]
NFCKernelDriver-1.0.3/linux/kobj/sonyrw.ko

<WiFi test>
The hostapd/wpa_supplicant with this patch passed below tests on
"Wi-Fi WPS Test Plan Version 1.6".
4.2.5 Add device using NFC Method with password token
(I used SONY STA instead of NXP STA.)

4.2.6 Add device using NFC Method with configuration token

5.1.9 Add to AP using NFC Method with password token
through internal registrar
(I used SONY AP instead of NXP AP.)

5.1.10 Add to AP using NFC Method with configuration token
through internal registrar
2009-03-06 16:16:22 +02:00
..
.gitignore Add a .gitignore for the new wps directory. 2008-11-23 19:40:37 +02:00
httpread.c WPS: Add support for external Registrars using UPnP transport 2009-01-29 18:47:02 +02:00
httpread.h WPS: Add support for external Registrars using UPnP transport 2009-01-29 18:47:02 +02:00
Makefile Improved 'make install' (use BINDIR/LIBDIR, install shared objects) 2009-02-15 14:22:50 +02:00
ndef.c WPS: Add support for NFC out-of-band mechanism 2009-03-06 16:16:22 +02:00
wps.c WPS: Add support for NFC out-of-band mechanism 2009-03-06 16:16:22 +02:00
wps.h WPS: Add support for NFC out-of-band mechanism 2009-03-06 16:16:22 +02:00
wps_attr_build.c WPS UFD: Build OOB functionality only if UFD is enabled 2009-02-26 22:10:21 +02:00
wps_attr_parse.c WPS: Add UFD support (USBA out-of-band mechanism) 2009-02-26 21:57:38 +02:00
wps_attr_process.c WPS: Add a workaround for incorrect passphrase encoding in Network Key 2009-01-24 12:50:00 +02:00
wps_common.c WPS: Add support for NFC out-of-band mechanism 2009-03-06 16:16:22 +02:00
wps_defs.h WPS: Add UFD support (USBA out-of-band mechanism) 2009-02-26 21:57:38 +02:00
wps_dev_attr.c WPS: As a workaround, pad zero-length device attributes 2008-12-25 21:19:46 +02:00
wps_dev_attr.h WPS: Moved RF Bands processing into wps_dev_attr.c 2008-11-29 12:59:43 +02:00
wps_enrollee.c WPS: Add support for NFC out-of-band mechanism 2009-03-06 16:16:22 +02:00
wps_i.h WPS: Add support for NFC out-of-band mechanism 2009-03-06 16:16:22 +02:00
wps_nfc.c WPS: Add support for NFC out-of-band mechanism 2009-03-06 16:16:22 +02:00
wps_nfc_pn531.c WPS: Add support for NFC out-of-band mechanism 2009-03-06 16:16:22 +02:00
wps_registrar.c WPS UFD: Build OOB functionality only if UFD is enabled 2009-02-26 22:10:21 +02:00
wps_ufd.c WPS: Add support for NFC out-of-band mechanism 2009-03-06 16:16:22 +02:00
wps_upnp.c Use os_strlcpy instead of os_strncpy when copying ifname 2009-02-08 13:26:33 +02:00
wps_upnp.h UPnP: Renamed PutWLANResponse callback function to match action 2009-02-06 21:44:19 +02:00
wps_upnp_event.c WPS UPnP: Added support for multiple external Registrars 2009-02-06 21:39:32 +02:00
wps_upnp_i.h WPS: Add support for external Registrars using UPnP transport 2009-01-29 18:47:02 +02:00
wps_upnp_ssdp.c UPnP: Minor coding style cleanup 2009-02-03 13:25:49 +02:00
wps_upnp_web.c UPnP: Renamed PutWLANResponse callback function to match action 2009-02-06 21:44:19 +02:00