diff --git a/core/hdd/inc/wlan_hdd_cfg.h b/core/hdd/inc/wlan_hdd_cfg.h index b82bf94fe4e3..bdaea0d4cbfe 100644 --- a/core/hdd/inc/wlan_hdd_cfg.h +++ b/core/hdd/inc/wlan_hdd_cfg.h @@ -14339,6 +14339,28 @@ enum hdd_external_acs_freq_band { #define CFG_OFFLOAD_NEIGHBOR_REPORT_MAX_REQ_CAP_MAX (300) #define CFG_OFFLOAD_NEIGHBOR_REPORT_MAX_REQ_CAP_DEFAULT (3) +/* + * + * wmi_wq_watchdog - Sets timeout period for wmi watchdog bite + * @Min: 0 + * @Max: 30 + * @Default: 20 + * + * This ini is used to set timeout period for wmi watchdog bite. If it is + * 0 then wmi watchdog bite is disabled. + * + * Related: None + * + * Supported Feature: STA + * + * Usage: External + * + * + */ +#define CFG_WMI_WQ_WATCHDOG "wmi_wq_watchdog" +#define CFG_WMI_WQ_WATCHDOG_MIN (0) +#define CFG_WMI_WQ_WATCHDOG_MAX (30) /* 30s */ +#define CFG_WMI_WQ_WATCHDOG_DEFAULT (20) /* 20s */ /* * Type declarations */ @@ -15249,6 +15271,7 @@ struct hdd_config { uint32_t neighbor_report_offload_per_threshold_offset; uint32_t neighbor_report_offload_cache_timeout; uint32_t neighbor_report_offload_max_req_cap; + uint16_t wmi_wq_watchdog_timeout; }; #define VAR_OFFSET(_Struct, _Var) (offsetof(_Struct, _Var)) diff --git a/core/hdd/src/wlan_hdd_cfg.c b/core/hdd/src/wlan_hdd_cfg.c index 37880d10ab88..d7a3a2d7e1b7 100644 --- a/core/hdd/src/wlan_hdd_cfg.c +++ b/core/hdd/src/wlan_hdd_cfg.c @@ -5526,6 +5526,13 @@ struct reg_table_entry g_registry_table[] = { CFG_OFFLOAD_NEIGHBOR_REPORT_MAX_REQ_CAP_DEFAULT, CFG_OFFLOAD_NEIGHBOR_REPORT_MAX_REQ_CAP_MIN, CFG_OFFLOAD_NEIGHBOR_REPORT_MAX_REQ_CAP_MAX), + + REG_VARIABLE(CFG_WMI_WQ_WATCHDOG, WLAN_PARAM_Integer, + struct hdd_config, wmi_wq_watchdog_timeout, + VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT, + CFG_WMI_WQ_WATCHDOG_DEFAULT, + CFG_WMI_WQ_WATCHDOG_MIN, + CFG_WMI_WQ_WATCHDOG_MAX), };