From 79e2ffe2f56701d43dce0fc890c8c956336cf68f Mon Sep 17 00:00:00 2001 From: Samuel Ortiz Date: Fri, 5 Feb 2010 21:07:15 +0100 Subject: [PATCH] Fix start-scanning script Devices are no longer part of the manager properties, go through the technology list instead. --- test/start-scanning | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/test/start-scanning b/test/start-scanning index cf36477..b8e5229 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" -- 2.7.4