summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortaesub kim <taesub.kim@samsung.com>2016-06-12 19:14:37 -0700
committerGerrit Code Review <gerrit@review.vlan103.tizen.org>2016-06-12 19:14:37 -0700
commit0f207feed5b323a80a91911424bf18bdbe2c03a8 (patch)
tree07dc973d1345398705110d131711e74ec3da03cb
parente3f92763324a7eb0dcc52deb17108135515c1a43 (diff)
parent2f9471ef5ab7f0bad3a8dcb2ad31d95a6daac9e1 (diff)
downloadconnman-0f207feed5b323a80a91911424bf18bdbe2c03a8.tar.gz
connman-0f207feed5b323a80a91911424bf18bdbe2c03a8.tar.bz2
connman-0f207feed5b323a80a91911424bf18bdbe2c03a8.zip
Merge "[SPIN] rtnl: remove old wext interface" into tizen
-rwxr-xr-xsrc/rtnl.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/rtnl.c b/src/rtnl.c
index dc15b331..684668b3 100755
--- a/src/rtnl.c
+++ b/src/rtnl.c
@@ -100,6 +100,7 @@ static bool ether_blacklisted(const char *name)
return false;
}
+#if !defined TIZEN_EXT
static bool wext_interface(char *ifname)
{
struct iwreq wrq;
@@ -121,6 +122,7 @@ static bool wext_interface(char *ifname)
return true;
}
+#endif
#if defined TIZEN_EXT
static bool __connman_rtnl_is_cellular_device(const char *name)
@@ -222,6 +224,8 @@ static void read_uevent(struct interface_data *interface)
if (found_devtype)
goto out;
+#if !defined TIZEN_EXT
+ /* TIZEN does not use old wext interface */
/* We haven't got a DEVTYPE, let's check if it's a wireless device */
if (wext_interface(name)) {
interface->service_type = CONNMAN_SERVICE_TYPE_WIFI;
@@ -229,6 +233,7 @@ static void read_uevent(struct interface_data *interface)
connman_error("%s runs an unsupported 802.11 driver", name);
}
+#endif
out:
g_free(name);