[Package] check ethernet feature for testing on emulator
authorPiotr Kosko <p.kosko@samsung.com>
Wed, 10 Jun 2015 06:05:03 +0000 (08:05 +0200)
committerPiotr Kosko <p.kosko@samsung.com>
Wed, 10 Jun 2015 06:46:07 +0000 (08:46 +0200)
Change-Id: Ia5d73a9be8b655bd8c25da9f265baa59ecee8244
Signed-off-by: Piotr Kosko <p.kosko@samsung.com>
src/download/download_instance.cc

index abcf6357ff922200ec18fdc23eb654454b6f514b..f731425a942c90e51835e0b68048177e2e7fbb0b 100755 (executable)
@@ -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",
+                                &ethernet_support);
 
   connection_h connection = nullptr;
   connection_create(&connection);