Browse Source

qcacmn: Rename enum tQDF_ADAPTER_MODE

The name tQDF_ADAPTER_MODE is a poor name on many levels:
-  The "t" prefix implies it is a typedef when it isn't.
-  The "t" prefix makes this a mixed-case identifier which is "frowned
   upon" in the Linux coding style guide.
-  The term "ADAPTER" is MCL-specific and is not suitable for
   converged code.

Therefore rename enum tQDF_ADAPTER_MODE to enum QDF_OPMODE to better
align with with the Linix coding style and the converged nomenclature.

Change-Id: I20f1b6d1a0ab4b8fe6a85cefdff96a49e2f4652c
CRs-Fixed: 2140295
Jeff Johnson 7 years ago
parent
commit
616d1309d2
1 changed files with 5 additions and 2 deletions
  1. 5 2
      qdf/inc/qdf_types.h

+ 5 - 2
qdf/inc/qdf_types.h

@@ -452,7 +452,7 @@ typedef enum {
 } QDF_TRACE_LEVEL;
 
 /**
- * enum tQDF_ADAPTER_MODE - Concurrency role.
+ * enum QDF_OPMODE - vdev operating mode
  * @QDF_STA_MODE: STA mode
  * @QDF_SAP_MODE: SAP mode
  * @QDF_P2P_CLIENT_MODE: P2P client mode
@@ -473,7 +473,7 @@ typedef enum {
  * These are generic IDs that identify the various roles
  * in the software system
  */
-enum tQDF_ADAPTER_MODE {
+enum QDF_OPMODE {
 	QDF_STA_MODE,
 	QDF_SAP_MODE,
 	QDF_P2P_CLIENT_MODE,
@@ -492,6 +492,9 @@ enum tQDF_ADAPTER_MODE {
 	QDF_MAX_NO_OF_MODE
 };
 
+/* for backward compatability with the legacy definition */
+#define tQDF_ADAPTER_MODE QDF_OPMODE
+
 /**
  * enum tQDF_GLOBAL_CON_MODE - global config mode when
  * driver is loaded.