[PATCH v2 1/6] Change name of rates table

Olof Johansson dev at skyshaper.net
Fri Jun 14 02:36:38 EDT 2013


Change the name of the rates table to something more appropriate.
llb and lla (yes.. lowercase L) are not that descriptive, especially
since lla was used for 2.4GHz action as well.

Signed-off-by: Olof Johansson <dev at skyshaper.net>
---
 hal.h  |  8 ++++----
 main.c | 26 +++++++++++++-------------
 2 files changed, 17 insertions(+), 17 deletions(-)

diff --git a/hal.h b/hal.h
index 087914d..19fe831 100644
--- a/hal.h
+++ b/hal.h
@@ -454,10 +454,10 @@ enum sta_rate_mode {
 };

 /* 1,2,5.5,11 */
-#define WCN36XX_HAL_NUM_11B_RATES           4
+#define WCN36XX_HAL_NUM_DSSS_RATES           4

 /* 6,9,12,18,24,36,48,54 */
-#define WCN36XX_HAL_NUM_11A_RATES           8
+#define WCN36XX_HAL_NUM_OFDM_RATES           8

 /* 72,96,108 */
 #define WCN36XX_HAL_NUM_POLARIS_RATES       3
@@ -1026,8 +1026,8 @@ struct wcn36xx_hal_supported_rates {

 	/* 11b, 11a and aniLegacyRates are IE rates which gives rate in
 	 * unit of 500Kbps */
-	u16 llb_rates[WCN36XX_HAL_NUM_11B_RATES];
-	u16 lla_rates[WCN36XX_HAL_NUM_11A_RATES];
+	u16 dsss_rates[WCN36XX_HAL_NUM_DSSS_RATES];
+	u16 ofdm_rates[WCN36XX_HAL_NUM_OFDM_RATES];
 	u16 legacy_rates[WCN36XX_HAL_NUM_POLARIS_RATES];
 	u16 reserved;

diff --git a/main.c b/main.c
index b685371..e4eb7a4 100644
--- a/main.c
+++ b/main.c
@@ -780,19 +780,19 @@ static int __init wcn36xx_init(void)

 	/* Configuring supported rates */
 	wcn->supported_rates.op_rate_mode = STA_11n;
-	wcn->supported_rates.llb_rates[0] = 0x82;
-	wcn->supported_rates.llb_rates[1] = 0x84;
-	wcn->supported_rates.llb_rates[2] = 0x8b;
-	wcn->supported_rates.llb_rates[3] = 0x96;
-
-	wcn->supported_rates.lla_rates[0] = 0x0C;
-	wcn->supported_rates.lla_rates[1] = 0x12;
-	wcn->supported_rates.lla_rates[2] = 0x18;
-	wcn->supported_rates.lla_rates[3] = 0x24;
-	wcn->supported_rates.lla_rates[4] = 0x30;
-	wcn->supported_rates.lla_rates[5] = 0x48;
-	wcn->supported_rates.lla_rates[6] = 0x60;
-	wcn->supported_rates.lla_rates[7] = 0x6C;
+	wcn->supported_rates.dsss_rates[0] = 0x82;
+	wcn->supported_rates.dsss_rates[1] = 0x84;
+	wcn->supported_rates.dsss_rates[2] = 0x8b;
+	wcn->supported_rates.dsss_rates[3] = 0x96;
+
+	wcn->supported_rates.ofdm_rates[0] = 0x0C;
+	wcn->supported_rates.ofdm_rates[1] = 0x12;
+	wcn->supported_rates.ofdm_rates[2] = 0x18;
+	wcn->supported_rates.ofdm_rates[3] = 0x24;
+	wcn->supported_rates.ofdm_rates[4] = 0x30;
+	wcn->supported_rates.ofdm_rates[5] = 0x48;
+	wcn->supported_rates.ofdm_rates[6] = 0x60;
+	wcn->supported_rates.ofdm_rates[7] = 0x6C;

 	wcn->supported_rates.supported_mcs_set[0] = 0xFF;

-- 
1.8.2.2



More information about the wcn36xx mailing list