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