OSDN Git Service

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)
commitc2b90ad8800db308cdc0db9750c7c0baa07f40d0
treebd77ee2bd44e3de694aa2d0bb12e0822af48092d
parent6fa001bc7e1ccd7482f0f089fb970d65a5aca59a
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