qcacld-3.0: Add policy attribute to BTC_CHAIN_MODE

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_BTC_CHAIN_MODE

Change-Id: I6c6f0757df879def054862b7da09c8d7e856ff86
CRs-Fixed: 2635056
This commit is contained in:
Alan Chen 2020-03-04 13:32:58 -08:00 committed by nshrivas
parent d3c640bcaa
commit 7ea116f3b0

View File

@ -48,14 +48,16 @@ int wlan_hdd_cfg80211_set_btc_chain_mode(struct wiphy *wiphy,
struct wireless_dev *wdev,
const void *data, int data_len);
#define FEATURE_BTC_CHAIN_MODE_COMMANDS \
{ \
.info.vendor_id = QCA_NL80211_VENDOR_ID, \
.info.subcmd = QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE,\
.flags = WIPHY_VENDOR_CMD_NEED_WDEV | \
WIPHY_VENDOR_CMD_NEED_NETDEV | \
WIPHY_VENDOR_CMD_NEED_RUNNING, \
.doit = wlan_hdd_cfg80211_set_btc_chain_mode \
#define FEATURE_BTC_CHAIN_MODE_COMMANDS \
{ \
.info.vendor_id = QCA_NL80211_VENDOR_ID, \
.info.subcmd = QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE, \
.flags = WIPHY_VENDOR_CMD_NEED_WDEV | \
WIPHY_VENDOR_CMD_NEED_NETDEV | \
WIPHY_VENDOR_CMD_NEED_RUNNING, \
.doit = wlan_hdd_cfg80211_set_btc_chain_mode, \
vendor_command_policy(btc_chain_mode_policy, \
QCA_VENDOR_ATTR_BTC_CHAIN_MODE_MAX) \
},
#else /* FEATURE_BTC_CHAIN_MODE */
static inline void