cfg80211/mac80211: move interface counting for combination check to mac80211
Move the counting part of the interface combination check from cfg80211 to mac80211. This is needed to simplify locking when the driver has to perform a combination check by itself (eg. with channel-switch). Signed-off-by: Luciano Coelho <luciano.coelho@intel.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:
committed by
Johannes Berg
parent
2beb6dab2d
commit
73de86a389
@@ -135,6 +135,10 @@ static int __cfg80211_join_ibss(struct cfg80211_registered_device *rdev,
|
||||
radar_detect_width = BIT(params->chandef.width);
|
||||
}
|
||||
|
||||
/* TODO: We need to check the combinations at this point, we
|
||||
* probably must move this call down to join_ibss() in
|
||||
* mac80211.
|
||||
*/
|
||||
err = cfg80211_can_use_iftype_chan(rdev, wdev, wdev->iftype,
|
||||
check_chan,
|
||||
(params->channel_fixed &&
|
||||
|
||||
Reference in New Issue
Block a user