qcacmn: Correct ml peer_id check in partner chips map
In dp_mlo_partner_chips_map API correct the ML peer_id check Change-Id: I036e725571d922a3d01f3f07e16bda755f6f966e
This commit is contained in:

committed by
Madan Koyyalamudi

parent
2a660189e5
commit
0ead24e9f6
@@ -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;
|
||||
|
||||
|
@@ -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);
|
||||
|
Reference in New Issue
Block a user