From 403bf88e741df953bd9de489da7db93c7edc2d6f Mon Sep 17 00:00:00 2001 From: Swarn Singh Date: Tue, 18 Aug 2020 13:25:06 +0530 Subject: [PATCH] qcacld-3.0: Define vendor command policy get_logger_set_policy This change adds support to define vendor command policy for QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET. Change-Id: Ifef5a6c3518b58061928c493ede6511405a228e4 CRs-Fixed: 2758928 --- core/hdd/src/wlan_hdd_cfg80211.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/core/hdd/src/wlan_hdd_cfg80211.c b/core/hdd/src/wlan_hdd_cfg80211.c index e349d0dd0172..40f599e1b970 100644 --- a/core/hdd/src/wlan_hdd_cfg80211.c +++ b/core/hdd/src/wlan_hdd_cfg80211.c @@ -6260,6 +6260,11 @@ wlan_hdd_cfg80211_get_wifi_info(struct wiphy *wiphy, return errno; } +const struct nla_policy get_logger_set_policy[ + QCA_WLAN_VENDOR_ATTR_LOGGER_MAX + 1] = { + [QCA_WLAN_VENDOR_ATTR_LOGGER_SUPPORTED] = {.type = NLA_U32}, +}; + /** * __wlan_hdd_cfg80211_get_logger_supp_feature() - Get the wifi logger features * @wiphy: pointer to wireless wiphy structure. @@ -15201,7 +15206,8 @@ const struct wiphy_vendor_command hdd_wiphy_vendor_commands[] = { .flags = WIPHY_VENDOR_CMD_NEED_WDEV | WIPHY_VENDOR_CMD_NEED_NETDEV, .doit = wlan_hdd_cfg80211_get_logger_supp_feature, - vendor_command_policy(VENDOR_CMD_RAW_DATA, 0) + vendor_command_policy(get_logger_set_policy, + QCA_WLAN_VENDOR_ATTR_LOGGER_MAX) }, FEATURE_TRIGGER_SCAN_VENDOR_COMMANDS