summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Stewart <pstew@google.com>2015-12-04 11:51:23 -0800
committerGerrit Code Review <noreply-gerritcodereview@google.com>2015-12-08 20:59:00 +0000
commit84f2591b9e12028fbf3d928770b88edf32dfaa63 (patch)
tree1c7c90cfece35bb85ef288869969e6fec5932bfc
parentbd33dbbc4cfa44c3dfb5e7d648a752a8e6f1a600 (diff)
downloadshill-84f2591b9e12028fbf3d928770b88edf32dfaa63.tar.gz
shill: test-scripts: Fix up device properties
Fix dbus types used in the set-device-property script. Bug:None Change-Id: Ic79f07b4fc20d6213a8e436c4a187516a92c6305 Test:Run "set-device-property wlan0 BgscanShortInterval 30"
-rw-r--r--test-scripts/set-device-property6
1 files changed, 3 insertions, 3 deletions
diff --git a/test-scripts/set-device-property b/test-scripts/set-device-property
index 204ea6e1..b5b2d438 100644
--- a/test-scripts/set-device-property
+++ b/test-scripts/set-device-property
@@ -10,10 +10,10 @@ if (len(sys.argv) < 4):
flim = flimflam.FlimFlam()
device = flim.FindElementByNameSubstring('Device', name)
-if property_key in ["BgscanShortInterval", "ScanInterval" ]:
- device.SetProperty(property_key, dbus.Int16(value))
+if property_key in ["BgscanShortInterval", "RoamThreshold", "ScanInterval" ]:
+ device.SetProperty(property_key, dbus.UInt16(value))
elif property_key in [ "BgscanSignalThreshold", ]:
- device.SetProperty(property_key, int(value))
+ device.SetProperty(property_key, dbus.Int32(value))
elif property_key in ["Cellular.AllowRoaming", "Powered"]:
device.SetProperty(property_key,
dbus.Boolean(value.lower() in ("true", "1")))