qcacld-3.0: Introduce wlan_dp_is_local_pkt_capture_enabled()
Introduce wlan_dp_is_local_pkt_capture_enabled API. Change-Id: I608c927301bf145bf8fd2e222c047ca20c58a72b CRs-Fixed: 3576511
This commit is contained in:

committed by
Rahul Choudhary

parent
e5d35ade60
commit
be5651b42e
@@ -73,4 +73,22 @@ void wlan_dp_set_fst_in_cmem(bool fst_in_cmem);
|
|||||||
* Return: None
|
* Return: None
|
||||||
*/
|
*/
|
||||||
void wlan_dp_set_fisa_dynamic_aggr_size_support(bool dynamic_aggr_size_support);
|
void wlan_dp_set_fisa_dynamic_aggr_size_support(bool dynamic_aggr_size_support);
|
||||||
|
|
||||||
|
#ifdef WLAN_FEATURE_LOCAL_PKT_CAPTURE
|
||||||
|
/**
|
||||||
|
* wlan_dp_is_local_pkt_capture_enabled() - Get local packet capture config
|
||||||
|
* @psoc: pointer to psoc object
|
||||||
|
*
|
||||||
|
* Return: true if local packet capture is enabled from ini
|
||||||
|
* false otherwise
|
||||||
|
*/
|
||||||
|
bool
|
||||||
|
wlan_dp_is_local_pkt_capture_enabled(struct wlan_objmgr_psoc *psoc);
|
||||||
|
#else
|
||||||
|
static inline bool
|
||||||
|
wlan_dp_is_local_pkt_capture_enabled(struct wlan_objmgr_psoc *psoc)
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
#endif /* WLAN_FEATURE_LOCAL_PKT_CAPTURE */
|
||||||
#endif
|
#endif
|
||||||
|
@@ -51,3 +51,12 @@ void wlan_dp_set_fisa_dynamic_aggr_size_support(bool dynamic_aggr_size_support)
|
|||||||
{
|
{
|
||||||
dp_set_fisa_dynamic_aggr_size_support(dynamic_aggr_size_support);
|
dp_set_fisa_dynamic_aggr_size_support(dynamic_aggr_size_support);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef WLAN_FEATURE_LOCAL_PKT_CAPTURE
|
||||||
|
bool wlan_dp_is_local_pkt_capture_enabled(struct wlan_objmgr_psoc *psoc)
|
||||||
|
{
|
||||||
|
void *soc = cds_get_context(QDF_MODULE_ID_SOC);
|
||||||
|
|
||||||
|
return cdp_cfg_get(soc, cfg_dp_local_pkt_capture);
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
Reference in New Issue
Block a user