From: Nishant Chaprana Date: Tue, 29 Sep 2020 13:11:40 +0000 (+0530) Subject: Remove GetProperties call from profile OPEN event X-Git-Tag: submit/tizen/20201106.060323~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0f7b34fc5c505dea35ae93dec52a9305319e92d5;p=platform%2Fcore%2Fapi%2Fwifi-manager.git Remove GetProperties call from profile OPEN event Change-Id: I1bea5c4fab70b46d4d8025c823b87d63f3c11b65 Signed-off-by: Nishant Chaprana --- diff --git a/packaging/capi-network-wifi-manager.spec b/packaging/capi-network-wifi-manager.spec index 0884437..558c226 100755 --- a/packaging/capi-network-wifi-manager.spec +++ b/packaging/capi-network-wifi-manager.spec @@ -1,6 +1,6 @@ Name: capi-network-wifi-manager Summary: Network Wi-Fi library in TIZEN C API -Version: 1.2.5 +Version: 1.2.6 Release: 1 Group: System/Network License: Apache-2.0 diff --git a/src/wifi_internal.c b/src/wifi_internal.c index ddc70dd..076de25 100755 --- a/src/wifi_internal.c +++ b/src/wifi_internal.c @@ -1269,27 +1269,14 @@ static void _wifi_evt_cb(net_event_info_s *event_cb, void *user_data) case NET_ERR_ACTIVE_CONNECTION_EXISTS: return; default: - break; - } - - if (net_get_profile_info(wifi_handle->network_info, - event_cb->ProfileName, &prof_info) == NET_ERR_NONE) { - __state_changed_cb(wifi_handle, event_cb->ProfileName, &prof_info, - WIFI_MANAGER_CONNECTION_STATE_DISCONNECTED); + if (event_cb->Datalength == sizeof(net_profile_info_s)) + prof_info_p = (net_profile_info_s *)event_cb->Data; - /* Free internal GSList */ - if (prof_info.vsie_list) { - g_slist_free_full(prof_info.vsie_list, g_free); - prof_info.vsie_list = NULL; - } + __state_changed_cb(wifi_handle, event_cb->ProfileName, prof_info_p, + WIFI_MANAGER_CONNECTION_STATE_DISCONNECTED); - if (prof_info.bssid_list) { - g_slist_free_full(prof_info.bssid_list, g_free); - prof_info.bssid_list = NULL; - } - } else - __state_changed_cb(wifi_handle, event_cb->ProfileName, NULL, - WIFI_MANAGER_CONNECTION_STATE_DISCONNECTED); + break; + } break; case NET_EVENT_CLOSE_RSP: