From: Jaehyun Kim Date: Fri, 8 May 2020 07:52:30 +0000 (+0900) Subject: Block all extra scans caused by ConnMan X-Git-Tag: accepted/tizen/unified/20200529.124226~1^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b4dc158bfcffab6df89d9c7bfaa5bd0c53beb412;p=platform%2Fupstream%2Fconnman.git Block all extra scans caused by ConnMan Even if BackgroundScanning is disabled, a passive scan(full scan) is performed automatically after an active scan. However, this function is not necessary because we already added a separate scan logic to fit our requirement. Change-Id: I5ac24a35d9b61c44bbbd2ddb7688cb26a63fc2b7 Signed-off-by: Jaehyun Kim --- diff --git a/plugins/wifi.c b/plugins/wifi.c index cbc6b15..1610211 100755 --- a/plugins/wifi.c +++ b/plugins/wifi.c @@ -2395,6 +2395,18 @@ static void setup_autoscan(struct wifi_data *wifi) wifi->autoscan = parse_autoscan_params(AUTOSCAN_EXPONENTIAL); return; } +#if defined TIZEN_EXT + else { + if (wifi->autoscan) { + g_free(wifi->autoscan); + wifi->autoscan = NULL; + } + + DBG("BackgroundScanning is disabled"); + + return; + } +#endif /* * On the contrary, if BackgroundScanning is disabled, update autoscan