aboutsummaryrefslogtreecommitdiffstats
path: root/hostapd/wps-ap-nfc.py
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2013-03-16 19:47:10 (GMT)
committerJouni Malinen <j@w1.fi>2013-03-16 19:47:10 (GMT)
commitc3aa4da94dfe5458d6e63136bb593c8a85f9a269 (patch)
tree86cfd7ab03408c7afb3f5e79dc36ed32c177fd89 /hostapd/wps-ap-nfc.py
parent15cb4772d6c8353504c4dfdfc0c88bf1cf97fecc (diff)
downloadhostap-c3aa4da94dfe5458d6e63136bb593c8a85f9a269.zip
hostap-c3aa4da94dfe5458d6e63136bb593c8a85f9a269.tar.gz
hostap-c3aa4da94dfe5458d6e63136bb593c8a85f9a269.tar.bz2
Convert WPS NFC python scripts from using wpactrl to wpaspy
Signed-hostap: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'hostapd/wps-ap-nfc.py')
-rwxr-xr-xhostapd/wps-ap-nfc.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/hostapd/wps-ap-nfc.py b/hostapd/wps-ap-nfc.py
index 6ad0b43..61b5519 100755
--- a/hostapd/wps-ap-nfc.py
+++ b/hostapd/wps-ap-nfc.py
@@ -18,7 +18,7 @@ import nfc.handover
import logging
logging.basicConfig()
-import wpactrl
+import wpaspy
wpas_ctrl = '/var/run/hostapd'
@@ -37,10 +37,9 @@ def wpas_connect():
for ctrl in ifaces:
try:
- wpas = wpactrl.WPACtrl(ctrl)
+ wpas = wpaspy.Ctrl(ctrl)
return wpas
- except wpactrl.error, error:
- print "Error: ", error
+ except Exception, e:
pass
return None