qcacmn: Initialize dp peer map memory after WMI service ready

Initialize the peer map and peer hash memory based on the config
received from target in service ready event

Change-Id: I8e1b62cd9586f5b2be7acb863a106d2486be1b35
CRs-Fixed: 2223428
This commit is contained in:
Chaithanya Garrepalli
2018-04-11 17:49:28 +05:30
کامیت شده توسط nshrivas
والد d803959826
کامیت 2f5727960b
6فایلهای تغییر یافته به همراه44 افزوده شده و 10 حذف شده

مشاهده پرونده

@@ -2060,9 +2060,6 @@ static int dp_soc_cmn_setup(struct dp_soc *soc)
if (qdf_atomic_read(&soc->cmn_init_done))
return 0;
if (dp_peer_find_attach(soc))
goto fail0;
if (dp_hw_link_desc_pool_setup(soc))
goto fail1;
@@ -2269,7 +2266,6 @@ fail1:
* Cleanup will be done as part of soc_detach, which will
* be called on pdev attach failure
*/
fail0:
return QDF_STATUS_E_FAILURE;
}
@@ -6832,6 +6828,21 @@ static QDF_STATUS dp_config_for_nac_rssi(struct cdp_vdev *vdev_handle,
}
#endif
static QDF_STATUS dp_peer_map_attach_wifi3(struct cdp_soc_t *soc_hdl,
uint32_t max_peers)
{
struct dp_soc *soc = (struct dp_soc *)soc_hdl;
soc->max_peers = max_peers;
qdf_print ("%s max_peers %u\n", __func__, max_peers);
if (dp_peer_find_attach(soc))
return QDF_STATUS_E_FAILURE;
return QDF_STATUS_SUCCESS;
}
static struct cdp_cmn_ops dp_ops_cmn = {
.txrx_soc_attach_target = dp_soc_attach_target_wifi3,
.txrx_vdev_attach = dp_vdev_attach_wifi3,
@@ -6896,6 +6907,7 @@ static struct cdp_cmn_ops dp_ops_cmn = {
.txrx_peer_reset_ast = dp_wds_reset_ast_wifi3,
.txrx_peer_reset_ast_table = dp_wds_reset_ast_table_wifi3,
.txrx_peer_flush_ast_table = dp_wds_flush_ast_table_wifi3,
.txrx_peer_map_attach = dp_peer_map_attach_wifi3,
};
static struct cdp_ctrl_ops dp_ops_ctrl = {