qcacmn: Add INI support to enabling sending ICMP to FW

Add INI support to enable the feature of sending
ICMP packets to FW at regular intervals.

Change-Id: I888bb2f65e8a497c3e6541f213def905d6dd0727
CRs-Fixed: 2813169
This commit is contained in:
Rakesh Pillai
2020-11-03 15:12:30 +05:30
committed by snandini
parent af0f724da2
commit 98f8f751dc
3 changed files with 52 additions and 1 deletions

View File

@@ -632,6 +632,8 @@ wlan_cfg_soc_attach(struct cdp_ctrl_objmgr_psoc *psoc)
cfg_get(psoc, CFG_DP_RX_RADIO_2_DEFAULT_REO);
wlan_cfg_ctx->wow_check_rx_pending_enable =
cfg_get(psoc, CFG_DP_WOW_CHECK_RX_PENDING);
wlan_cfg_ctx->send_icmp_req_to_fw =
cfg_get(psoc, CFG_DP_SEND_ICMP_REQ_TO_FW);
return wlan_cfg_ctx;
}
@@ -1481,3 +1483,10 @@ uint8_t wlan_cfg_radio2_default_reo_get(struct wlan_cfg_dp_soc_ctxt *cfg)
{
return cfg->radio2_rx_default_reo;
}
#ifdef WLAN_DP_FEATURE_SEND_ICMP_TO_FW
int wlan_cfg_send_icmp_req_to_fw(struct wlan_cfg_dp_soc_ctxt *cfg)
{
return cfg->send_icmp_req_to_fw;
}
#endif /* WLAN_DP_FEATURE_SEND_ICMP_TO_FW */