From a75734cd321c542cec013abdf3957261a70460a2 Mon Sep 17 00:00:00 2001 From: wadesong Date: Tue, 7 Feb 2017 16:03:25 +0800 Subject: [PATCH] qcacld-3.0: populate wiphy feature bits for beacon rate customizing qcacld-2.0 to qcacld-3.0 propagation Extended feature bits in wiphy structure should be populated during wlan host driver startup to support beaconing at different data rate. Currently legacy, HT and VHT rates are all supported. Change-Id: Ic03dd1feb63144dddb813e6a1133fbfa48db8315 CRs-Fixed: 1097770 --- core/hdd/src/wlan_hdd_cfg80211.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/core/hdd/src/wlan_hdd_cfg80211.c b/core/hdd/src/wlan_hdd_cfg80211.c index 6e185df30e4f..d108e8a4b850 100644 --- a/core/hdd/src/wlan_hdd_cfg80211.c +++ b/core/hdd/src/wlan_hdd_cfg80211.c @@ -10371,6 +10371,14 @@ int wlan_hdd_cfg80211_init(struct device *dev, wiphy->features |= NL80211_FEATURE_AP_MODE_CHAN_WIDTH_CHANGE; #endif wiphy->features |= NL80211_FEATURE_INACTIVITY_TIMER; + +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 8, 0)) || \ + defined(CFG80211_BEACON_TX_RATE_CUSTOM_BACKPORT) + wiphy_ext_feature_set(wiphy, NL80211_EXT_FEATURE_BEACON_RATE_LEGACY); + wiphy_ext_feature_set(wiphy, NL80211_EXT_FEATURE_BEACON_RATE_HT); + wiphy_ext_feature_set(wiphy, NL80211_EXT_FEATURE_BEACON_RATE_VHT); +#endif + hdd_add_channel_switch_support(&wiphy->flags); wiphy->max_num_csa_counters = WLAN_HDD_MAX_NUM_CSA_COUNTERS;