Add parsing for Wi-Fi Direct status vconfkey value 66/91366/1 accepted/tizen/common/20161012.154239 accepted/tizen/ivi/20161012.113718 accepted/tizen/mobile/20161012.113633 accepted/tizen/tv/20161012.113652 accepted/tizen/wearable/20161012.113701 submit/tizen/20161012.014104
authorYu Jiung <jiung.yu@samsung.com>
Fri, 7 Oct 2016 07:05:22 +0000 (16:05 +0900)
committerYu Jiung <jiung.yu@samsung.com>
Fri, 7 Oct 2016 07:05:37 +0000 (16:05 +0900)
Change-Id: I54b7ba48eea1f573edc7fc9843fc0a650e0645e6
Signed-off-by: Yu jiung <jiung.yu@samsung.com>
packaging/capi-network-wifi-direct.spec
src/wifi-direct-client-proxy.c

index 5e365a5..00e210b 100644 (file)
@@ -1,6 +1,6 @@
 Name:       capi-network-wifi-direct
 Summary:    Network WiFi-Direct Library
-Version:    1.2.72
+Version:    1.2.73
 Release:    1
 Group:      Network & Connectivity/API
 License:    Apache-2.0
index f7afeb1..71ec6c5 100644 (file)
@@ -149,6 +149,14 @@ void __wfd_vconf_state_changed_cb(keynode_t *key, void *data)
                state = WIFI_DIRECT_STATE_CONNECTED;
        } else if (state == VCONFKEY_WIFI_DIRECT_DISCOVERING) {
                state = WIFI_DIRECT_STATE_DISCOVERING;
+       } else if (state == VCONFKEY_WIFI_DIRECT_DEACTIVATING) {
+               state = WIFI_DIRECT_STATE_DEACTIVATING;
+       } else if (state == VCONFKEY_WIFI_DIRECT_ACTIVATING) {
+               state = WIFI_DIRECT_STATE_ACTIVATING;
+       } else if (state == VCONFKEY_WIFI_DIRECT_CONNECTING) {
+               state = WIFI_DIRECT_STATE_CONNECTING;
+       } else if (state == VCONFKEY_WIFI_DIRECT_DISCONNECTING) {
+               state = WIFI_DIRECT_STATE_DISCONNECTING;
        } else {
                WDC_LOGE("This state cannot be set as wifi_direct vconf state[%d]", state);
                __WDC_LOG_FUNC_END__;
@@ -2945,6 +2953,14 @@ int wifi_direct_get_state(wifi_direct_state_e *state)
                *state = WIFI_DIRECT_STATE_CONNECTED;
        } else if (val == VCONFKEY_WIFI_DIRECT_DISCOVERING) {
                *state = WIFI_DIRECT_STATE_DISCOVERING;
+       } else if (val == VCONFKEY_WIFI_DIRECT_DEACTIVATING) {
+               *state = WIFI_DIRECT_STATE_DEACTIVATING;
+       } else if (val == VCONFKEY_WIFI_DIRECT_ACTIVATING) {
+               *state = WIFI_DIRECT_STATE_ACTIVATING;
+       } else if (val == VCONFKEY_WIFI_DIRECT_CONNECTING) {
+               *state = WIFI_DIRECT_STATE_CONNECTING;
+       } else if (val == VCONFKEY_WIFI_DIRECT_DISCONNECTING) {
+               *state = WIFI_DIRECT_STATE_DISCONNECTING;
        } else {
                WDC_LOGE("This state cannot be set as wifi_direct vconf state[%d]", val);
                return WIFI_DIRECT_ERROR_OPERATION_FAILED;