mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-01-18 02:44:03 -05:00
WPS: Clean up debug prints with nfcpy
Signed-hostap: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
8414860422
commit
cf78e2acc8
@ -75,7 +75,8 @@ def wps_handover_init(peer):
|
|||||||
return
|
return
|
||||||
print "Handover request from wpa_supplicant: " + data.encode("hex")
|
print "Handover request from wpa_supplicant: " + data.encode("hex")
|
||||||
message = nfc.ndef.Message(data)
|
message = nfc.ndef.Message(data)
|
||||||
print "Parsed handover request: " + message.pretty()
|
print "Parsed handover request:"
|
||||||
|
print message.pretty()
|
||||||
|
|
||||||
nfc.llcp.activate(peer);
|
nfc.llcp.activate(peer);
|
||||||
|
|
||||||
@ -97,6 +98,12 @@ def wps_handover_init(peer):
|
|||||||
|
|
||||||
print "Receiving handover response"
|
print "Receiving handover response"
|
||||||
message = client._recv()
|
message = client._recv()
|
||||||
|
if message is None:
|
||||||
|
print "No response received"
|
||||||
|
nfc.llcp.shutdown()
|
||||||
|
client.close()
|
||||||
|
return
|
||||||
|
|
||||||
print "Handover select received"
|
print "Handover select received"
|
||||||
print message.pretty()
|
print message.pretty()
|
||||||
wpas_put_handover_sel(message)
|
wpas_put_handover_sel(message)
|
||||||
|
Loading…
Reference in New Issue
Block a user