qcacmn: Handle failure in service ready event
Handle error case if unable to allocate peer map memory. Change-Id: Id11b04e6ae0714a9f09f051fc61231b758b56179 CRs-fixed: 2396533
This commit is contained in:

committed by
nshrivas

vanhempi
26c518a6f6
commit
0e2d7fc5ad
@@ -2053,17 +2053,20 @@ void cdp_if_mgmt_drain(ol_txrx_soc_handle soc,
|
||||
* @peer_map_unmap_v2: flag indicates HTT peer map v2 is enabled in FW
|
||||
*
|
||||
*
|
||||
* Return: void
|
||||
* Return: QDF_STATUS
|
||||
*/
|
||||
static inline void
|
||||
static inline QDF_STATUS
|
||||
cdp_peer_map_attach(ol_txrx_soc_handle soc, uint32_t max_peers,
|
||||
uint32_t max_ast_index, bool peer_map_unmap_v2)
|
||||
{
|
||||
if (soc && soc->ops && soc->ops->cmn_drv_ops &&
|
||||
soc->ops->cmn_drv_ops->txrx_peer_map_attach)
|
||||
soc->ops->cmn_drv_ops->txrx_peer_map_attach(soc, max_peers,
|
||||
max_ast_index,
|
||||
peer_map_unmap_v2);
|
||||
return soc->ops->cmn_drv_ops->txrx_peer_map_attach(soc,
|
||||
max_peers,
|
||||
max_ast_index,
|
||||
peer_map_unmap_v2);
|
||||
|
||||
return QDF_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Viittaa uudesa ongelmassa
Block a user