diff options
author | Denis Robert <denis.robert@intel.com> | 2009-12-17 18:04:57 +0100 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2009-12-17 13:09:31 -0800 |
commit | dd5d17254c591389720132d9d9c917bee8d6777c (patch) | |
tree | 2a0cc9bf36cbc70e512989f72d2102779060b3c1 /test | |
parent | f5e8cff88d3a2b2a0003405253f07b4b6d471fc1 (diff) | |
download | connman-dd5d17254c591389720132d9d9c917bee8d6777c.tar.gz connman-dd5d17254c591389720132d9d9c917bee8d6777c.tar.bz2 connman-dd5d17254c591389720132d9d9c917bee8d6777c.zip |
Add command to test script for settting scan interval
This allows to put scan interval to zero and disable background scanning.
Diffstat (limited to 'test')
-rwxr-xr-x | test/test-connman | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/test-connman b/test/test-connman index c5da877c..53e3ed98 100755 --- a/test/test-connman +++ b/test/test-connman @@ -27,6 +27,7 @@ if len(sys.argv) < 2: print "" print " dev <interface>" print " dev <interface> scan" + print " dev <interface> scan_interval <period>" print " dev <interface> networks" print " dev <interface> connect <network>" print " dev <interface> disconnect [network]" @@ -367,6 +368,11 @@ elif sys.argv[1] == "dev": device.ProposeScan() else: print "No scanning for device %s" % (interface) + + elif command == "scan_interval" and value != "": + device.SetProperty("ScanInterval", dbus.UInt16(value)) + break + elif command in ["networks", "net"]: if "Networks" in properties.keys(): print_networks(properties["Networks"]) @@ -397,6 +403,7 @@ elif sys.argv[1] == "dev": else: powered = dbus.Boolean(value) device.SetProperty("Powered", powered) + break elif command == "powered": interface = properties["Interface"] if properties["Powered"] == dbus.Boolean(1): |