[iwd] Wifi performs background scans ignoring check_scanning_prohibited
With the wpa_supplicant backend and when connected to an AP, NetworkManager will stop background scans if the BSSID is explicitly set. Regardless of that it was easy to patch away the automatic background scans, by letting check_scanning_prohibited
return true early.
With the iwd backend I expect the same behaviour. However, NetworkManager starts a background scan with iwd every 20 seconds even when an explicit BSSID is set. Also it completely ignores check_scanning_prohibited
in the current state.
This has very bad side effects for some people, because not all network cards play nice while doing a scan. For example my Broadcom BCM4352 adapter causes huge lag spikes when NetworkManager does these scans, that I cannot disable. It's okay to activate this behaviour by default, but I should be able to disable background scans by setting the BSSID like it is the case for wpa_supplicant already.