diff --git a/umac/scan/dispatcher/inc/wlan_scan_cfg.h b/umac/scan/dispatcher/inc/wlan_scan_cfg.h index 207bd5171349..e262acd5d685 100644 --- a/umac/scan/dispatcher/inc/wlan_scan_cfg.h +++ b/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 + */ + +/* + * + * 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 + * + * + */ +#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") + +/* + * + * 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 + * + * + */ +#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