Преглед изворни кода

qcacld-3.0: Alias vdev_id to smeSessionId in pe_session

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

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

Change-Id: Idfcf3edc801b5c6937b40bb24ab1c291cb7f415e
CRs-Fixed: 2404159
Jeff Johnson пре 6 година
родитељ
комит
29737026f3
1 измењених фајлова са 11 додато и 1 уклоњено
  1. 11 1
      core/mac/src/pe/include/lim_session.h

+ 11 - 1
core/mac/src/pe/include/lim_session.h

@@ -110,11 +110,21 @@ struct obss_detection_cfg {
 	uint8_t obss_ht_20mhz_detect_mode;
 };
 
+/**
+ * struct pe_session - per-vdev PE context
+ * @available: true if the entry is available, false if it is in use
+ * @peSessionId: unique ID assigned to the entry
+ * @vdev_id: ID of the vdev for which this entry is applicable
+ * @vdev: the actual vdev for which this entry is applicable
+ */
 struct pe_session {
 	/* To check session table is in use or free */
 	uint8_t available;
 	uint16_t peSessionId;
-	uint8_t smeSessionId;
+	union {
+		uint8_t smeSessionId;
+		uint8_t vdev_id;
+	};
 	struct wlan_objmgr_vdev *vdev;
 	uint16_t transactionId;