From d4db79b71433f1f2991eea27568d6ef591cacb25 Mon Sep 17 00:00:00 2001
From: Piotr Kosko
Date: Wed, 10 Jun 2015 08:05:03 +0200
Subject: [PATCH] [Package] check ethernet feature for testing on emulator
Change-Id: Ia5d73a9be8b655bd8c25da9f265baa59ecee8244
Signed-off-by: Piotr Kosko
---
src/download/download_instance.cc | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/src/download/download_instance.cc b/src/download/download_instance.cc
index abcf6357..f731425a 100755
--- a/src/download/download_instance.cc
+++ b/src/download/download_instance.cc
@@ -421,17 +421,14 @@ void DownloadInstance::DownloadManagerStart
bool network_support = false;
bool cell_support = false;
bool wifi_support = false;
- // todo retrieve this from system_info
-#ifdef TIZEN_TV
- bool ethernet_support = true;
-#else
bool ethernet_support = false;
-#endif
system_info_get_platform_bool("http://tizen.org/feature/network.telephony",
&cell_support);
system_info_get_platform_bool("http://tizen.org/feature/network.wifi",
&wifi_support);
+ system_info_get_platform_bool("http://tizen.org/feature/network.ethernet",
+ ðernet_support);
connection_h connection = nullptr;
connection_create(&connection);
--
2.34.1