qcacld-3.0: Modify dwell time and DBS scan based on scan request

Update wiphy with feature to modify dwell time
and DBS scan based on scan request from cfg.

Change-Id: I23498799c05a252cbc9c9f6d50b847130dd0ceac
CRs-Fixed: 2197172
This commit is contained in:
gaurank kathpalia
2018-02-27 16:42:22 +05:30
committato da nshrivas
parent 7975e57b57
commit a398d5fb2e

Vedi File

@@ -15104,6 +15104,20 @@ static void wlan_hdd_cfg80211_set_wiphy_fils_feature(struct wiphy *wiphy)
}
#endif
#if defined (CFG80211_SCAN_DBS_CONTROL_SUPPORT) || \
(LINUX_VERSION_CODE >= KERNEL_VERSION(4, 16, 0))
static void wlan_hdd_cfg80211_set_wiphy_scan_flags(struct wiphy *wiphy)
{
wiphy_ext_feature_set(wiphy, NL80211_EXT_FEATURE_LOW_SPAN_SCAN);
wiphy_ext_feature_set(wiphy, NL80211_EXT_FEATURE_LOW_POWER_SCAN);
wiphy_ext_feature_set(wiphy, NL80211_EXT_FEATURE_HIGH_ACCURACY_SCAN);
}
#else
static void wlan_hdd_cfg80211_set_wiphy_scan_flags(struct wiphy *wiphy)
{
}
#endif
#ifdef WLAN_FEATURE_SAE
/**
* wlan_hdd_cfg80211_set_wiphy_sae_feature() - Indicates support of SAE feature
@@ -15185,6 +15199,8 @@ int wlan_hdd_cfg80211_init(struct device *dev,
if (pCfg->is_fils_enabled)
wlan_hdd_cfg80211_set_wiphy_fils_feature(wiphy);
wlan_hdd_cfg80211_set_wiphy_scan_flags(wiphy);
wlan_hdd_cfg80211_set_wiphy_sae_feature(wiphy, pCfg);
hdd_config_sched_scan_plans_to_wiphy(wiphy, pCfg);