qcacld-3.0: Add skeleton code for direct link datapath
Add skeleton code for direct link datapath in DP component. Change-Id: I1279abfe573017258b13043d779d0ddc41ee8dd2 CRs-Fixed: 3295346
此提交包含在:

提交者
Madan Koyyalamudi

父節點
8f5a6f0e39
當前提交
f263f50933
@@ -1341,4 +1341,33 @@ void *ucfg_dp_prealloc_get_consistent_mem_unaligned(qdf_size_t size,
|
||||
*/
|
||||
void ucfg_dp_prealloc_put_consistent_mem_unaligned(void *va_unaligned);
|
||||
#endif
|
||||
#endif /* _WLAN_DP_UCFGi_API_H_ */
|
||||
|
||||
#ifdef FEATURE_DIRECT_LINK
|
||||
/**
|
||||
* ucfg_dp_direct_link_init() - Initializes Direct Link datapath
|
||||
* @psoc: psoc handle
|
||||
*
|
||||
* Return: QDF status
|
||||
*/
|
||||
QDF_STATUS ucfg_dp_direct_link_init(struct wlan_objmgr_psoc *psoc);
|
||||
|
||||
/**
|
||||
* ucfg_dp_direct_link_deinit() - De-initializes Direct Link datapath
|
||||
* @psoc: psoc handle
|
||||
*
|
||||
* Return: None
|
||||
*/
|
||||
void ucfg_dp_direct_link_deinit(struct wlan_objmgr_psoc *psoc);
|
||||
#else
|
||||
static inline
|
||||
QDF_STATUS ucfg_dp_direct_link_init(struct wlan_objmgr_psoc *psoc)
|
||||
{
|
||||
return QDF_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
static inline
|
||||
void ucfg_dp_direct_link_deinit(struct wlan_objmgr_psoc *psoc)
|
||||
{
|
||||
}
|
||||
#endif
|
||||
#endif /* _WLAN_DP_UCFG_API_H_ */
|
||||
|
@@ -2325,3 +2325,29 @@ void ucfg_dp_rx_skip_fisa(uint32_t value)
|
||||
dp_rx_skip_fisa(dp_soc, value);
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef FEATURE_DIRECT_LINK
|
||||
QDF_STATUS ucfg_dp_direct_link_init(struct wlan_objmgr_psoc *psoc)
|
||||
{
|
||||
struct wlan_dp_psoc_context *dp_ctx = dp_psoc_get_priv(psoc);
|
||||
|
||||
if (!dp_ctx) {
|
||||
dp_err("DP context not found");
|
||||
return QDF_STATUS_E_FAILURE;
|
||||
}
|
||||
|
||||
return dp_direct_link_init(dp_ctx);
|
||||
}
|
||||
|
||||
void ucfg_dp_direct_link_deinit(struct wlan_objmgr_psoc *psoc)
|
||||
{
|
||||
struct wlan_dp_psoc_context *dp_ctx = dp_psoc_get_priv(psoc);
|
||||
|
||||
if (!dp_ctx) {
|
||||
dp_err("DP context not found");
|
||||
return;
|
||||
}
|
||||
|
||||
dp_direct_link_deinit(dp_ctx);
|
||||
}
|
||||
#endif
|
||||
|
新增問題並參考
封鎖使用者