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: