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
This commit is contained in:
wadesong 2017-02-07 16:03:25 +08:00 • committed by qcabuildsw
commit a75734cd32

View file

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