Parcourir la source

qcacmn: Cleanup dp_register_peer [PEER_ID_PHASE1]

Cleanup dp_register_peer to be peer mac address based
from local peer id based.

Change-Id: Ifc0166b8ace5aabd7c287941476df47c806e8663
CRs-Fixed: 2503680
Rakshith Suresh Patkar il y a 5 ans
Parent
commit
9e02e1e104
1 fichiers modifiés avec 5 ajouts et 2 suppressions
  1. 5 2
      dp/wifi3.0/dp_peer.c

+ 5 - 2
dp/wifi3.0/dp_peer.c

@@ -2925,9 +2925,12 @@ QDF_STATUS dp_register_peer(struct cdp_pdev *pdev_handle,
 {
 	struct dp_peer *peer;
 	struct dp_pdev *pdev = (struct dp_pdev *)pdev_handle;
+	uint8_t peer_id;
+
+	peer = dp_find_peer_by_addr((struct cdp_pdev *)pdev,
+				    sta_desc->peer_addr.bytes,
+				    &peer_id);
 
-	peer = dp_peer_find_by_local_id((struct cdp_pdev *)pdev,
-			sta_desc->sta_id);
 	if (!peer)
 		return QDF_STATUS_E_FAULT;