From 5753e9cc1de991d30b28fae07d8e1b29ea75ff97 Mon Sep 17 00:00:00 2001 From: Mohit Ghuley Date: Wed, 9 Jan 2019 20:11:49 +0530 Subject: [PATCH] [RAMEN9610-10873][Common][9610] wlbt: Scheduled Scan Changes for Kernel 4.14. Some new parameters have been introduced for scheduled scan on higher kernel versions. Hence for smooth functionality of scheduled scan in driver, driver needs to set and enable the newly introduced parameters as well. Change-Id: I3ee13032fbdc4325c6fb5e5feaf309ecd56ae2b7 SCSC-Bug-Id: SSB-48178 Signed-off-by: Mohit Ghuley --- drivers/net/wireless/scsc/cfg80211_ops.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/net/wireless/scsc/cfg80211_ops.c b/drivers/net/wireless/scsc/cfg80211_ops.c index c5fb10ae93b4..d49849dbefa8 100755 --- a/drivers/net/wireless/scsc/cfg80211_ops.c +++ b/drivers/net/wireless/scsc/cfg80211_ops.c @@ -3289,6 +3289,12 @@ struct slsi_dev *slsi_cfg80211_new(struct device *dev) wiphy->flags |= WIPHY_FLAG_SUPPORTS_SCHED_SCAN; #endif +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 11, 0)) + /* Parameters for Scheduled Scanning Support */ + wiphy->max_sched_scan_reqs = 1; + wiphy_ext_feature_set(wiphy, NL80211_EXT_FEATURE_SCHED_SCAN_RELATIVE_RSSI); +#endif + /* Match the maximum number of SSIDs that could be requested from wpa_supplicant */ wiphy->max_sched_scan_ssids = 16; -- 2.20.1