aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/examples
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2013-02-10 14:27:59 (GMT)
committerJouni Malinen <j@w1.fi>2013-02-10 14:27:59 (GMT)
commitcf78e2acc8e65a276dee14e90f424df56f5ddc6e (patch)
tree2b2c6cc7940828eae232e78446b77cfe61c2384b /wpa_supplicant/examples
parent84148604227886c5f787a4bd468e37c81d3a5456 (diff)
downloadhostap-cf78e2acc8e65a276dee14e90f424df56f5ddc6e.zip
hostap-cf78e2acc8e65a276dee14e90f424df56f5ddc6e.tar.gz
hostap-cf78e2acc8e65a276dee14e90f424df56f5ddc6e.tar.bz2
WPS: Clean up debug prints with nfcpy
Signed-hostap: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'wpa_supplicant/examples')
-rwxr-xr-xwpa_supplicant/examples/wps-nfc.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/wpa_supplicant/examples/wps-nfc.py b/wpa_supplicant/examples/wps-nfc.py
index 9830a22..f6c9e60 100755
--- a/wpa_supplicant/examples/wps-nfc.py
+++ b/wpa_supplicant/examples/wps-nfc.py
@@ -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)