summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNiraj Kumar Goit <niraj.g@samsung.com>2016-06-09 16:30:57 (GMT)
committerNiraj Kumar Goit <niraj.g@samsung.com>2016-06-09 16:30:57 (GMT)
commit2f9471ef5ab7f0bad3a8dcb2ad31d95a6daac9e1 (patch)
tree284aa543ee255cb4260bc2b3662444fdb9dfbf25
parent908cdc77eee10d6f01640889386c9cc51453080e (diff)
downloadconnman-2f9471ef5ab7f0bad3a8dcb2ad31d95a6daac9e1.zip
connman-2f9471ef5ab7f0bad3a8dcb2ad31d95a6daac9e1.tar.gz
connman-2f9471ef5ab7f0bad3a8dcb2ad31d95a6daac9e1.tar.bz2
[SPIN] rtnl: remove old wext interfacerefs/changes/88/73788/1
Change-Id: I05c4d16965d974af8fd3d83546c9690f3d8def51 Signed-off-by: Niraj Kumar Goit <niraj.g@samsung.com>
-rwxr-xr-xsrc/rtnl.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/rtnl.c b/src/rtnl.c
index dc15b33..684668b 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);