summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaehyun Kim <jeik01.kim@samsung.com>2020-05-08 16:52:30 +0900
committerJaehyun Kim <jeik01.kim@samsung.com>2020-05-08 16:52:30 +0900
commitb4dc158bfcffab6df89d9c7bfaa5bd0c53beb412 (patch)
treecf309249235f842c703bd1efb6999982d9c113b2
parente8a4cf558fcca1fa316205dbef2c72c67e1e6fab (diff)
downloadconnman-b4dc158bfcffab6df89d9c7bfaa5bd0c53beb412.tar.gz
connman-b4dc158bfcffab6df89d9c7bfaa5bd0c53beb412.tar.bz2
connman-b4dc158bfcffab6df89d9c7bfaa5bd0c53beb412.zip
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 <jeik01.kim@samsung.com>
-rwxr-xr-xplugins/wifi.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/plugins/wifi.c b/plugins/wifi.c
index cbc6b152..1610211b 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