diff options
-rwxr-xr-x | plugins/wifi.c | 3 | ||||
-rw-r--r-- | src/technology.c | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/plugins/wifi.c b/plugins/wifi.c index f80cbd17..2c6d50d0 100755 --- a/plugins/wifi.c +++ b/plugins/wifi.c @@ -2408,7 +2408,7 @@ static void setup_autoscan(struct wifi_data *wifi) return; } -#endif +#else /* * On the contrary, if BackgroundScanning is disabled, update autoscan @@ -2432,6 +2432,7 @@ static void setup_autoscan(struct wifi_data *wifi) wifi->autoscan = parse_autoscan_params(AUTOSCAN_SINGLE); break; } +#endif } static void finalize_interface_creation(struct wifi_data *wifi) diff --git a/src/technology.c b/src/technology.c index 39b0cfaa..440d7ebb 100644 --- a/src/technology.c +++ b/src/technology.c @@ -1406,9 +1406,10 @@ void __connman_technology_scan_stopped(struct connman_device *device, reply_scan_pending_device(technology, ifname, count); return; -#endif +#else if (count == 0) reply_scan_pending(technology, 0); +#endif } void __connman_technology_notify_regdom_by_device(struct connman_device *device, |