WPS: Change listen time to match nfcpy default (250 ms)
Signed-hostap: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
b8dbc5d689
commit
bd692a8b0e
2 changed files with 2 additions and 2 deletions
|
@ -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"):
|
||||
|
|
|
@ -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"):
|
||||
|
|
Loading…
Reference in a new issue