From 616d1309d26f95843ca7c33ad8af7162d7459018 Mon Sep 17 00:00:00 2001 From: Jeff Johnson Date: Fri, 3 Nov 2017 09:08:26 -0700 Subject: [PATCH] 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 --- qdf/inc/qdf_types.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/qdf/inc/qdf_types.h b/qdf/inc/qdf_types.h index d462fdcc82f3..9e9f9069e806 100644 --- a/qdf/inc/qdf_types.h +++ b/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.