wifi: cfg80211: Increase akm_suites array size in cfg80211_crypto_settings
authorVeerendranath Jakkam <quic_vjakkam@quicinc.com>
Mon, 23 May 2022 13:25:58 +0000 (18:55 +0530)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 1 Jul 2022 10:07:08 +0000 (12:07 +0200)
commitecad3b0b99bff7247a11f8c7cb19ac9b0cb28b09
tree61a0956b6563fb2f8ceaeb9706de939a7403f9a4
parentd6f671c8a339d5b655acfacb8be6918c744fbabf
wifi: cfg80211: Increase akm_suites array size in cfg80211_crypto_settings

Increase akm_suites array size in struct cfg80211_crypto_settings to 10
and advertise the capability to userspace. This allows userspace to send
more than two AKMs to driver in netlink commands such as
NL80211_CMD_CONNECT.

This capability is needed for implementing WPA3-Personal transition mode
correctly with any driver that handles roaming internally. Currently,
the possible AKMs for multi-AKM connect can include PSK, PSK-SHA-256,
SAE, FT-PSK and FT-SAE. Since the count is already 5, increasing
the akm_suites array size to 10 should be reasonable for future
usecases.

Signed-off-by: Veerendranath Jakkam <quic_vjakkam@quicinc.com>
Link: https://lore.kernel.org/r/1653312358-12321-1-git-send-email-quic_vjakkam@quicinc.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/quantenna/qtnfmac/commands.c
include/net/cfg80211.h
include/uapi/linux/nl80211.h
net/wireless/core.c
net/wireless/nl80211.c