Jelajahi Sumber

qcacmn: Use osif_pdev for peer operations

Use correct scn handle for peer operations

Change-Id: I84e8ed945ead612b2ae4adb580ad7f12ffbb8ce5
Manoj Ekbote 8 tahun lalu
induk
melakukan
1f2c0b5242
2 mengubah file dengan 4 tambahan dan 3 penghapusan
  1. 1 1
      dp/wifi3.0/dp_main.c
  2. 3 2
      dp/wifi3.0/dp_peer.c

+ 1 - 1
dp/wifi3.0/dp_main.c

@@ -1549,7 +1549,7 @@ static void dp_peer_setup_wifi3(void *vdev_hdl, void *peer_hdl)
 
 	if (soc->cdp_soc.ol_ops->peer_set_default_routing) {
 		/* TODO: Check the destination ring number to be passed to FW */
-		soc->cdp_soc.ol_ops->peer_set_default_routing(soc->osif_soc,
+		soc->cdp_soc.ol_ops->peer_set_default_routing(pdev->osif_pdev,
 			 peer->mac_addr.raw, peer->vdev->vdev_id, 0, 1);
 	}
 	return;

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

@@ -610,7 +610,8 @@ int dp_rx_tid_setup_wifi3(struct dp_peer *peer, int tid,
 		hw_qdesc_vaddr, rx_tid->hw_qdesc_paddr, hal_pn_type);
 
 	if (soc->cdp_soc.ol_ops->peer_rx_reorder_queue_setup) {
-		soc->cdp_soc.ol_ops->peer_rx_reorder_queue_setup(soc->osif_soc,
+		soc->cdp_soc.ol_ops->peer_rx_reorder_queue_setup(
+			vdev->pdev->osif_pdev,
 			peer->vdev->vdev_id, peer->mac_addr.raw,
 			rx_tid->hw_qdesc_paddr, tid, tid);
 
@@ -753,7 +754,7 @@ void dp_peer_rx_cleanup(struct dp_vdev *vdev, struct dp_peer *peer)
 	}
 #ifdef notyet /* See if FW can remove queues as part of peer cleanup */
 	if (soc->ol_ops->peer_rx_reorder_queue_remove) {
-		soc->ol_ops->peer_rx_reorder_queue_remove(soc->osif_soc,
+		soc->ol_ops->peer_rx_reorder_queue_remove(vdev->pdev->osif_pdev,
 			peer->vdev->vdev_id, peer->mac_addr.raw,
 			tid_delete_mask);
 	}