This email list is read-only.  Emails sent to this list will be discarded
----------------------------------
 src/element.c        |    4 ++++
 test/disable-network |    3 +++
 test/list-networks   |    3 +++
 test/select-network  |    3 +++
 test/set-passphrase  |    3 +++
 5 files changed, 16 insertions(+), 0 deletions(-)

New commits:
commit dc904e17f98346d1d233dc090c3195c33ff5f71d
Author: Marcel Holtmann <[EMAIL PROTECTED]>
Date:   Sat Dec 6 00:00:11 2008 +0100

    Don't check non wireless devices

commit aa7b81c7494f844bb4f08647868ae3bd0ce038b4
Author: Marcel Holtmann <[EMAIL PROTECTED]>
Date:   Fri Dec 5 23:54:26 2008 +0100

    Show Networks property only for wireless devices


Diff in this email is a maximum of 400 lines.
diff --git a/src/element.c b/src/element.c
index 0aef003..00da43a 100644
--- a/src/element.c
+++ b/src/element.c
@@ -362,6 +362,10 @@ static void append_networks(struct connman_element 
*element,
        DBusMessageIter entry, value, iter;
        const char *key = "Networks";
 
+       if (element->subtype != CONNMAN_ELEMENT_SUBTYPE_WIFI &&
+                       element->subtype != CONNMAN_ELEMENT_SUBTYPE_WIMAX)
+               return;
+
        dbus_message_iter_open_container(dict, DBUS_TYPE_DICT_ENTRY,
                                                                NULL, &entry);
 
diff --git a/test/disable-network b/test/disable-network
index beea2f1..0f26154 100755
--- a/test/disable-network
+++ b/test/disable-network
@@ -15,6 +15,9 @@ for path in properties["Devices"]:
 
        properties = device.GetProperties()
 
+       if (properties["Type"] != "wifi" and properties["Type"] != "wimax"):
+               continue;
+
        print "[ %s ]" % (path)
 
        for path in properties["Networks"]:
diff --git a/test/list-networks b/test/list-networks
index 94e111c..3b29a8e 100755
--- a/test/list-networks
+++ b/test/list-networks
@@ -15,6 +15,9 @@ for path in properties["Devices"]:
 
        properties = device.GetProperties()
 
+       if (properties["Type"] != "wifi" and properties["Type"] != "wimax"):
+               continue;
+
        print "[ %s ]" % (path)
 
        for path in properties["Networks"]:
diff --git a/test/select-network b/test/select-network
index e7491e8..b5a0259 100755
--- a/test/select-network
+++ b/test/select-network
@@ -20,6 +20,9 @@ for path in properties["Devices"]:
 
        properties = device.GetProperties()
 
+       if (properties["Type"] != "wifi" and properties["Type"] != "wimax"):
+               continue;
+
        print "[ %s ]" % (path)
 
        for path in properties["Networks"]:
diff --git a/test/set-passphrase b/test/set-passphrase
index db39554..1c0d0f1 100755
--- a/test/set-passphrase
+++ b/test/set-passphrase
@@ -20,6 +20,9 @@ for path in properties["Devices"]:
 
        properties = device.GetProperties()
 
+       if (properties["Type"] != "wifi" and properties["Type"] != "wimax"):
+               continue;
+
        for path in properties["Networks"]:
                network = dbus.Interface(bus.get_object("org.moblin.connman", 
path),
                                                "org.moblin.connman.Network")
_______________________________________________
Commits mailing list
[email protected]
https://lists.moblin.org/mailman/listinfo/commits

Reply via email to