mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-12 07:37:31 -04:00
qcacld-3.0: Add policy attribute for ll_stats_clr
According to new changes in kernel 5.4 version onwards, driver has to provide the policy for a NL command to be verified against while registering wiphy to the kernel. To accommodate these changes, add policy for the following vendor command that is being registered in the driver QCA_NL80211_VENDOR_SUBCMD_LL_STATS_CLR Change-Id: I5d29cc624021d489b641045e52d71db86cf3a09b CRs-Fixed: 2634435
This commit is contained in:
parent
b423d79dd2
commit
21363751ad
2 changed files with 16 additions and 12 deletions
|
|
@ -14445,17 +14445,6 @@ const struct wiphy_vendor_command hdd_wiphy_vendor_commands[] = {
|
|||
|
||||
FEATURE_LL_STATS_VENDOR_COMMANDS
|
||||
|
||||
#ifdef WLAN_FEATURE_LINK_LAYER_STATS
|
||||
{
|
||||
.info.vendor_id = QCA_NL80211_VENDOR_ID,
|
||||
.info.subcmd = QCA_NL80211_VENDOR_SUBCMD_LL_STATS_CLR,
|
||||
.flags = WIPHY_VENDOR_CMD_NEED_WDEV |
|
||||
WIPHY_VENDOR_CMD_NEED_NETDEV | WIPHY_VENDOR_CMD_NEED_RUNNING,
|
||||
.doit = wlan_hdd_cfg80211_ll_stats_clear
|
||||
},
|
||||
|
||||
#endif /* WLAN_FEATURE_LINK_LAYER_STATS */
|
||||
|
||||
{
|
||||
.info.vendor_id = QCA_NL80211_VENDOR_ID,
|
||||
.info.subcmd = QCA_NL80211_VENDOR_SUBCMD_GET_SUPPORTED_FEATURES,
|
||||
|
|
|
|||
|
|
@ -43,15 +43,30 @@ extern const struct nla_policy qca_wlan_vendor_ll_ext_policy[
|
|||
QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_MAX + 1];
|
||||
|
||||
#ifdef WLAN_FEATURE_LINK_LAYER_STATS
|
||||
/* QCA_NL80211_VENDOR_SUBCMD_LL_STATS_CLR */
|
||||
extern const struct nla_policy qca_wlan_vendor_ll_clr_policy[
|
||||
QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_MAX + 1];
|
||||
|
||||
/* QCA_NL80211_VENDOR_SUBCMD_LL_STATS_SET */
|
||||
extern const struct nla_policy qca_wlan_vendor_ll_set_policy[
|
||||
QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_MAX + 1];
|
||||
|
||||
/* QCA_NL80211_VENDOR_SUBCMD_NDP */
|
||||
/* QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET */
|
||||
extern const struct nla_policy qca_wlan_vendor_ll_get_policy[
|
||||
QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_MAX + 1];
|
||||
|
||||
#define FEATURE_LL_STATS_VENDOR_COMMANDS \
|
||||
{ \
|
||||
.info.vendor_id = QCA_NL80211_VENDOR_ID, \
|
||||
.info.subcmd = QCA_NL80211_VENDOR_SUBCMD_LL_STATS_CLR, \
|
||||
.flags = WIPHY_VENDOR_CMD_NEED_WDEV | \
|
||||
WIPHY_VENDOR_CMD_NEED_NETDEV | \
|
||||
WIPHY_VENDOR_CMD_NEED_RUNNING, \
|
||||
.doit = wlan_hdd_cfg80211_ll_stats_clear, \
|
||||
vendor_command_policy(qca_wlan_vendor_ll_clr_policy, \
|
||||
QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_MAX) \
|
||||
}, \
|
||||
\
|
||||
{ \
|
||||
.info.vendor_id = QCA_NL80211_VENDOR_ID, \
|
||||
.info.subcmd = QCA_NL80211_VENDOR_SUBCMD_LL_STATS_SET, \
|
||||
|
|
|
|||
Loading…
Reference in a new issue