3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-22 06:29:23 +01:00

wiphy: constrain scan set by disabled frequencies

With the addition of disabled_freqs, wiphy_constrain_freq_set needs
to also remove any frequencies which are disabled.
This commit is contained in:
James Prestwood 2022-07-26 10:09:19 -07:00 committed by Denis Kenzior
parent 98620ecd11
commit f2961cd63a

View File

@ -707,6 +707,7 @@ bool wiphy_constrain_freq_set(const struct wiphy *wiphy,
struct scan_freq_set *set) struct scan_freq_set *set)
{ {
scan_freq_set_constrain(set, wiphy->supported_freqs); scan_freq_set_constrain(set, wiphy->supported_freqs);
scan_freq_set_subtract(set, wiphy->disabled_freqs);
if (!scan_freq_set_get_bands(set)) if (!scan_freq_set_get_bands(set))
/* The set is empty. */ /* The set is empty. */