Remove GetProperties call from profile OPEN event 47/245047/4
authorNishant Chaprana <n.chaprana@samsung.com>
Tue, 29 Sep 2020 13:11:40 +0000 (18:41 +0530)
committerNishant Chaprana <n.chaprana@samsung.com>
Mon, 2 Nov 2020 11:18:22 +0000 (16:48 +0530)
Change-Id: I1bea5c4fab70b46d4d8025c823b87d63f3c11b65
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
packaging/capi-network-wifi-manager.spec
src/wifi_internal.c

index 0884437..558c226 100755 (executable)
@@ -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
index ddc70dd..076de25 100755 (executable)
@@ -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: