Revert "qcacmn: Add INI support to enabling sending ICMP to FW"

This reverts commit Change-Id: I98f8f751dc75a3d6f2296f0844529e9c72c4090b.
This INI is moved to HDD_DP.

Change-Id: I451fa50621fdc8b6cbe027bdf1495788914481c9
CRs-Fixed: 2824623
This commit is contained in:
Rakesh Pillai 2020-11-17 23:30:01 -08:00 • committed by snandini
commit 07971f4666
3 changed files with 1 additions and 52 deletions

View file

@ -1018,36 +1018,6 @@
false, \
"enable rx frame pending check in WoW mode")
#define WLAN_CFG_SEND_ALL_ICMP_REQ_TO_FW (-1)
#define WLAN_CFG_SEND_ICMP_REQ_TO_FW 0
#define WLAN_CFG_SEND_ICMP_REQ_TO_FW_MIN (-1)
#define WLAN_CFG_SEND_ICMP_REQ_TO_FW_MAX 100000
/*
* <ini>
* send_icmp_pkt_to_fw - Send ICMP Request packet to FW.
* @Min: -1
* @Max: 100000
* @Default: 0
*
* This ini is used to control DP Software to send ICMP request packets to FW
* at certain interval (in milliseconds).
* The value 0 is used to disable sending the ICMP requests to FW.
* The value -1 is used to send all ICMP requests to FW.
* Any value greater than zero indicates the time interval (in milliseconds)
* at which ICMP requests should be sent to FW.
*
* Usage: External
*
* </ini>
*/
#define CFG_DP_SEND_ICMP_REQ_TO_FW \
CFG_INI_INT("send_icmp_req_to_fw", \
WLAN_CFG_SEND_ICMP_REQ_TO_FW_MIN, \
WLAN_CFG_SEND_ICMP_REQ_TO_FW_MAX, \
WLAN_CFG_SEND_ICMP_REQ_TO_FW, \
CFG_VALUE_OR_DEFAULT, "Send ICMP Request packets to FW")
#define CFG_DP \
CFG(CFG_DP_HTT_PACKET_TYPE) \
CFG(CFG_DP_INT_BATCH_THRESHOLD_OTHER) \
@ -1135,6 +1105,5 @@
CFG(CFG_DP_SWLM_ENABLE) \
CFG(CFG_DP_TX_PER_PKT_VDEV_ID_CHECK) \
CFG(CFG_DP_RX_FST_IN_CMEM) \
CFG(CFG_DP_WOW_CHECK_RX_PENDING) \
CFG(CFG_DP_SEND_ICMP_REQ_TO_FW)
CFG(CFG_DP_WOW_CHECK_RX_PENDING)
#endif /* _CFG_DP_H_ */

View file

@ -626,8 +626,6 @@ wlan_cfg_soc_attach(struct cdp_ctrl_objmgr_psoc *psoc)
cfg_get(psoc, CFG_DP_TX_PER_PKT_VDEV_ID_CHECK);
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;
}
@ -1463,10 +1461,3 @@ bool wlan_cfg_is_swlm_enabled(struct wlan_cfg_dp_soc_ctxt *cfg)
return false;
}
#endif
#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 */

View file

@ -192,8 +192,6 @@ struct wlan_srng_cfg {
* @is_swlm_enabled: flag to enable/disable SWLM
* @tx_per_pkt_vdev_id_check: Enable tx perpkt vdev id check
* @wow_check_rx_pending_enable: Enable RX frame pending check in WoW
* @send_icmp_req_to_fw: Enable sending ICMP Request packets to FW at
* regular intervals
*/
struct wlan_cfg_dp_soc_ctxt {
int num_int_ctxts;
@ -307,7 +305,6 @@ struct wlan_cfg_dp_soc_ctxt {
bool fst_in_cmem;
bool tx_per_pkt_vdev_id_check;
bool wow_check_rx_pending_enable;
int send_icmp_req_to_fw;
};
/**
@ -1479,12 +1476,4 @@ bool wlan_cfg_is_fst_in_cmem_enabled(struct wlan_cfg_dp_soc_ctxt *cfg);
*/
bool wlan_cfg_is_swlm_enabled(struct wlan_cfg_dp_soc_ctxt *cfg);
/**
* wlan_cfg_send_icmp_req_to_fw() - Check if ICMP request packets are to be
* sent to FW or not.
* @cfg: soc configuration context
*
* Return: Value set in the ini "send_icmp_req_to_fw"
*/
int wlan_cfg_send_icmp_req_to_fw(struct wlan_cfg_dp_soc_ctxt *cfg);
#endif