]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: Honor SW_CRYPTO_CONTROL for unicast keys in AP VLAN mode
authorAlexander Wetzel <alexander@wetzel-home.de>
Sat, 9 Feb 2019 14:01:38 +0000 (15:01 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 9 Apr 2019 11:40:32 +0000 (13:40 +0200)
commitd73303ccc6e9edb97c5d8cbb91e0e787ce1ea631
treead9b92cb65b0abafe0cfc8a2f9f0c0ba4e60c8bd
parentf5c599d49f6187f0e3f60882650653a005f63a37
mac80211: Honor SW_CRYPTO_CONTROL for unicast keys in AP VLAN mode

Restore SW_CRYPTO_CONTROL operation on AP_VLAN interfaces for unicast
keys, the original override was intended to be done for group keys as
those are treated specially by mac80211 and would always have been
rejected.

Now the situation is that AP_VLAN support must be enabled by the driver
if it can support it (meaning it can support software crypto GTK TX).

Thus, also simplify the code - if we get here with AP_VLAN and non-
pairwise key, software crypto must be used (driver doesn't know about
the interface) and can be used (driver must've advertised AP_VLAN if
it also uses SW_CRYPTO_CONTROL).

Fixes: 7dcff8ac8291 ("mac80211: allow AP_VLAN operation on crypto controlled devices")
Signed-off-by: Alexander Wetzel <alexander@wetzel-home.de>
[rewrite commit message]
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/key.c