]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: prevent chanctx overcommit
authorMichal Kazior <michal.kazior@tieto.com>
Wed, 9 Apr 2014 13:29:24 +0000 (15:29 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 25 Apr 2014 15:08:15 +0000 (17:08 +0200)
commitd43ee91490629e13ff5d1c14d542ce518889bf8e
treebd77ee2bd44e3de694aa2d0bb12e0822af48092d
parent28085136fcd76d5d7fbf8190526b4e1dbbff1ba3
mac80211: prevent chanctx overcommit

Do not allocate more channel contexts than a
driver is capable for currently matching interface
combination.

This allows the ieee80211_vif_reserve_chanctx() to
act as a guard against breaking interface
combinations.

Signed-off-by: Michal Kazior <michal.kazior@tieto.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/chan.c