const char *svc_name3 =
request_table[NETWORK_REQUEST_TYPE_ENROLL_WPS].ProfileName;
- if (request_table[NETWORK_REQUEST_TYPE_OPEN_CONNECTION].flag != TRUE &&
- request_table[NETWORK_REQUEST_TYPE_ENROLL_WPS].flag != TRUE &&
- request_table[NETWORK_REQUEST_TYPE_CLOSE_CONNECTION].flag != TRUE) {
- /** Send Close Ind */
- event_data.Error = Error;
- event_data.Event = NET_EVENT_CLOSE_IND;
- g_strlcpy(event_data.ProfileName, sig_path, NET_PROFILE_NAME_LEN_MAX+1);
-
- event_data.Datalength = 0;
- event_data.Data = NULL;
-
- WIFI_LOG(WIFI_INFO, "Sending NET_EVENT_CLOSE_IND");
-
- _net_client_callback(&event_data);
- }
-
if (request_table[NETWORK_REQUEST_TYPE_OPEN_CONNECTION].flag == TRUE &&
strstr(sig_path, svc_name2) != NULL) {
memset(&request_table[NETWORK_REQUEST_TYPE_OPEN_CONNECTION], 0,
_net_dbus_pending_call_unref();
_net_client_callback(&event_data);
+ break;
}
if (request_table[NETWORK_REQUEST_TYPE_ENROLL_WPS].flag == TRUE &&
_net_dbus_pending_call_unref();
_net_client_callback(&event_data);
+ break;
}
if (request_table[NETWORK_REQUEST_TYPE_CLOSE_CONNECTION].flag == TRUE &&
_net_dbus_pending_call_unref();
_net_client_callback(&event_data);
+ break;
}
+
+ /** Send Close Ind */
+ event_data.Error = Error;
+ event_data.Event = NET_EVENT_CLOSE_IND;
+ g_strlcpy(event_data.ProfileName, sig_path, NET_PROFILE_NAME_LEN_MAX+1);
+
+ event_data.Datalength = 0;
+ event_data.Data = NULL;
+
+ WIFI_LOG(WIFI_INFO, "Sending NET_EVENT_CLOSE_IND");
+
+ _net_client_callback(&event_data);
+
break;
}
case NET_STATE_TYPE_FAILURE: