WPS: Clean up debug prints with nfcpy
Signed-hostap: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
8414860422
commit
cf78e2acc8
1 changed files with 8 additions and 1 deletions
|
@ -75,7 +75,8 @@ def wps_handover_init(peer):
|
|||
return
|
||||
print "Handover request from wpa_supplicant: " + data.encode("hex")
|
||||
message = nfc.ndef.Message(data)
|
||||
print "Parsed handover request: " + message.pretty()
|
||||
print "Parsed handover request:"
|
||||
print message.pretty()
|
||||
|
||||
nfc.llcp.activate(peer);
|
||||
|
||||
|
@ -97,6 +98,12 @@ def wps_handover_init(peer):
|
|||
|
||||
print "Receiving handover response"
|
||||
message = client._recv()
|
||||
if message is None:
|
||||
print "No response received"
|
||||
nfc.llcp.shutdown()
|
||||
client.close()
|
||||
return
|
||||
|
||||
print "Handover select received"
|
||||
print message.pretty()
|
||||
wpas_put_handover_sel(message)
|
||||
|
|
Loading…
Reference in a new issue