aboutsummaryrefslogtreecommitdiffstats
path: root/hostapd/hostapd_cli.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2012-10-28 16:20:03 (GMT)
committerJouni Malinen <j@w1.fi>2012-10-28 16:20:03 (GMT)
commit9f36eac6e54e3a6c8378c89dcc7daee6a3a9d314 (patch)
tree9c785d8206a2918f8c6e19a65e283f790483ed09 /hostapd/hostapd_cli.c
parentbd3a3737672aaf6eb50dba2b8caa3941c8df42e9 (diff)
downloadhostap-9f36eac6e54e3a6c8378c89dcc7daee6a3a9d314.zip
hostap-9f36eac6e54e3a6c8378c89dcc7daee6a3a9d314.tar.gz
hostap-9f36eac6e54e3a6c8378c89dcc7daee6a3a9d314.tar.bz2
WPS: Remove old OOB NFC interface
The old WPS interface for using NFC has no known deployments and even the binary libraries referenced here are not easily available anymore. Since the new interface for using NFC with WPS covers the same functionality, remove the old implementation to clean up WPS implementation. Signed-hostap: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'hostapd/hostapd_cli.c')
-rw-r--r--hostapd/hostapd_cli.c18
1 files changed, 6 insertions, 12 deletions
diff --git a/hostapd/hostapd_cli.c b/hostapd/hostapd_cli.c
index aed981c..54e9b70 100644
--- a/hostapd/hostapd_cli.c
+++ b/hostapd/hostapd_cli.c
@@ -412,24 +412,18 @@ static int hostapd_cli_cmd_wps_oob(struct wpa_ctrl *ctrl, int argc,
char cmd[256];
int res;
- if (argc != 3 && argc != 4) {
- printf("Invalid WPS_OOB command: need three or four "
+ if (argc != 3) {
+ printf("Invalid WPS_OOB command: need three "
"arguments:\n"
- "- DEV_TYPE: use 'ufd' or 'nfc'\n"
+ "- DEV_TYPE: use 'ufd'\n"
"- PATH: path of OOB device like '/mnt'\n"
"- METHOD: OOB method 'pin-e' or 'pin-r', "
- "'cred'\n"
- "- DEV_NAME: (only for NFC) device name like "
- "'pn531'\n");
+ "'cred'\n");
return -1;
}
- if (argc == 3)
- res = os_snprintf(cmd, sizeof(cmd), "WPS_OOB %s %s %s",
- argv[0], argv[1], argv[2]);
- else
- res = os_snprintf(cmd, sizeof(cmd), "WPS_OOB %s %s %s %s",
- argv[0], argv[1], argv[2], argv[3]);
+ res = os_snprintf(cmd, sizeof(cmd), "WPS_OOB %s %s %s",
+ argv[0], argv[1], argv[2]);
if (res < 0 || (size_t) res >= sizeof(cmd) - 1) {
printf("Too long WPS_OOB command.\n");
return -1;