qcacmn: A common function to get dfs_rx_ops
Instead of calling and defining the same function from different files, have a common function in a header file and call it from different files. The function retrieves the dfs rx_ops from the psoc context. Change-Id: I1c9089c2508faa9ee7a5bf6645dcf02659923bc3 CRs-Fixed: 2001106
This commit is contained in:
committed by
Sandeep Puligilla
parent
2c3ce9dbb8
commit
2e59ee0145
@@ -66,6 +66,23 @@ wlan_lmac_if_get_mgmt_txrx_rx_ops(struct wlan_objmgr_psoc *psoc)
|
||||
return &psoc->soc_cb.rx_ops.mgmt_txrx_rx_ops;
|
||||
}
|
||||
|
||||
/**
|
||||
* wlan_lmac_if_get_dfs_rx_ops() - retrieve the dfs rx_ops
|
||||
* @psoc: psoc context
|
||||
*
|
||||
* API to retrieve the dfs rx_ops from the psoc context
|
||||
*
|
||||
* Return: dfs_rx_ops pointer
|
||||
*/
|
||||
static inline struct wlan_lmac_if_dfs_rx_ops *
|
||||
wlan_lmac_if_get_dfs_rx_ops(struct wlan_objmgr_psoc *psoc)
|
||||
{
|
||||
if (!psoc)
|
||||
return NULL;
|
||||
|
||||
return &psoc->soc_cb.rx_ops.dfs_rx_ops;
|
||||
}
|
||||
|
||||
/**
|
||||
* mgmt_txrx_get_nbuf() - retrieve nbuf from mgmt desc_id
|
||||
* @psoc: psoc context
|
||||
|
||||
Reference in New Issue
Block a user