From: Jouni Malinen Date: Sun, 10 Feb 2013 16:49:20 +0000 (+0200) Subject: WPS: Change listen time to match nfcpy default (250 ms) X-Git-Tag: aosp-kk-from-upstream~569 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bd692a8b0e087e0985f5da227fc6159ebbaa4d75;p=thirdparty%2Fhostap.git WPS: Change listen time to match nfcpy default (250 ms) Signed-hostap: Jouni Malinen --- 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"):