From f2994c53c0d6d30673fad34c0693f3b35c812e16 Mon Sep 17 00:00:00 2001 From: Alan Chen Date: Wed, 4 Mar 2020 13:05:10 -0800 Subject: [PATCH] qcacld-3.0: Add policy attribute to INTEROP_ISSUES_AP 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 satisfy kernel 5.4 requirement add policy to following vendor command as part of this change: QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP Change-Id: I7cce1632efed4cbb3c431c449bf82ec8353b4bb2 CRs-Fixed: 2635041 --- .../inc/wlan_cfg80211_interop_issues_ap.h | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/os_if/interop_issues_ap/inc/wlan_cfg80211_interop_issues_ap.h b/os_if/interop_issues_ap/inc/wlan_cfg80211_interop_issues_ap.h index 24a7cd25c539a..bb2215e3de737 100644 --- a/os_if/interop_issues_ap/inc/wlan_cfg80211_interop_issues_ap.h +++ b/os_if/interop_issues_ap/inc/wlan_cfg80211_interop_issues_ap.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2019 The Linux Foundation. All rights reserved. + * Copyright (c) 2019-2020 The Linux Foundation. All rights reserved. * * Permission to use, copy, modify, and/or distribute this software for * any purpose with or without fee is hereby granted, provided that the @@ -28,9 +28,14 @@ #include #include #include +#include #ifdef WLAN_FEATURE_INTEROP_ISSUES_AP +extern const struct nla_policy + interop_issues_ap_policy + [QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_MAX + 1]; + #define FEATURE_INTEROP_ISSUES_AP_VENDOR_COMMANDS \ { \ .info.vendor_id = QCA_NL80211_VENDOR_ID, \ @@ -38,7 +43,9 @@ .flags = WIPHY_VENDOR_CMD_NEED_WDEV | \ WIPHY_VENDOR_CMD_NEED_NETDEV | \ WIPHY_VENDOR_CMD_NEED_RUNNING, \ - .doit = wlan_cfg80211_set_interop_issues_ap_config \ + .doit = wlan_cfg80211_set_interop_issues_ap_config, \ + vendor_command_policy(interop_issues_ap_policy, \ + QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_MAX) \ }, #define FEATURE_INTEROP_ISSUES_AP_VENDOR_COMMANDS_INDEX \