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
1 changed files with 1 additions and 0 deletions

View File

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