mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-25 17:59:25 +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:
parent
98620ecd11
commit
f2961cd63a
@ -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. */
|
||||
|
Loading…
Reference in New Issue
Block a user