[Fix]Wi-Fi Auto Activation Issue 00/49200/8 accepted/tizen/mobile/20151030.063235 accepted/tizen/tv/20151030.063246 accepted/tizen/wearable/20151030.063259 submit/tizen/20151030.042823 submit/tizen/20151030.043116
authorNishant Chaprana <n.chaprana@samsung.com>
Thu, 8 Oct 2015 10:07:07 +0000 (15:37 +0530)
committerNishant Chaprana <n.chaprana@samsung.com>
Fri, 30 Oct 2015 03:25:58 +0000 (08:55 +0530)
Description: This patch fixes Auto activation issue of wifi
for common profile. The telephony check in wifi-power.c
was skipping wifi auto activation, due to which wifi was
not actiated at restart and AP was not connected.
It also disables TIZEN_TELEPHONY_ENABLE for TV profile.

Change-Id: I53f510e87cb48bac9d1fe751db459dc6cc8eb978
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
CMakeLists.txt
packaging/net-config.spec
src/wifi-power.c

index 92e9cd1d0fadcba53a93b085bee5bd981613c4b0..d67d3a40c387ceab6767d66b1b0355770ba79818 100755 (executable)
@@ -74,7 +74,9 @@ IF(TIZEN_WEARABLE)
        SET(WEARABLE_REQUIRED_PKGS "weconn")
 ENDIF(TIZEN_WEARABLE)
 
-ADD_DEFINITIONS(-DTIZEN_TELEPHONY_ENABLE)
+IF(TIZEN_TELEPHONY_ENABLE)
+       ADD_DEFINITIONS(-DTIZEN_TELEPHONY_ENABLE)
+ENDIF(TIZEN_TELEPHONY_ENABLE)
 
 IF(TIZEN_DEBUG_DISABLE)
        ADD_DEFINITIONS(-DTIZEN_DEBUG_DISABLE)
index 7fc8ffb4b77eb441e46599d29921caf3f3c26f91..d42f02b8b0eea97ab84ee2892c98b3713a306ac6 100755 (executable)
@@ -1,6 +1,6 @@
 Name:          net-config
 Summary:       TIZEN Network Configuration service
-Version:       1.1.43
+Version:       1.1.44
 Release:       2
 Group:         System/Network
 License:       Apache-2.0
index c73e447858a9aefb8b7060e58c919bbba28e799d..3b8df971133c99a94719ed7f265c366333d5a6ad 100755 (executable)
@@ -1074,14 +1074,9 @@ void wifi_power_initialize(void)
                        DBG("Telephony API is not initialized yet");
                        vconf_notify_key_changed(VCONFKEY_TELEPHONY_READY,
                                        __netconfig_telephony_ready_changed_cb, NULL);
-
-                       goto done;
                } else {
-                       if (netconfig_tapi_check_sim_state() == FALSE) {
+                       if (netconfig_tapi_check_sim_state() == FALSE)
                                DBG("SIM is not initialized yet");
-
-                               goto done;
-                       }
                }
 #endif
                DBG("Turn Wi-Fi on automatically");
@@ -1092,10 +1087,6 @@ void wifi_power_initialize(void)
 #endif
        }
 
-#if defined TIZEN_TELEPHONY_ENABLE
-done:
-#endif
-
 #if defined TIZEN_WEARABLE
        _weconn_set_state_changed_cb(W_SERVICE_TYPE_BT, NULL);
        vconf_notify_key_changed(VCONF_WIFI_WEARABLE_WIFI_USE, __wearable_wifi_use_changed_cb, NULL);