WPS: Change listen time to match nfcpy default (250 ms)

Signed-hostap: Jouni Malinen <j@w1.fi>
This commit is contained in:
Jouni Malinen 2013-02-10 18:49:20 +02:00
parent b8dbc5d689
commit bd692a8b0e
2 changed files with 2 additions and 2 deletions

View File

@ -204,7 +204,7 @@ def find_peer(clf):
if nfc.llcp.connected(): if nfc.llcp.connected():
print "LLCP connected" print "LLCP connected"
general_bytes = nfc.llcp.startup({}) 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): if isinstance(peer, nfc.DEP):
print "listen -> DEP"; print "listen -> DEP";
if peer.general_bytes.startswith("Ffm"): if peer.general_bytes.startswith("Ffm"):

View File

@ -165,7 +165,7 @@ def find_peer(clf):
if nfc.llcp.connected(): if nfc.llcp.connected():
print "LLCP connected" print "LLCP connected"
general_bytes = nfc.llcp.startup({}) 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): if isinstance(peer, nfc.DEP):
print "listen -> DEP"; print "listen -> DEP";
if peer.general_bytes.startswith("Ffm"): if peer.general_bytes.startswith("Ffm"):