From dbe7f6da772c4de7791ca6b5d4d42b38f1fa345e Mon Sep 17 00:00:00 2001 From: Veerendranath Jakkam Date: Fri, 21 Dec 2018 15:44:25 +0530 Subject: [PATCH] Vendor command to query the supported AKMs from the driver This new QCA vendor command is used to query the supported AKM suite selectors from the driver. There has been no such capability indication from the driver and thus the current user space has to assume the driver to support all the AKMs. This may be the case with some drivers (e.g., mac80211-based ones) but there are cfg80211-based drivers that implement SME and have constraints on which AKMs can be supported (e.g., such drivers may need an update to support SAE AKM using NL80211_CMD_EXTERNAL_AUTH). Allow such drivers to specify the exact set of supported AKMs so that user space tools can determine what network profile options should be allowed to be configured. This command returns the list of supported AKM suite selectors in the attribute NL80211_ATTR_AKM_SUITES. Signed-off-by: Jouni Malinen --- src/common/qca-vendor.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/common/qca-vendor.h b/src/common/qca-vendor.h index 22f99cc55..543409fd1 100644 --- a/src/common/qca-vendor.h +++ b/src/common/qca-vendor.h @@ -499,6 +499,10 @@ enum qca_radiotap_vendor_ids { * * Based on the config provided, FW will boost the weight and prioritize * the traffic for that subsystem (WLAN/BT/Zigbee). + * + * @QCA_NL80211_VENDOR_SUBCMD_GET_SUPPORTED_AKMS: This command is used to query + * the supported AKM suite selectorss from the driver. It returns the list + * of supported AKMs in the attribute NL80211_ATTR_AKM_SUITES. */ enum qca_nl80211_vendor_subcmds { QCA_NL80211_VENDOR_SUBCMD_UNSPEC = 0, @@ -663,6 +667,7 @@ enum qca_nl80211_vendor_subcmds { QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG = 173, QCA_NL80211_VENDOR_SUBCMD_THROUGHPUT_CHANGE_EVENT = 174, QCA_NL80211_VENDOR_SUBCMD_COEX_CONFIG = 175, + QCA_NL80211_VENDOR_SUBCMD_GET_SUPPORTED_AKMS = 176, }; enum qca_wlan_vendor_attr {