qcacmn: Peer id parsing changes for beryllium

Take care of the MLO peer bit indication to be
concatenated with peer_id to access the peer map
object.

Change-Id: Ia603a728101e83829a8906d1b847f42389e78ca6
CRs-Fixed: 3039326
此提交包含在:
Rakesh Pillai
2021-06-22 03:13:01 -07:00
提交者 Madan Koyyalamudi
父節點 2069fa6cdd
當前提交 57e2c01e5e
共有 17 個檔案被更改,包括 159 行新增53 行删除

查看文件

@@ -10770,10 +10770,16 @@ static QDF_STATUS dp_peer_map_attach_wifi3(struct cdp_soc_t *soc_hdl,
{
struct dp_soc *soc = (struct dp_soc *)soc_hdl;
soc->max_peers = max_peers;
soc->peer_id_shift = dp_log2_ceil(max_peers);
soc->peer_id_mask = (1 << soc->peer_id_shift) - 1;
/*
* Double the peers since we use ML indication bit
* alongwith peer_id to find peers.
*/
soc->max_peers = 1 << (soc->peer_id_shift + 1);
qdf_print ("%s max_peers %u, max_ast_index: %u\n",
__func__, max_peers, max_ast_index);
dp_info("max_peers %u, calculated max_peers %u max_ast_index: %u\n",
max_peers, soc->max_peers, max_ast_index);
wlan_cfg_set_max_ast_idx(soc->wlan_cfg_ctx, max_ast_index);
if (dp_peer_find_attach(soc))