Jouni Malinen
|
7cbf51bbd8
|
WPS UFD: Remove oob_dev pointer from wps_context
This pointer and the especially the oob_dev->device_path does not remain
valid, so better not save it any longer than it is needed.
|
2009-02-26 22:07:55 +02:00 |
|
Jouni Malinen
|
1b39bad109
|
WPS UFD: Handle scandir() error and no matches results differently
Better make sure there are no memory leaks in case of 0 entries
found. In addition, the error string may be of use in the error case.
|
2009-02-26 22:06:11 +02:00 |
|
Jouni Malinen
|
e7f3c1f436
|
WPS UFD: Define macros for the UFD directory templates
This allows the UNIX vs. DOS path separators to be handled in the build.
|
2009-02-26 22:05:39 +02:00 |
|
Jouni Malinen
|
70e070461d
|
WPS UFD: Use private data structure for oob_device_data
This gets rid of global variable use and may be needed to allow
concurrent access in some case if the interface is extended.
|
2009-02-26 22:04:49 +02:00 |
|
Jouni Malinen
|
a79e73a1b1
|
WPS UFD: Use mkdir() instead of system("mkdir ..")
|
2009-02-26 22:00:29 +02:00 |
|
Masashi Honma
|
46bdb83acd
|
WPS: Add UFD support (USBA out-of-band mechanism)
This patch is only for the following use case:
- Enrollee = wpa_supplicant
- Registrar = hostapd internal Registrar
Following UFD methods can be used:
- Enrollee PIN with UFD
- Registrar PIN with UFD
- unencrypted credential with UFD
Encrypted credentials are not supported.
Enrollee side operation:
wpa_cli -i ath0 wps_oob <device type> <mount point> <oob method>
oob method = pin-e/pin-r/cred
wpa_cli -i ath0 wps_oob ufd /mnt/ pin-r
Registrar side operation:
./hostapd_cli -i ath0 wps_oob <device type> <mount point> <oob method>
oob method = pin-e/pin-r/cred
hostapd_cli -i ath0 wps_oob ufd /mnt/ cred
|
2009-02-26 21:57:38 +02:00 |
|