qcacmn: Add host AST entry only if peer is found

Add change to manage host ast entry only if peer is found for the given
peer mac address.

Change-Id: I07bdb1e1b6db33b50f4e32896d2fcbb6aa87ecab
CRs-Fixed: 3472995
This commit is contained in:
Santosh Anbu
2023-04-19 11:05:19 +05:30
parent 63843ae368
commit 0ea3d84794

View File

@@ -2728,7 +2728,7 @@ dp_rx_mlo_peer_map_handler(struct dp_soc *soc, uint16_t peer_id,
* If AST offload and host AST DB is enabled, populate AST entries on
* host based on mlo peer map event from FW
*/
if (soc->ast_offload_support && soc->host_ast_db_enable) {
if (peer && soc->ast_offload_support && soc->host_ast_db_enable) {
dp_peer_host_add_map_ast(primary_soc, ml_peer_id, peer_mac_addr,
hw_peer_id, vdev_id,
ast_hash, is_wds);
@@ -2901,7 +2901,7 @@ dp_rx_peer_map_handler(struct dp_soc *soc, uint16_t peer_id,
* If AST offload and host AST DB is enabled, populate AST entries on
* host based on peer map event from FW
*/
if (soc->ast_offload_support && soc->host_ast_db_enable) {
if (peer && soc->ast_offload_support && soc->host_ast_db_enable) {
dp_peer_host_add_map_ast(soc, peer_id, peer_mac_addr,
hw_peer_id, vdev_id,
ast_hash, is_wds);