Jelajahi Sumber

qcacld-3.0: Alias vdev_id to sessionId in csr_roam_session

Currently struct csr_roam_session uses the legacy term sessionId. To
align with converged naming it is desirable to change this to vdev_id,
but due to the large number of places where sessionId is used it will
be difficult to modify all occurences at once. In order to allow
changes to "trickle in" replace the sessionId field with a union that
contains both a sessionId and a vdev_id field. This will allow vdev_id
and sessionId to both be used to access the same data item.

Subsequent changes can then replace references to sessionId with
vdev_id, and then once all references have been converted, replace the
union with a single vdev_id field.

Change-Id: I67877b9a407bb07ec9f6516a765ee511c9c933e9
CRs-Fixed: 2404157
Jeff Johnson 6 tahun lalu
induk
melakukan
1ac308ab68
1 mengubah file dengan 8 tambahan dan 1 penghapusan
  1. 8 1
      core/sme/inc/csr_internal.h

+ 8 - 1
core/sme/inc/csr_internal.h

@@ -567,8 +567,15 @@ struct csr_disconnect_stats {
 	uint32_t peer_kickout;
 };
 
+/**
+ * struct csr_roam_session - CSR per-vdev context
+ * @vdev_id: ID of the vdev for which this entry is applicable
+ */
 struct csr_roam_session {
-	uint8_t sessionId;      /* Session ID */
+	union {
+		uint8_t sessionId;
+		uint8_t vdev_id;
+	};
 	bool sessionActive;     /* true if it is used */
 
 	/* For BT-AMP station, this serve as BSSID for self-BSS. */