diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2008-08-11 08:35:36 +0200 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2008-08-11 08:35:36 +0200 |
commit | 9e1af1dead7a965277a7e8b0dea90a3de5b47411 (patch) | |
tree | 3ba6af1543b54995ca0853a096b00d8b2ed0b9a3 /test | |
parent | bfff79aeb857855ef025efa294028e34f91d91f0 (diff) | |
download | connman-9e1af1dead7a965277a7e8b0dea90a3de5b47411.tar.gz connman-9e1af1dead7a965277a7e8b0dea90a3de5b47411.tar.bz2 connman-9e1af1dead7a965277a7e8b0dea90a3de5b47411.zip |
Use Enabled property instead of Connected
Diffstat (limited to 'test')
-rwxr-xr-x | test/disable-network | 6 | ||||
-rwxr-xr-x | test/list-networks | 2 | ||||
-rwxr-xr-x | test/monitor-state | 2 | ||||
-rwxr-xr-x | test/select-network | 6 |
4 files changed, 8 insertions, 8 deletions
diff --git a/test/disable-network b/test/disable-network index 12da1e83..eede449b 100755 --- a/test/disable-network +++ b/test/disable-network @@ -18,8 +18,8 @@ for path in elements: if (properties["Type"] != "network"): continue - if (properties["Connected"] == dbus.Boolean(1)): - print "Disconnecting %s" % (path) - element.Disconnect() + if (properties["Enabled"] == dbus.Boolean(1)): + print "Disabling %s" % (path) + element.Disable() except: pass diff --git a/test/list-networks b/test/list-networks index d3fa34d9..c7998636 100755 --- a/test/list-networks +++ b/test/list-networks @@ -19,7 +19,7 @@ for path in elements: print "[ %s ]" % (path) if (properties["Type"] == "network"): - if (properties["Connected"] == 1): + if (properties["Enabled"] == 1): state = "*" else: state = " " diff --git a/test/monitor-state b/test/monitor-state index d17c0e5a..b4bd1de0 100755 --- a/test/monitor-state +++ b/test/monitor-state @@ -27,7 +27,7 @@ def element_added(path): def element_updated(path): properties = get_properties(path) - if (properties["Type"] == "network" and properties["Connected"] == 1): + if (properties["Type"] == "network" and properties["Enabled"] == 1): print "Associated with %s" % (properties["SSID"]) def element_removed(path): diff --git a/test/select-network b/test/select-network index 2d5b2b1e..afa287c5 100755 --- a/test/select-network +++ b/test/select-network @@ -22,9 +22,9 @@ for path in elements: if (properties["Type"] != "network"): continue - if (properties["Connected"] == dbus.Boolean(1)): + if (properties["Enabled"] == dbus.Boolean(1)): continue if (properties["Identifier"] == sys.argv[1]): - print "Connecting %s" % (path) - element.Connect() + print "Enabling %s" % (path) + element.Enable() |