]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: allow AP_VLAN operation on crypto controlled devices
authorManikanta Pubbisetty <mpubbise@codeaurora.org>
Wed, 28 Mar 2018 13:04:19 +0000 (18:34 +0530)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 29 Mar 2018 09:35:22 +0000 (11:35 +0200)
commitbd3a0fde9feb5f4c9116e72a296bec6c928f0348
tree29260761f4478e8cb841fa9a2b841d57615afe74
parenta18142012dd70ec13db393a65485a35844e78b1c
mac80211: allow AP_VLAN operation on crypto controlled devices

In the current implementation, mac80211 advertises the support of
AP_VLANs based on the driver's support for AP mode; it also
blocks encrypted AP_VLAN operation on devices advertising
SW_CRYPTO_CONTROL.

The implementation seems weird in it's current form and could be
often confusing, this is because there can be drivers advertising
both SW_CRYPTO_CONTROL and AP mode support (ex: ath10k) in which case
AP_VLAN will still be supported but only in open BSS and not in
secured BSS.

When SW_CRYPTO_CONTROL is enabled, it makes more sense if the decision
to support AP_VLANs is left to the driver. Mac80211 can then allow
AP_VLAN operations depending on the driver support.

Signed-off-by: Manikanta Pubbisetty <mpubbise@codeaurora.org>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/key.c
net/mac80211/main.c