From 1bbed4e62bfce942360575307f5eb8063765f5e4 Mon Sep 17 00:00:00 2001 From: Abhishek Sansanwal Date: Mon, 3 Apr 2017 18:55:16 +0530 Subject: [PATCH] [TNEXT-234] - Fixed No Wi-Fi AP found issue Description: Fixed No Wi-Fi AP found issue and also fixed the wifi-qs crash. Signed-off-by: Abhishek Sansanwal Change-Id: I14bcdeabe1f6fa0a79d9685fd99825f19a5578fd --- sources/libraries/Common/common_utils.c | 2 +- sources/wifi-syspopup/wifi-syspopup.c | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/sources/libraries/Common/common_utils.c b/sources/libraries/Common/common_utils.c index dd9f652..3d40770 100755 --- a/sources/libraries/Common/common_utils.c +++ b/sources/libraries/Common/common_utils.c @@ -49,7 +49,7 @@ struct gdbus_connection_data { guint subscribe_id_supplicant; }; -static __thread struct gdbus_connection_data gdbus_conn = { NULL, 0 }; +static struct gdbus_connection_data gdbus_conn = { NULL, 0 }; static GSList *managed_idler_list = NULL; static int (*rotate_cb)(enum appcore_rm, void*, Eina_Bool, Eina_Bool) = NULL; static void *rotate_cb_data = NULL; diff --git a/sources/wifi-syspopup/wifi-syspopup.c b/sources/wifi-syspopup/wifi-syspopup.c index 2c1b630..7626c46 100755 --- a/sources/wifi-syspopup/wifi-syspopup.c +++ b/sources/wifi-syspopup/wifi-syspopup.c @@ -415,9 +415,11 @@ static int wifi_devpkr_init() /* fall through */ case WLAN_MANAGER_ERR_NONE: wlan_ret = wlan_manager_is_activated(&activated); - if (WIFI_MANAGER_ERROR_NONE == wlan_ret) + if (WIFI_MANAGER_ERROR_NONE == wlan_ret) { INFO_LOG(SP_NAME_NORMAL, "Wi-Fi activated: %d", activated); - + if (activated) + wlan_manager_scan(); + } INFO_LOG(SP_NAME_NORMAL, "wlan_manager start complete"); break; -- 2.7.4