]> git.ipfire.org Git - thirdparty/hostap.git/commit
nl80211: Handle AKM suite selectors for AP configuration
authorJouni Malinen <jouni@codeaurora.org>
Mon, 17 Feb 2020 15:43:11 +0000 (17:43 +0200)
committerJouni Malinen <j@w1.fi>
Mon, 17 Feb 2020 15:47:34 +0000 (17:47 +0200)
commitdd74ddd0dff67c59e416bee9f764b27044a2ade5
tree691a496b0ddaae62c17cf7c5a97f3a65b49d6cc9
parent139f6deaff6546c97dbb7a943bf71ea04b76be70
nl80211: Handle AKM suite selectors for AP configuration

Previously only couple of AKM suite selectors were converted into
NL80211_ATTR_AKM_SUITES. Add rest of the AKM suites here. However, since
the current kernel interface has a very small limit
(NL80211_MAX_NR_AKM_SUITES = 2), add the attribute only when no more
than that limit entries are included. cfg80211 would reject the command
with any more entries listed.

This needs to be extended in cfg80211/nl80211 in a backwards compatible
manner, so this seems to be the best that can be done for now in user
space. Many drivers do not use this attribute, so must not reject the
configuration completely when larger number of AKM suites is configured.
Such cases may not work properly with drivers that depend on
NL80211_ATTR_AKM_SUITES value.

Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
src/drivers/driver_nl80211.c