wifi: mac80211: allow beacon protection HW offload
authorJohannes Berg <johannes.berg@intel.com>
Wed, 1 Mar 2023 10:09:17 +0000 (12:09 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 7 Mar 2023 09:30:04 +0000 (10:30 +0100)
commitd1b9bb6520fe0c295128229f5d3a9298127d5c8a
tree9defe588cc7bca27ff1bd7ef48bf551acfa4b375
parent3ffcc659dc6fa84da7db57f56fd48756c5a60fba
wifi: mac80211: allow beacon protection HW offload

In case of beacon protection, check if the key was offloaded
to the hardware and in that case set control.hw_key so that
the encryption function will see it and only do the needed
steps that aren't done in hardware.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Gregory Greenman <gregory.greenman@intel.com>
Link: https://lore.kernel.org/r/20230301115906.b2becd9a22fb.I6c0b9c50c6a481128ba912a11cb7afc92c4b6da7@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/tx.c