else if (NULL != strstr(error, "NoProfile"))
return NET_ERR_NO_PROFILE;
else if (NULL != strstr(error, "FailTdlsDiscover"))
- return NET_ERR_FAIL_TDLS_DISCOVER;
+ return NET_ERR_FAIL_TDLS_DISCOVER;
return NET_ERR_UNKNOWN;
}
if (error != NULL) {
Error = __net_error_string_to_enum(error->message);
+ if (error->code == G_IO_ERROR_CANCELLED) {
+ WIFI_LOG(WIFI_INFO, "Ignore open connection reply, as operation is cancelled");
+ g_error_free(error);
+ __NETWORK_FUNC_EXIT__;
+ return;
+ }
+
g_error_free(error);
}
net_event_info_s *event_data;
network_info_s *network_info = (network_info_s *)user_data;
- network_request_table_s *request_table = network_info->request_table;
- network_request_table_s *bssid_scan_info = &request_table[NETWORK_REQUEST_TYPE_BSSID_SCAN];
+ network_request_table_s *request_table;
+ network_request_table_s *bssid_scan_info;
event_data = g_try_malloc0(sizeof(net_event_info_s));
if (event_data == NULL) {
WIFI_LOG(WIFI_ERROR, "Scan failed. Error [%s]",
error->message);
Error = __net_error_string_to_enum(error->message);
+ if (error->code == G_IO_ERROR_CANCELLED) {
+ WIFI_LOG(WIFI_INFO, "Ignore scan reply, as operation is cancelled");
+ g_error_free(error);
+ __NETWORK_FUNC_EXIT__;
+ return;
+ }
+
g_error_free(error);
}
if (reply)
g_variant_unref(reply);
+ request_table = network_info->request_table;
+ bssid_scan_info = &request_table[NETWORK_REQUEST_TYPE_BSSID_SCAN];
+
/* Show scan list even if device is in association state */
if (bssid_scan_info->flag == TRUE && Error == NET_ERR_FAIL_DEVICE_BUSY) {
memset(&request_table[NETWORK_REQUEST_TYPE_BSSID_SCAN],
GVariant *reply;
net_event_info_s *event_data = NULL;
network_info_s *network_info = (network_info_s *)user_data;
- network_request_table_s *request_table = network_info->request_table;
- network_request_table_s *close_info =
- &request_table[NETWORK_REQUEST_TYPE_CLOSE_CONNECTION];
+ network_request_table_s *request_table;
+ network_request_table_s *close_info;
WIFI_LOG(WIFI_INFO, "__net_close_connection_reply() called");
conn = G_DBUS_CONNECTION(source_object);
reply = g_dbus_connection_call_finish(conn, res, &error);
+
if (error != NULL) {
Error = __net_error_string_to_enum(error->message);
+ if (error->code == G_IO_ERROR_CANCELLED) {
+ WIFI_LOG(WIFI_INFO, "Ignore close connection reply, as operation is cancelled");
+ g_error_free(error);
+ __NETWORK_FUNC_EXIT__;
+ return;
+ }
+
g_error_free(error);
}
WIFI_LOG(WIFI_ERROR, "Connection close failed[%d]", Error);
+ request_table = network_info->request_table;
+ close_info = &request_table[NETWORK_REQUEST_TYPE_CLOSE_CONNECTION];
+
if (close_info->flag == TRUE) {
g_strlcpy(event_data->ProfileName, close_info->ProfileName,
NET_PROFILE_NAME_LEN_MAX + 1);
net_event_info_s *event_data = NULL;
GVariant *reply;
network_info_s *network_info = (network_info_s *)user_data;
- network_request_table_s *request_table = network_info->request_table;
+ network_request_table_s *request_table;
WIFI_LOG(WIFI_INFO, "__net_wifi_power_reply() called");
conn = G_DBUS_CONNECTION(source_object);
reply = g_dbus_connection_call_finish(conn, res, &error);
+
if (error != NULL) {
Error = __net_netconfig_error_string_to_enum(error->message);
+ if (error->code == G_IO_ERROR_CANCELLED) {
+ WIFI_LOG(WIFI_INFO, "Ignore wifi power reply, as operation is cancelled");
+ g_error_free(error);
+ __NETWORK_FUNC_EXIT__;
+ return;
+ }
+
g_error_free(error);
}
if (reply)
g_variant_unref(reply);
+ request_table = network_info->request_table;
+
if (Error != NET_ERR_NONE) {
WIFI_LOG(WIFI_ERROR, "Wi-Fi power operation failed. Error [%d]", Error);
net_err_e Error = NET_ERR_NONE;
net_event_info_s *event_data = NULL;
network_info_s *network_info = (network_info_s *)user_data;
- network_request_table_s *request_table = network_info->request_table;
+ network_request_table_s *request_table;
event_data = g_try_malloc0(sizeof(net_event_info_s));
if (event_data == NULL) {
conn = G_DBUS_CONNECTION(source_object);
reply = g_dbus_connection_call_finish(conn, res, &error);
+
if (error != NULL) {
Error = __net_netconfig_error_string_to_enum(error->message);
+ if (error->code == G_IO_ERROR_CANCELLED) {
+ WIFI_LOG(WIFI_INFO, "Ignore bssid scan reply, as operation is cancelled");
+ g_error_free(error);
+ __NETWORK_FUNC_EXIT__;
+ return;
+ }
+
g_error_free(error);
}
if (reply)
g_variant_unref(reply);
+ request_table = network_info->request_table;
+
if (Error != NET_ERR_NONE) {
WIFI_LOG(WIFI_ERROR, "bssid scan failed[%d]", Error);
net_err_e Error = NET_ERR_NONE;
net_event_info_s *event_data = NULL;
network_info_s *network_info = (network_info_s *)user_data;
- network_request_table_s *request_table = network_info->request_table;
+ network_request_table_s *request_table;
event_data = g_try_malloc0(sizeof(net_event_info_s));
if (event_data == NULL) {
conn = G_DBUS_CONNECTION(source_object);
reply = g_dbus_connection_call_finish(conn, res, &error);
+
if (error != NULL) {
Error = __net_netconfig_error_string_to_enum(error->message);
+ if (error->code == G_IO_ERROR_CANCELLED) {
+ WIFI_LOG(WIFI_INFO, "Ignore netlink scan reply, as operation is cancelled");
+ g_error_free(error);
+ __NETWORK_FUNC_EXIT__;
+ return;
+ }
+
g_error_free(error);
}
if (reply)
g_variant_unref(reply);
+ request_table = network_info->request_table;
+
if (Error != NET_ERR_NONE) {
WIFI_LOG(WIFI_ERROR, "netlink scan failed[%d]", Error);
conn = G_DBUS_CONNECTION(source_object);
reply = g_dbus_connection_call_finish(conn, res, &error);
+
if (error != NULL) {
Error = __net_netconfig_error_string_to_enum(error->message);
+ if (error->code == G_IO_ERROR_CANCELLED) {
+ WIFI_LOG(WIFI_INFO, "Ignore set passpoint reply, as operation is cancelled");
+ g_error_free(error);
+ __NETWORK_FUNC_EXIT__;
+ return;
+ }
+
g_error_free(error);
}
net_event_info_s *event_data = NULL;
GVariant *reply;
network_info_s *network_info = (network_info_s *)user_data;
- network_request_table_s *request_table = network_info->request_table;
+ network_request_table_s *request_table;
event_data = g_try_malloc0(sizeof(net_event_info_s));
if (event_data == NULL) {
conn = G_DBUS_CONNECTION(source_object);
reply = g_dbus_connection_call_finish(conn, res, &error);
+
if (error != NULL) {
WIFI_LOG(WIFI_ERROR, "Scan failed. Error [%s]",
error->message);
Error = __net_error_string_to_enum(error->message);
+ if (error->code == G_IO_ERROR_CANCELLED) {
+ WIFI_LOG(WIFI_INFO, "Ignore specific scan request reply, as operation is cancelled");
+ g_error_free(error);
+ __NETWORK_FUNC_EXIT__;
+ return;
+ }
+
g_error_free(error);
}
if (reply)
g_variant_unref(reply);
+ request_table = network_info->request_table;
+
if (Error == NET_ERR_IN_PROGRESS) {
/* should retry scan after receiving scan result */
if (request_table[NETWORK_REQUEST_TYPE_SPECIFIC_SCAN].flag == TRUE) {
if (error != NULL) {
WIFI_LOG(WIFI_ERROR, "error msg - [%s]", error->message);
+ if (error->code == G_IO_ERROR_CANCELLED) {
+ WIFI_LOG(WIFI_INFO, "Ignore wps cancel reply, as operation is cancelled");
+ g_error_free(error);
+ __NETWORK_FUNC_EXIT__;
+ return;
+ }
+
g_error_free(error);
}
net_event_info_s *event_data = NULL;
net_err_e Error = NET_ERR_NONE;
network_info_s *network_info = (network_info_s *)user_data;
- network_request_table_s *request_table = network_info->request_table;
- network_request_table_s *wps_info = &request_table[NETWORK_REQUEST_TYPE_ENROLL_WPS];
+ network_request_table_s *request_table;
+ network_request_table_s *wps_info;
event_data = g_try_malloc0(sizeof(net_event_info_s));
if (event_data == NULL) {
if (error != NULL) {
WIFI_LOG(WIFI_INFO, "error msg - [%s]", error->message);
Error = __net_error_string_to_enum(error->message);
+ if (error->code == G_IO_ERROR_CANCELLED) {
+ WIFI_LOG(WIFI_INFO, "Ignore wps connect reply, as operation is cancelled");
+ g_error_free(error);
+ __NETWORK_FUNC_EXIT__;
+ return;
+ }
+
g_error_free(error);
} else
WIFI_LOG(WIFI_INFO, "error msg is NULL");
WIFI_LOG(WIFI_ERROR, "Connection open failed. Error [%d]", Error);
+ request_table = network_info->request_table;
+ wps_info = &request_table[NETWORK_REQUEST_TYPE_ENROLL_WPS];
+
memset(wps_info, 0, sizeof(network_request_table_s));
event_data->Error = Error;
net_err_e Error = NET_ERR_NONE;
net_event_info_s *event_data = NULL;
network_info_s *network_info = (network_info_s *)user_data;
- network_request_table_s *request_table = network_info->request_table;
+ network_request_table_s *request_table;
event_data = g_try_malloc0(sizeof(net_event_info_s));
if (event_data == NULL) {
conn = G_DBUS_CONNECTION(source_object);
reply = g_dbus_connection_call_finish(conn, res, &error);
+
if (error != NULL) {
WIFI_LOG(WIFI_ERROR, "Scan failed. Error [%s]",
error->message);
Error = __net_error_string_to_enum(error->message);
+ if (error->code == G_IO_ERROR_CANCELLED) {
+ WIFI_LOG(WIFI_INFO, "Ignore multi scan request reply, as operation is cancelled");
+ g_error_free(error);
+ __NETWORK_FUNC_EXIT__;
+ return;
+ }
+
g_error_free(error);
}
if (reply)
g_variant_unref(reply);
+ request_table = network_info->request_table;
+
if (Error == NET_ERR_IN_PROGRESS) {
/* should retry scan after receiving scan result */
if (request_table[NETWORK_REQUEST_TYPE_MULTI_SCAN].flag == TRUE) {