[RAMEN9610-10873][Common][9610] wlbt: Scheduled Scan Changes for Kernel 4.14.
authorMohit Ghuley <mohit.ghuley@samsung.com>
Wed, 9 Jan 2019 14:41:49 +0000 (20:11 +0530)
committerhskang <hs1218.kang@samsung.com>
Tue, 15 Jan 2019 06:27:46 +0000 (15:27 +0900)
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 <mohit.ghuley@samsung.com>
drivers/net/wireless/scsc/cfg80211_ops.c

index c5fb10ae93b4d88ec84ef1cdc2692aa2a5af6ad6..d49849dbefa815cc45bf6bc3dfeb77d4af96ad81 100755 (executable)
@@ -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;