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
This commit is contained in:
Swarn Singh 2020-08-18 13:25:06 +05:30 • committed by snandini
commit 403bf88e74

View file

@ -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