diff mbox series

[09/10] wiphy: constrain scan set by disabled frequencies

Message ID 20220726170920.15929-9-prestwoj@gmail.com (mailing list archive)
State Not Applicable, archived
Headers show
Series [01/10] manager: unregister nl80211 config watch | expand

Checks

Context Check Description
tedd_an/pre-ci_am success Success
prestwoj/iwd-ci-gitlint success GitLint

Commit Message

James Prestwood July 26, 2022, 5:09 p.m. UTC
With the addition of disabled_freqs, wiphy_constrain_freq_set needs
to also remove any frequencies which are disabled.
---
 src/wiphy.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/src/wiphy.c b/src/wiphy.c
index 5329e8e4..30653b91 100644
--- a/src/wiphy.c
+++ b/src/wiphy.c
@@ -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. */