Block all extra scans caused by ConnMan 00/232900/1
authorJaehyun Kim <jeik01.kim@samsung.com>
Fri, 8 May 2020 07:52:30 +0000 (16:52 +0900)
committerJaehyun Kim <jeik01.kim@samsung.com>
Fri, 8 May 2020 07:52:30 +0000 (16:52 +0900)
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>
plugins/wifi.c

index cbc6b15..1610211 100755 (executable)
@@ -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