From b120bc73c86f9e297493ea23676b4254bea4cf77 Mon Sep 17 00:00:00 2001 From: Jaehyun Kim Date: Wed, 3 Jan 2024 18:23:29 +0900 Subject: [PATCH] Fix unnecessary background scan attempts 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 --- src/wifi-scan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wifi-scan.c b/src/wifi-scan.c index 8d4dd7f..24ff33a 100755 --- a/src/wifi-scan.c +++ b/src/wifi-scan.c @@ -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)); -- 2.34.1