diff --git a/dp/wifi3.0/be/mlo/dp_mlo.c b/dp/wifi3.0/be/mlo/dp_mlo.c index 9b9afdce59..268097fbad 100644 --- a/dp/wifi3.0/be/mlo/dp_mlo.c +++ b/dp/wifi3.0/be/mlo/dp_mlo.c @@ -408,7 +408,8 @@ void dp_mlo_partner_chips_map(struct dp_soc *soc, { struct dp_soc_be *be_soc = dp_get_be_soc_from_dp_soc(soc); struct dp_mlo_ctxt *mlo_ctxt = be_soc->ml_ctxt; - bool is_ml_peer_id = peer_id & HTT_RX_PEER_META_DATA_V1_ML_PEER_VALID_S; + bool is_ml_peer_id = + HTT_RX_PEER_META_DATA_V1_ML_PEER_VALID_GET(peer_id); uint8_t chip_id; struct dp_soc *temp_soc; @@ -442,7 +443,8 @@ void dp_mlo_partner_chips_unmap(struct dp_soc *soc, { struct dp_soc_be *be_soc = dp_get_be_soc_from_dp_soc(soc); struct dp_mlo_ctxt *mlo_ctxt = be_soc->ml_ctxt; - bool is_ml_peer_id = peer_id & HTT_RX_PEER_META_DATA_V1_ML_PEER_VALID_S; + bool is_ml_peer_id = + HTT_RX_PEER_META_DATA_V1_ML_PEER_VALID_GET(peer_id); uint8_t chip_id; struct dp_soc *temp_soc; diff --git a/dp/wifi3.0/dp_peer.c b/dp/wifi3.0/dp_peer.c index 28ba8d0f16..78b6f86d02 100644 --- a/dp/wifi3.0/dp_peer.c +++ b/dp/wifi3.0/dp_peer.c @@ -731,6 +731,7 @@ void dp_peer_find_id_to_obj_add(struct dp_soc *soc, /* Peer map event came for peer_id which * is already mapped, this is not expected */ + dp_peer_unref_delete(peer, DP_MOD_ID_CONFIG); QDF_ASSERT(0); } qdf_spin_unlock_bh(&soc->peer_map_lock);