浏览代码

qcacmn: Relocate schedule scan plan parameters

Relocate schedule scan plan parameters to scan component.

Change-Id: Ia882a341fa569540582dcd6691217c7af9b528f8
CRs-Fixed: 2324159
Dundi Raviteja 6 年之前
父节点
当前提交
818801ab85
共有 1 个文件被更改,包括 63 次插入2 次删除
  1. 63 2
      umac/scan/dispatcher/inc/wlan_scan_cfg.h

+ 63 - 2
umac/scan/dispatcher/inc/wlan_scan_cfg.h

@@ -206,6 +206,67 @@
 			CFG_VALUE_OR_DEFAULT, \
 			"Set priority for connection with bssid_hint")
 
+#ifdef FEATURE_WLAN_SCAN_PNO
+/*
+ * These scan PNO ini params are used only once by HDD to store the
+ * values in wiphy structure
+ */
+
+/*
+ * <ini>
+ * g_max_sched_scan_plan_iterations - pno sched max scan plan iterations.
+ * @Min: 1
+ * @Max: 100
+ * @Default: 10
+ *
+ * This ini is used to set max sched scan plan iterations for pno scan
+ * (value in seconds).
+ *
+ * Related: gPNOScanSupport
+ *
+ * Supported Feature: PNO scan
+ *
+ * Usage: External
+ *
+ * </ini>
+ */
+#define CFG_MAX_SCHED_SCAN_PLAN_ITERATIONS CFG_INI_UINT( \
+			"g_max_sched_scan_plan_iterations", \
+			1, 100, 10, \
+			CFG_VALUE_OR_DEFAULT, \
+			"Max sched scan plan iterations")
+
+/*
+ * <ini>
+ * g_max_sched_scan_plan_int - pno sched max scan plan interval.
+ * @Min: 1
+ * @Max: 7200
+ * @Default: 3600
+ *
+ * This ini is used to set max sched scan plan interval for pno scan
+ * (value in seconds).
+ *
+ * Related: gPNOScanSupport
+ *
+ * Supported Feature: PNO scan
+ *
+ * Usage: External
+ *
+ * </ini>
+ */
+#define CFG_MAX_SCHED_SCAN_PLAN_INTERVAL CFG_INI_UINT( \
+			"g_max_sched_scan_plan_int", \
+			1, 7200, 3600, \
+			CFG_VALUE_OR_DEFAULT, \
+			"Max sched scan plan interval")
+
+#define CFG_SCAN_PNO \
+	CFG(CFG_MAX_SCHED_SCAN_PLAN_ITERATIONS) \
+	CFG(CFG_MAX_SCHED_SCAN_PLAN_INTERVAL)
+#else
+#define CFG_SCAN_PNO
+#endif
+
 #define CFG_SCAN_ALL \
 	CFG(CFG_DROP_BCN_ON_CHANNEL_MISMATCH) \
 	CFG(CFG_ACTIVE_MAX_CHANNEL_TIME) \
@@ -214,6 +275,6 @@
 	CFG(CFG_SCAN_NUM_PROBES) \
 	CFG(CFG_SCAN_PROBE_REPEAT_TIME) \
 	CFG(CFG_ADAPTIVE_SCAN_DWELL_MODE) \
-	CFG(CFG_IS_BSSID_HINT_PRIORITY)
-
+	CFG(CFG_IS_BSSID_HINT_PRIORITY) \
+	CFG_SCAN_PNO
 #endif