diff options
author | Martin Xu <martin.xu@intel.com> | 2010-12-08 16:28:40 +0800 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2010-12-08 12:24:58 +0100 |
commit | c48061ba2f015b7a8e82c5c12e1ac30bf06c1f38 (patch) | |
tree | baf3c62bf98a17d9aacae24644eb87acdd1b6d83 /src/rtnl.c | |
parent | 597ccb4900f3c3d8713529f90a738c6bc6df37c3 (diff) | |
download | connman-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.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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; |