qcacmn: add API to get ast entry from peer ast list
We are adding AST entry to ast_table from dp_rx_mcast_echo_check in STA mode as in STA mode we will not get the peer map event. Find AST entry from the peer ast list to get ast entry added in host for that particular peer. As in QWRAP mode there can exist multiple peers with same mac address and corresponding AST entries will be added Change-Id: Ia75f88c03c4d0eba0edbebf8e8f40d41396543d5 CRs-fixed: 2307540
This commit is contained in:

کامیت شده توسط
nshrivas

والد
a06a063b7d
کامیت
7c8cf12b76
@@ -127,16 +127,18 @@ static inline bool dp_rx_mcast_echo_check(struct dp_soc *soc,
|
||||
* ast is not in ast_table, we use the below API to get
|
||||
* AST entry for STA's own mac_address.
|
||||
*/
|
||||
ase = dp_peer_ast_hash_find(soc,
|
||||
&data[DP_MAC_ADDR_LEN]);
|
||||
|
||||
ase = dp_peer_ast_list_find(soc, peer,
|
||||
&data[DP_MAC_ADDR_LEN]);
|
||||
if (ase) {
|
||||
ase->ast_idx = sa_idx;
|
||||
soc->ast_table[sa_idx] = ase;
|
||||
}
|
||||
}
|
||||
} else
|
||||
ase = dp_peer_ast_hash_find(soc, &data[DP_MAC_ADDR_LEN]);
|
||||
|
||||
if (ase) {
|
||||
ase->ast_idx = sa_idx;
|
||||
soc->ast_table[sa_idx] = ase;
|
||||
|
||||
if (ase->pdev_id != vdev->pdev->pdev_id) {
|
||||
qdf_spin_unlock_bh(&soc->ast_lock);
|
||||
|
مرجع در شماره جدید
Block a user