return err;
}
+static void _net_clear_cb_timers(void)
+{
+ if (connection_cb_timer > 0) {
+ g_source_remove(connection_cb_timer);
+ connection_cb_timer = 0;
+ }
+
+ if (full_scan_cb_timer > 0) {
+ g_source_remove(full_scan_cb_timer);
+ full_scan_cb_timer = 0;
+ }
+
+ if (specific_scan_cb_timer > 0) {
+ g_source_remove(specific_scan_cb_timer);
+ specific_scan_cb_timer = 0;
+ }
+
+ if (multi_scan_cb_timer > 0) {
+ g_source_remove(multi_scan_cb_timer);
+ multi_scan_cb_timer = 0;
+ }
+
+ if (bssid_scan_cb_timer > 0) {
+ g_source_remove(bssid_scan_cb_timer);
+ bssid_scan_cb_timer = 0;
+ }
+}
+
void net_forget_ap_finished(network_info_s *network_info, net_err_e Error)
{
__NETWORK_FUNC_ENTER__;
return NET_ERR_IN_PROGRESS; //LCOV_EXCL_LINE
}
- if (connection_cb_timer > 0) {
- g_source_remove(connection_cb_timer);
- connection_cb_timer = 0;
- }
-
- if (full_scan_cb_timer > 0) {
- g_source_remove(full_scan_cb_timer);
- full_scan_cb_timer = 0;
- }
- if (specific_scan_cb_timer > 0) {
- g_source_remove(specific_scan_cb_timer);
- specific_scan_cb_timer = 0;
- }
- if (multi_scan_cb_timer > 0) {
- g_source_remove(multi_scan_cb_timer);
- multi_scan_cb_timer = 0;
- }
- if (bssid_scan_cb_timer > 0) {
- g_source_remove(bssid_scan_cb_timer);
- bssid_scan_cb_timer = 0;
- }
+ _net_clear_cb_timers();
if (network_info->request_table[NETWORK_REQUEST_TYPE_SCAN].flag == TRUE)
memset(&(network_info->request_table[NETWORK_REQUEST_TYPE_SCAN]),
network_info->user_data = NULL;
network_info->wifi_handle = NULL;
+ _net_clear_cb_timers();
_net_deregister_signal(network_info);
_net_dbus_close_gdbus_call(network_info);
_net_clear_request_table(network_info);