From: Chengyi Zhao Date: Fri, 3 Jan 2014 04:45:46 +0000 (+0800) Subject: Make WIFI driver loading mechanism configurable X-Git-Tag: submit/tizen/20140107.010027^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fheads%2Faccepted%2Ftizen%2Fivi%2Fstable;p=platform%2Fcore%2Fconnectivity%2Fnet-config.git Make WIFI driver loading mechanism configurable Currently, on Samsung platform, it loads WIFI driver dynamically, but on Intel platform, WIFI driver is loaded when system boots up. So it needs to make the WIFI driver loading mechanism configurable to adapt both Samsung and Intel platform. Use the existing macro definition "EMBEDDED_TARGET" to fix this issue. Change-Id: Iddccfc411f79284232f9d10b971ac6cd28ae75ca Signed-off-by: Chengyi Zhao --- diff --git a/src/wifi-power.c b/src/wifi-power.c index 15ac07c..db06800 100644 --- a/src/wifi-power.c +++ b/src/wifi-power.c @@ -121,11 +121,13 @@ static gboolean __netconfig_wifi_load_driver(void) if (netconfig_emulator_is_emulated() == TRUE) return rv; +#if defined EMBEDDED_TARGET rv = netconfig_execute_file(path, args, envs); if (rv != TRUE) { DBG("Failed to load wireless device driver"); return FALSE; } +#endif DBG("Successfully loaded wireless device driver"); return TRUE; @@ -141,11 +143,13 @@ gboolean netconfig_wifi_remove_driver(void) if (netconfig_emulator_is_emulated() == TRUE) return rv; +#if defined EMBEDDED_TARGET rv = netconfig_execute_file(path, args, env); if (rv != TRUE) { DBG("Failed to remove wireless device driver"); return FALSE; } +#endif DBG("Successfully removed wireless device driver"); return TRUE;