WPS: Clear sent_carrier to avoid errors in python script
authorJouni Malinen <jouni@qca.qualcomm.com>
Sun, 24 Feb 2013 11:12:32 +0000 (13:12 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 24 Feb 2013 11:12:32 +0000 (13:12 +0200)
This is needed to avoid errors when reporting the result of an NFC
connection handover that failed.

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>

hostapd/wps-ap-nfc.py

index 32a0214..6ad0b43 100755 (executable)
@@ -120,6 +120,7 @@ def wps_handover_resp(peer):
     print "Trying to handle WPS handover"
 
     srv = HandoverServer()
+    srv.sent_carrier = None
 
     nfc.llcp.activate(peer);