diff options
author | Samuel Ortiz <sameo@linux.intel.com> | 2010-02-05 21:07:15 +0100 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2010-02-05 12:11:01 -0800 |
commit | 79e2ffe2f56701d43dce0fc890c8c956336cf68f (patch) | |
tree | 83655f89dd63ae1b623bf6c18190825c62f0ed08 /test | |
parent | f48b6dd4bd56ad6dd307a507074663445ea61a41 (diff) | |
download | connman-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-x | test/start-scanning | 17 |
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" |