cfg80211: AP mode driver offload for FILS association crypto
authorSubrat Mishra <subratm@codeaurora.org>
Wed, 15 Sep 2021 05:52:23 +0000 (11:22 +0530)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 27 Sep 2021 11:00:51 +0000 (13:00 +0200)
commite306784a8de08868d0ecbf78dd42a0051d0e14ce
tree2f3ed9f6a7299b894d1e1bce72ee78ca7726a8f0
parentcd8793f97f5f7772bdad8338f239cb7d9446e88b
cfg80211: AP mode driver offload for FILS association crypto

Add a driver FILS crypto offload extended capability flag to indicate
that the driver running in AP mode is capable of handling encryption
and decryption of (Re)Association request and response frames.
Add a command to set FILS AAD data to driver.

This feature is supported on drivers running in AP mode only.
This extended capability is exchanged with hostapd during cfg80211
init. If the driver indicates this capability, then before sending the
Authentication response frame, hostapd sets FILS AAD data to the
driver. This allows the driver to decrypt (Re)Association Request
frame and encrypt (Re)Association Response frame. FILS Key derivation
will still be done in hostapd.

Signed-off-by: Subrat Mishra <subratm@codeaurora.org>
Link: https://lore.kernel.org/r/1631685143-13530-1-git-send-email-subratm@codeaurora.org
[fix whitespace]
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
include/net/cfg80211.h
include/uapi/linux/nl80211.h
net/wireless/nl80211.c
net/wireless/rdev-ops.h
net/wireless/trace.h