mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-11-10 20:48:12 +00:00
wifi: mac80211: add an option to filter out a channel in combinations check
Sometimes, ieee80211_check_combinations fails, but it is hard to know why exactly. We will have to return an array of reasons, one per combination. In cases where we want to check if it failed because there are not enough chanctxs (and maybe remove one if needed), we can just not fill in that chanctx(s) in iface_combination_params::num_different_channels in ieee80211_fill_ifcomb_params, so that chanctx(s) won't be taken into account. To allow that, add an option to pass a callback to ieee80211_fill_ifcomb_params. This callback will be called for each chanctx we consider to count in num_different_channels and will return whether or not this chanctx should be skipped and not counted. This mechanism will be used later. Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com> Link: https://patch.msgid.link/20260527224745.0042232f996e.I5d323125e34f3b253510e85ceb7a770d59f689fb@changeid Signed-off-by: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:
parent
847f7ead7b
commit
8facc23dc2
2 changed files with 51 additions and 17 deletions
Loading…
Add table
Add a link
Reference in a new issue