cfg80211: Add support to configure SAE PWE value to drivers
authorRohan Dutta <drohan@codeaurora.org>
Tue, 27 Oct 2020 10:09:10 +0000 (12:09 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 6 Nov 2020 09:00:04 +0000 (10:00 +0100)
commit9f0ffa418483938d25a15f6ad3891389f333bc59
treeb691febda38410cd06e1c740d9953f852e6ee08a
parent8280c07e0762ba753876c427584a792e86f3f7e7
cfg80211: Add support to configure SAE PWE value to drivers

Add support to configure SAE PWE preference from userspace to drivers in
both AP and STA modes. This is needed for cases where the driver takes
care of Authentication frame processing (SME in the driver) so that
correct enforcement of the acceptable PWE derivation mechanism can be
performed.

The userspace applications can pass the sae_pwe value using the
NL80211_ATTR_SAE_PWE attribute in the NL80211_CMD_CONNECT and
NL80211_CMD_START_AP commands to the driver. This allows selection
between the hunting-and-pecking loop and hash-to-element options for PWE
derivation. For backwards compatibility, this new attribute is optional
and if not included, the driver is notified of the value being
unspecified.

Signed-off-by: Rohan Dutta <drohan@codeaurora.org>
Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
Link: https://lore.kernel.org/r/20201027100910.22283-1-jouni@codeaurora.org
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
include/net/cfg80211.h
include/uapi/linux/nl80211.h
net/wireless/nl80211.c