summaryrefslogtreecommitdiff
path: root/src/rtnl.c
diff options
context:
space:
mode:
authorMartin Xu <martin.xu@intel.com>2010-12-08 16:28:40 +0800
committerSamuel Ortiz <sameo@linux.intel.com>2010-12-08 12:24:58 +0100
commitc48061ba2f015b7a8e82c5c12e1ac30bf06c1f38 (patch)
treebaf3c62bf98a17d9aacae24644eb87acdd1b6d83 /src/rtnl.c
parent597ccb4900f3c3d8713529f90a738c6bc6df37c3 (diff)
downloadconnman-c48061ba2f015b7a8e82c5c12e1ac30bf06c1f38.tar.gz
connman-c48061ba2f015b7a8e82c5c12e1ac30bf06c1f38.tar.bz2
connman-c48061ba2f015b7a8e82c5c12e1ac30bf06c1f38.zip
Add CONNMAN_DEVICE_TYPE_GADGET and CONNMAN_SERVICE_TYPE_GADGET
Diffstat (limited to 'src/rtnl.c')
-rw-r--r--src/rtnl.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/rtnl.c b/src/rtnl.c
index a6a871d0..8fea0945 100644
--- a/src/rtnl.c
+++ b/src/rtnl.c
@@ -176,6 +176,10 @@ static void read_uevent(struct interface_data *interface)
} else if (strcmp(line + 8, "wimax") == 0) {
interface->service_type = CONNMAN_SERVICE_TYPE_WIMAX;
interface->device_type = CONNMAN_DEVICE_TYPE_WIMAX;
+ } else if (strcmp(line + 8, "gadget") == 0) {
+ interface->service_type = CONNMAN_SERVICE_TYPE_GADGET;
+ interface->device_type = CONNMAN_DEVICE_TYPE_GADGET;
+
} else {
interface->service_type = CONNMAN_SERVICE_TYPE_UNKNOWN;
interface->device_type = CONNMAN_DEVICE_TYPE_UNKNOWN;