From: Jaehyun Kim Date: Wed, 3 Jan 2024 09:23:29 +0000 (+0900) Subject: Fix unnecessary background scan attempts X-Git-Tag: accepted/tizen/unified/20240119.154739^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b120bc73c86f9e297493ea23676b4254bea4cf77;p=platform%2Fcore%2Fconnectivity%2Fnet-config.git 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 --- 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));