Parcourir la source

qcacmn: Update cdp_peer_update_last_real_peer

Update function prototype to pass pointer to vdev instead of peer structure

Change-Id: I66546b7a524c9d9f90e91876333912e36b99e230
CRs-Fixed: 2407085
Rachit Kankane il y a 6 ans
Parent
commit
a52e28ea45
2 fichiers modifiés avec 4 ajouts et 4 suppressions
  1. 1 1
      dp/inc/cdp_txrx_ops.h
  2. 3 3
      dp/inc/cdp_txrx_peer_ops.h

+ 1 - 1
dp/inc/cdp_txrx_ops.h

@@ -1255,7 +1255,7 @@ struct cdp_peer_ops {
 	void (*add_last_real_peer)(struct cdp_pdev *pdev,
 		struct cdp_vdev *vdev, uint8_t *peer_id);
 	bool (*is_vdev_restore_last_peer)(void *peer);
-	void (*update_last_real_peer)(struct cdp_pdev *pdev, void *peer,
+	void (*update_last_real_peer)(struct cdp_pdev *pdev, void *vdev,
 			uint8_t *peer_id, bool restore_last_peer);
 	void (*peer_detach_force_delete)(void *peer);
 };

+ 3 - 3
dp/inc/cdp_txrx_peer_ops.h

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2016-2018 The Linux Foundation. All rights reserved.
+ * Copyright (c) 2016-2019 The Linux Foundation. All rights reserved.
  *
  * Permission to use, copy, modify, and/or distribute this software for
  * any purpose with or without fee is hereby granted, provided that the
@@ -606,7 +606,7 @@ cdp_peer_is_vdev_restore_last_peer(ol_txrx_soc_handle soc, void *peer)
  */
 static inline void
 cdp_peer_update_last_real_peer(ol_txrx_soc_handle soc, struct cdp_pdev *pdev,
-		void *peer, uint8_t *peer_id, bool restore_last_peer)
+		void *vdev, uint8_t *peer_id, bool restore_last_peer)
 {
 	if (!soc || !soc->ops || !soc->ops->peer_ops) {
 		QDF_TRACE(QDF_MODULE_ID_DP, QDF_TRACE_LEVEL_FATAL,
@@ -615,7 +615,7 @@ cdp_peer_update_last_real_peer(ol_txrx_soc_handle soc, struct cdp_pdev *pdev,
 	}
 
 	if (soc->ops->peer_ops->update_last_real_peer)
-		return soc->ops->peer_ops->update_last_real_peer(pdev, peer,
+		return soc->ops->peer_ops->update_last_real_peer(pdev, vdev,
 			peer_id, restore_last_peer);
 
 	return;