qcacmn: Update the MLO ops to include attach and detach
To handle dp_mlo_ctxt assignments from the UMAC module, moving the callers for attach and detach to the list of MLO operations for multi chip. CRs-Fixed: 3355400 Change-Id: Id743ec1086cf1b3ba0a3ec42212dc21c5a9ccc6b
This commit is contained in:

committed by
Madan Koyyalamudi

parent
e2da240791
commit
27f8943f9c
@@ -19,25 +19,40 @@
|
||||
|
||||
struct cdp_mlo_ctxt;
|
||||
|
||||
/**
|
||||
* cdp_ctrl_mlo_mgr - opaque handle for mlo manager context
|
||||
*/
|
||||
struct cdp_ctrl_mlo_mgr;
|
||||
|
||||
struct
|
||||
cdp_mlo_ctxt *dp_mlo_ctxt_attach_wifi3(struct cdp_ctrl_mlo_mgr *ctrl_ctxt);
|
||||
void dp_mlo_ctxt_detach_wifi3(struct cdp_mlo_ctxt *ml_ctxt);
|
||||
|
||||
static inline
|
||||
struct cdp_mlo_ctxt *cdp_mlo_ctxt_attach(struct cdp_ctrl_mlo_mgr *ctrl_ctxt)
|
||||
struct cdp_mlo_ctxt *cdp_mlo_ctxt_attach(ol_txrx_soc_handle soc,
|
||||
struct cdp_ctrl_mlo_mgr *ctrl_ctxt)
|
||||
{
|
||||
return dp_mlo_ctxt_attach_wifi3(ctrl_ctxt);
|
||||
if (!soc || !soc->ops) {
|
||||
QDF_BUG(0);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
if (!soc->ops->mlo_ops ||
|
||||
!soc->ops->mlo_ops->mlo_ctxt_attach)
|
||||
return NULL;
|
||||
|
||||
return soc->ops->mlo_ops->mlo_ctxt_attach(ctrl_ctxt);
|
||||
}
|
||||
|
||||
static inline
|
||||
void cdp_mlo_ctxt_detach(struct cdp_mlo_ctxt *ml_ctxt)
|
||||
void cdp_mlo_ctxt_detach(ol_txrx_soc_handle soc,
|
||||
struct cdp_mlo_ctxt *ml_ctxt)
|
||||
{
|
||||
dp_mlo_ctxt_detach_wifi3(ml_ctxt);
|
||||
if (!soc || !soc->ops) {
|
||||
QDF_BUG(0);
|
||||
return;
|
||||
}
|
||||
|
||||
if (!soc->ops->mlo_ops ||
|
||||
!soc->ops->mlo_ops->mlo_ctxt_detach)
|
||||
return;
|
||||
|
||||
soc->ops->mlo_ops->mlo_ctxt_detach(ml_ctxt);
|
||||
}
|
||||
|
||||
static inline void cdp_soc_mlo_soc_setup(ol_txrx_soc_handle soc,
|
||||
|
Reference in New Issue
Block a user