]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: adjust reserved chan_ctx when assigned to vif
authorAndrei Otcheretianski <andrei.otcheretianski@intel.com>
Wed, 6 May 2015 15:30:50 +0000 (18:30 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 7 May 2015 12:24:52 +0000 (14:24 +0200)
commitd0fd53120067c7b87dcbf3449b4e7a91410c6fcb
tree73fb8d64eb6b565348b6b98b8475c58fb8494bf0
parentd206c2f64de671087311d2614ba5d2186a3082c3
mac80211: adjust reserved chan_ctx when assigned to vif

When a vif starts using a reserved channel context (during CSA, for example)
the required chandef was recalculated, however it was never applied.
This could result in using chanctx with narrower width than actually
required. Fix this by calling ieee80211_change_chanctx with the recalculated
chandef. This both changes the chanctx's width and recalcs min_def.

Signed-off-by: Andrei Otcheretianski <andrei.otcheretianski@intel.com>
Reviewed-by: Luciano Coelho <luciano.coelho@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/chan.c