]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
WPS: Change listen time to match nfcpy default (250 ms)
authorJouni Malinen <j@w1.fi>
Sun, 10 Feb 2013 16:49:20 +0000 (18:49 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 10 Feb 2013 16:49:20 +0000 (18:49 +0200)
Signed-hostap: Jouni Malinen <j@w1.fi>

hostapd/wps-ap-nfc.py
wpa_supplicant/examples/wps-nfc.py

index 7f81a34a39c6348805f8be76b08e7565e2f7879c..61fa677b6719ae53ddc0d27c7a1ab43744882b11 100755 (executable)
@@ -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"):
index 1ab59c3a39d972140a566978f071659a1b12dec3..c328a90f8150f8d10b51de6b5a6636aefbda33b8 100755 (executable)
@@ -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"):