qcacmn: Add support for local pkt capture cfg ini

Add support for local pkt capture cfg ini.

Change-Id: I7b7e50010d71482d97de46d87ed2c70c78e74cd2
CRs-Fixed: 3415783
This commit is contained in:
Srinivas Girigowda
2023-01-30 18:21:18 -08:00
committed by Madan Koyyalamudi
父節點 0419d28f6e
當前提交 9de0de3f01
共有 5 個文件被更改,包括 66 次插入2 次删除

查看文件

@@ -338,6 +338,7 @@ struct wlan_srng_cfg {
* based ILP feature is enabled
* @pointer_timer_threshold_rx: RX REO2SW ring pointer update timer threshold
* @pointer_num_threshold_rx: RX REO2SW ring pointer update entries threshold
* @local_pkt_capture: flag indicating enable/disable of local packet capture
*/
struct wlan_cfg_dp_soc_ctxt {
int num_int_ctxts;
@@ -537,6 +538,9 @@ struct wlan_cfg_dp_soc_ctxt {
#endif
uint16_t pointer_timer_threshold_rx;
uint8_t pointer_num_threshold_rx;
#ifdef WLAN_FEATURE_LOCAL_PKT_CAPTURE
bool local_pkt_capture;
#endif
};
/**
@@ -2502,4 +2506,17 @@ wlan_cfg_get_pointer_timer_threshold_rx(struct wlan_cfg_dp_soc_ctxt *cfg);
uint8_t
wlan_cfg_get_pointer_num_threshold_rx(struct wlan_cfg_dp_soc_ctxt *cfg);
#ifdef WLAN_FEATURE_LOCAL_PKT_CAPTURE
static inline
bool wlan_cfg_get_local_pkt_capture(struct wlan_cfg_dp_soc_ctxt *cfg)
{
return cfg->local_pkt_capture;
}
#else
static inline
bool wlan_cfg_get_local_pkt_capture(struct wlan_cfg_dp_soc_ctxt *cfg)
{
return false;
}
#endif
#endif /*__WLAN_CFG_H*/