summaryrefslogtreecommitdiff
path: root/test/test-supplicant
diff options
context:
space:
mode:
Diffstat (limited to 'test/test-supplicant')
-rwxr-xr-xtest/test-supplicant20
1 files changed, 16 insertions, 4 deletions
diff --git a/test/test-supplicant b/test/test-supplicant
index e79228dd..68ac6630 100755
--- a/test/test-supplicant
+++ b/test/test-supplicant
@@ -24,9 +24,12 @@ except:
interface = dbus.Interface(bus.get_object(WPA_NAME, path),
WPA_INTF + ".Interface")
-print interface.state()
+print "state = %s" % (interface.state())
-print interface.scan()
+try:
+ print "scanning = %s" % (interface.scanning())
+except:
+ pass
print "[ %s ]" % (path)
@@ -38,9 +41,18 @@ for key in capabilities.keys():
list += " " + value
print " %s =%s" % (key, list)
-time.sleep(2)
+interface.scan()
+
+time.sleep(1)
+
+try:
+ print "scanning = %s" % (interface.scanning())
+except:
+ pass
+
+time.sleep(1)
-print interface.state()
+print "state = %s" % (interface.state())
results = interface.scanResults()