Fix unnecessary background scan attempts 80/303680/1 accepted/tizen/7.0/unified/20240119.092443 accepted/tizen/7.0/unified/20240119.100216
authorJaehyun Kim <jeik01.kim@samsung.com>
Wed, 3 Jan 2024 09:23:29 +0000 (18:23 +0900)
committerJaehyun Kim <jeik01.kim@samsung.com>
Wed, 3 Jan 2024 09:30:08 +0000 (18:30 +0900)
There is a problem with the background scan timer
not being removed properly when powering off.
This has been fixed as there were cases
where scans were attempted unnecessarily.

Change-Id: I4e098ed64c4e18e58b242b08633040cf8c4a350d
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
src/wifi-scan.c

index 8d4dd7f..24ff33a 100755 (executable)
@@ -404,7 +404,7 @@ void netconfig_wifi_bgscan_stop_timer(const char *interface_name)
 {
        scan_data_s *scan_data = __wifi_scan_get_data(interface_name);
 
-       if (scan_data)
+       if (!scan_data)
                return;
 
        netconfig_stop_timer(&(scan_data->bg_timer_id));