summaryrefslogtreecommitdiffstats
path: root/net/wireless/util.c
diff options
context:
space:
mode:
authorLuciano Coelho <luciano.coelho@intel.com>2014-02-13 04:31:59 -0500
committerJohannes Berg <johannes.berg@intel.com>2014-04-09 04:55:43 -0400
commit73de86a38962b18edad3205c2358599dd9c83e9f (patch)
treecaf27b6e5000427c940a07d325d1210417ba87ad /net/wireless/util.c
parent2beb6dab2d799ee8934cb0801845e551ad8c70f2 (diff)
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>
Diffstat (limited to 'net/wireless/util.c')
-rw-r--r--net/wireless/util.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/net/wireless/util.c b/net/wireless/util.c
index 46f404df35e3..9bfc4c621509 100644
--- a/net/wireless/util.c
+++ b/net/wireless/util.c
@@ -1375,6 +1375,11 @@ int cfg80211_can_use_iftype_chan(struct cfg80211_registered_device *rdev,
1375 1375
1376 num[iftype] = 1; 1376 num[iftype] = 1;
1377 1377
1378 /* TODO: We'll probably not need this anymore, since this
1379 * should only be called with CHAN_MODE_UNDEFINED. There are
1380 * still a couple of pending calls where other chanmodes are
1381 * used, but we should get rid of them.
1382 */
1378 switch (chanmode) { 1383 switch (chanmode) {
1379 case CHAN_MODE_UNDEFINED: 1384 case CHAN_MODE_UNDEFINED:
1380 break; 1385 break;