From b4dc158bfcffab6df89d9c7bfaa5bd0c53beb412 Mon Sep 17 00:00:00 2001 From: Jaehyun Kim Date: Fri, 8 May 2020 16:52:30 +0900 Subject: [PATCH] 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 --- plugins/wifi.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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 -- 2.7.4