summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorSamuel Ortiz <sameo@linux.intel.com>2010-02-05 21:07:15 +0100
committerMarcel Holtmann <marcel@holtmann.org>2010-02-05 12:11:01 -0800
commit79e2ffe2f56701d43dce0fc890c8c956336cf68f (patch)
tree83655f89dd63ae1b623bf6c18190825c62f0ed08 /test
parentf48b6dd4bd56ad6dd307a507074663445ea61a41 (diff)
downloadconnman-79e2ffe2f56701d43dce0fc890c8c956336cf68f.tar.gz
connman-79e2ffe2f56701d43dce0fc890c8c956336cf68f.tar.bz2
connman-79e2ffe2f56701d43dce0fc890c8c956336cf68f.zip
Fix start-scanning script
Devices are no longer part of the manager properties, go through the technology list instead.
Diffstat (limited to 'test')
-rwxr-xr-xtest/start-scanning17
1 files changed, 11 insertions, 6 deletions
diff --git a/test/start-scanning b/test/start-scanning
index cf36477d..b8e52294 100755
--- a/test/start-scanning
+++ b/test/start-scanning
@@ -9,17 +9,22 @@ manager = dbus.Interface(bus.get_object('org.moblin.connman', "/"),
properties = manager.GetProperties()
-for path in properties["Devices"]:
- device = dbus.Interface(bus.get_object('org.moblin.connman', path),
- 'org.moblin.connman.Device')
-
- properties = device.GetProperties()
+for path in properties["Technologies"]:
+ technology = dbus.Interface(bus.get_object('org.moblin.connman', path),
+ 'org.moblin.connman.Technology')
+ properties = technology.GetProperties()
print "[ %s ]" % (path)
if properties["Type"] in ["wifi", "wimax"]:
+
print " Started scanning"
- device.ProposeScan()
+
+ for path in properties["Devices"]:
+ device = dbus.Interface(bus.get_object('org.moblin.connman', path),
+ 'org.moblin.connman.Device')
+
+ device.ProposeScan()
else:
print " No scanning"