From bd692a8b0e087e0985f5da227fc6159ebbaa4d75 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Sun, 10 Feb 2013 18:49:20 +0200 Subject: [PATCH] WPS: Change listen time to match nfcpy default (250 ms) Signed-hostap: Jouni Malinen --- hostapd/wps-ap-nfc.py | 2 +- wpa_supplicant/examples/wps-nfc.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hostapd/wps-ap-nfc.py b/hostapd/wps-ap-nfc.py index 7f81a34a3..61fa677b6 100755 --- a/hostapd/wps-ap-nfc.py +++ b/hostapd/wps-ap-nfc.py @@ -204,7 +204,7 @@ def find_peer(clf): if nfc.llcp.connected(): print "LLCP connected" general_bytes = nfc.llcp.startup({}) - peer = clf.listen(ord(os.urandom(1)) + 200, general_bytes) + peer = clf.listen(ord(os.urandom(1)) + 250, general_bytes) if isinstance(peer, nfc.DEP): print "listen -> DEP"; if peer.general_bytes.startswith("Ffm"): diff --git a/wpa_supplicant/examples/wps-nfc.py b/wpa_supplicant/examples/wps-nfc.py index 1ab59c3a3..c328a90f8 100755 --- a/wpa_supplicant/examples/wps-nfc.py +++ b/wpa_supplicant/examples/wps-nfc.py @@ -165,7 +165,7 @@ def find_peer(clf): if nfc.llcp.connected(): print "LLCP connected" general_bytes = nfc.llcp.startup({}) - peer = clf.listen(ord(os.urandom(1)) + 200, general_bytes) + peer = clf.listen(ord(os.urandom(1)) + 250, general_bytes) if isinstance(peer, nfc.DEP): print "listen -> DEP"; if peer.general_bytes.startswith("Ffm"):