qcacld-3.0: Add a new ini item gEnableIcmpOffload

Add new ini item gEnableIcmpOffload to enable/disable
ICMP offload to firmware.

Change-Id: I107aeec4c75ae18fbe37d373e48339a5b76797aa
CRs-Fixed: 3025650
This commit is contained in:
Aditya Kodukula
2021-08-30 13:11:33 -07:00
committed by Madan Koyyalamudi
parent 4c9843245e
commit 4d93a28a54
3 changed files with 26 additions and 1 deletions

View File

@@ -593,6 +593,25 @@
0, \
"disconnect sap tdls in wow")
/*
* <ini>
* gEnableIcmpOffload - Enable/disable ICMP offload
* @Min: 0
* @Max: 1
* @Default: 0
*
* This ini is used to enable/disable firmware's capability of sending ICMP
* response to clients.
*
* Usage: External
*
* </ini>
*/
#define CFG_ENABLE_ICMP_OFFLOAD CFG_INI_BOOL( \
"gEnableIcmpOffload", \
0, \
"enable/disable ICMP offload")
#define CFG_PMO_COMMON_ALL \
CFG(CFG_ENABLE_SAP_SUSPEND) \
CFG(CFG_PMO_ENABLE_HOST_ARPOFFLOAD) \
@@ -617,6 +636,7 @@
CFG(CFG_ENABLE_BUS_SUSPEND_IN_GO_MODE)\
CFG(CFG_DISCONNECT_SAP_TDLS_IN_WOW) \
CFG(CFG_ENABLE_DYNAMIC_PCIE_GEN_SPEED_SWITCH) \
CFG(CFG_IGMP_VERSION_SUPPORT)
CFG(CFG_IGMP_VERSION_SUPPORT) \
CFG(CFG_ENABLE_ICMP_OFFLOAD)
#endif /* WLAN_PMO_COMMON_CFG_H__ */

View File

@@ -349,6 +349,8 @@ enum pmo_gpio_wakeup_mode {
* @igmp_version_support: igmp version support
* @igmp_offload_enable: enable/disable igmp offload feature to fw
* @disconnect_sap_tdls_in_wow: sap/p2p_go disconnect or teardown tdls link
* @is_icmp_offload_enable: true if icmp offload is supported
* for psoc else false
*/
struct pmo_psoc_cfg {
bool ptrn_match_enable_all_vdev;
@@ -427,6 +429,7 @@ struct pmo_psoc_cfg {
bool igmp_offload_enable;
#endif
bool disconnect_sap_tdls_in_wow;
bool is_icmp_offload_enable;
};
/**