summaryrefslogtreecommitdiff
path: root/test/test-supplicant
diff options
context:
space:
mode:
authorZhang zhengguang <zhengguang.zhang@intel.com>2014-07-17 02:37:39 (GMT)
committerZhang zhengguang <zhengguang.zhang@intel.com>2014-07-17 02:37:39 (GMT)
commit1b9d0a62f59bb48c8deb2f0b98d9acdffdd9abe7 (patch)
tree6e991827d28537f7f40f20786c2354fd04a9fdad /test/test-supplicant
parentfbe905ab58ecc31fe64c410c5f580cadc30e7f04 (diff)
downloadconnman-1b9d0a62f59bb48c8deb2f0b98d9acdffdd9abe7.zip
connman-1b9d0a62f59bb48c8deb2f0b98d9acdffdd9abe7.tar.gz
connman-1b9d0a62f59bb48c8deb2f0b98d9acdffdd9abe7.tar.bz2
Imported Upstream version 1.24upstream/1.24
Diffstat (limited to 'test/test-supplicant')
-rwxr-xr-xtest/test-supplicant71
1 files changed, 0 insertions, 71 deletions
diff --git a/test/test-supplicant b/test/test-supplicant
deleted file mode 100755
index 68ac663..0000000
--- a/test/test-supplicant
+++ /dev/null
@@ -1,71 +0,0 @@
-#!/usr/bin/python
-
-import dbus
-import time
-
-WPA_NAME='fi.epitest.hostap.WPASupplicant'
-WPA_INTF='fi.epitest.hostap.WPASupplicant'
-WPA_PATH='/fi/epitest/hostap/WPASupplicant'
-
-bus = dbus.SystemBus()
-
-dummy = dbus.Interface(bus.get_object(WPA_NAME, WPA_PATH),
- 'org.freedesktop.DBus.Introspectable')
-
-#print dummy.Introspect()
-
-manager = dbus.Interface(bus.get_object(WPA_NAME, WPA_PATH), WPA_INTF)
-
-try:
- path = manager.getInterface("wlan0")
-except:
- path = manager.addInterface("wlan0")
-
-interface = dbus.Interface(bus.get_object(WPA_NAME, path),
- WPA_INTF + ".Interface")
-
-print "state = %s" % (interface.state())
-
-try:
- print "scanning = %s" % (interface.scanning())
-except:
- pass
-
-print "[ %s ]" % (path)
-
-capabilities = interface.capabilities()
-
-for key in capabilities.keys():
- list = ""
- for value in capabilities[key]:
- list += " " + value
- print " %s =%s" % (key, list)
-
-interface.scan()
-
-time.sleep(1)
-
-try:
- print "scanning = %s" % (interface.scanning())
-except:
- pass
-
-time.sleep(1)
-
-print "state = %s" % (interface.state())
-
-results = interface.scanResults()
-
-print results
-
-path = results[0]
-
-print "[ %s ]" % (path)
-
-bssid = dbus.Interface(bus.get_object(WPA_NAME, path),
- WPA_INTF + ".BSSID")
-
-properties = bssid.properties()
-
-for key in properties.keys():
- print " %s = %s" % (key, properties[key])