aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/examples
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 /wpa_supplicant/examples
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 'wpa_supplicant/examples')
-rwxr-xr-xwpa_supplicant/examples/wps-nfc.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/wpa_supplicant/examples/wps-nfc.py b/wpa_supplicant/examples/wps-nfc.py
index 9a6da5f..86473cd 100755
--- a/wpa_supplicant/examples/wps-nfc.py
+++ b/wpa_supplicant/examples/wps-nfc.py
@@ -20,7 +20,7 @@ import nfc.handover
import logging
logging.basicConfig()
-import wpactrl
+import wpaspy
wpas_ctrl = '/var/run/wpa_supplicant'
@@ -39,10 +39,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