g_free(event_data);
+ __NETWORK_FUNC_EXIT__;
+ return;
} else if (Error == NET_ERR_IN_PROGRESS) {
/* should retry scan after receiving scan result */
if (request_table[NETWORK_REQUEST_TYPE_SCAN].flag == TRUE) {
} else
WIFI_LOG(WIFI_INFO, "Scan Request success");
+ g_free(event_data);
__NETWORK_FUNC_EXIT__;
}
}
}
} else {
+ g_free(event_data);
__NETWORK_FUNC_EXIT__;
return;
}
network_info->event_callback(event_data, network_info->user_data);
g_free(event_data);
-
__NETWORK_FUNC_EXIT__;
}
network_info->event_callback(event_data, network_info->user_data);
g_free(event_data);
-
__NETWORK_FUNC_EXIT__;
return;
}
} else
WIFI_LOG(WIFI_INFO, "Specific Scan Request success");
+ g_free(event_data);
__NETWORK_FUNC_EXIT__;
}
g_variant_unref(dbus_result);
if (Error == NET_ERR_NONE) {
+ g_free(event_data);
__NETWORK_FUNC_EXIT__;
return;
}
network_info->event_callback(event_data, network_info->user_data);
g_free(event_data);
-
__NETWORK_FUNC_EXIT__;
}
for (list = interface_list; list; list = list->next) {
const char *ifname = list->data;
if (interface_name == NULL || !g_strcmp0(interface_name, ifname)) {
- g_strlcpy(net_info->interface_name, ifname, NET_WLAN_IF_NAME_LEN + 1);
+ g_strlcpy(net_info->interface_name, ifname, NET_WLAN_IF_NAME_LEN);
WIFI_LOG(WIFI_INFO, "Set interface name [%s]", ifname);
break;
}
event_data->Event = NET_EVENT_CLOSE_RSP;
} else {
__net_handle_state_ind(network_info, profile_name, NET_STATE_TYPE_FAILURE);
-
+ g_free(event_data);
__NETWORK_FUNC_EXIT__;
return;
}
WIFI_LOG(WIFI_INFO, "Sending NET_EVENT_WIFI_WPS_RSP");
} else {
WIFI_LOG(WIFI_WARN, "WiFi Connection flag not set");
+ g_free(event_data);
__NETWORK_FUNC_EXIT__;
return NET_ERR_NONE;
}
}
g_strlcpy(wifi_handle->interface_name,
- wifi_handle->network_info->interface_name, NET_WLAN_IF_NAME_LEN + 1);
+ wifi_handle->network_info->interface_name, NET_WLAN_IF_NAME_LEN);
wifi_handle->network_info->wifi_handle = wifi_handle;
return WIFI_MANAGER_ERROR_NONE;