]> 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)
commit049210c54de8222f9072f77b5b938b99a908f4f7
treebd77ee2bd44e3de694aa2d0bb12e0822af48092d
parentc7dd69cea58d861648d1d15c2fa04859842af2b2
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