mac80211: enable DFS with channel contexts
It is okay to enable DFS for channel contexts based drivers as long as no combination advertises radar detection and multi-channel operation at the same time. Signed-off-by: Michal Kazior <michal.kazior@tieto.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:

committed by
Johannes Berg

parent
408b18abf6
commit
486cf4c08f
@@ -785,13 +785,14 @@ int ieee80211_register_hw(struct ieee80211_hw *hw)
|
||||
if (local->hw.wiphy->interface_modes & BIT(NL80211_IFTYPE_WDS))
|
||||
return -EINVAL;
|
||||
|
||||
/* DFS currently not supported with channel context drivers */
|
||||
/* DFS is not supported with multi-channel combinations yet */
|
||||
for (i = 0; i < local->hw.wiphy->n_iface_combinations; i++) {
|
||||
const struct ieee80211_iface_combination *comb;
|
||||
|
||||
comb = &local->hw.wiphy->iface_combinations[i];
|
||||
|
||||
if (comb->radar_detect_widths)
|
||||
if (comb->radar_detect_widths &&
|
||||
comb->num_different_channels > 1)
|
||||
return -EINVAL;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user