[PATCH] WPS-NFC implementaion (proposal)
Masashi Honma
honma
Fri Mar 6 00:59:43 PST 2009
Hello Jouni.
This is WPS-NFC implementaion (proposal) for
"Mon, 2 Mar 2009 19:57:00 +0000" snapshot.
<explanation>
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:
# ./wpa_cli -i ath0 wps_oob nfc /dev/ttyUSB0 pin-r pn531
Registrar side operation:
# ./hostapd_cli -i ath0 wps_oob nfc /dev/ttyUSB0 pin-r pn531
Example configuration.
CONFIG_WPS=y
CONFIG_WPS_OOB=y
CONFIG_WPS_NFC=y
CONFIG_WPS_NFC_PN531=y
<outer library>
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
If you like, please use this patch.
Please feel free to ask me.
Regards,
Masashi Honma.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: files.tar.gz
Type: application/x-gzip
Size: 5391 bytes
Desc: not available
Url : http://lists.shmoo.com/pipermail/hostap/attachments/20090306/e05d4ada/attachment.bin
More information about the Hostap
mailing list