rtlwifi: rtl8821ae: Fix typo in symbol for bandwidth numbers
authorLarry Finger <Larry.Finger@lwfinger.net>
Fri, 3 Feb 2017 17:35:15 +0000 (11:35 -0600)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 7 Feb 2017 08:04:36 +0000 (10:04 +0200)
In several places, "BANDWITH" is used when "BANDWIDTH" should have been
used.

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Cc: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c
drivers/net/wireless/realtek/rtlwifi/wifi.h

index c60f07aa4acf5fd96f3eb7adc2e5a3e04327e02f..8da874cbec1a19353877f5cdf4855050f333bbc6 100644 (file)
@@ -988,7 +988,7 @@ static void _rtl8812ae_phy_cross_reference_ht_and_vht_txpower_limit(struct ieee8
        s8 temp_pwrlmt = 0;
 
        for (regulation = 0; regulation < MAX_REGULATION_NUM; ++regulation) {
-               for (bw = 0; bw < MAX_5G_BANDWITH_NUM; ++bw) {
+               for (bw = 0; bw < MAX_5G_BANDWIDTH_NUM; ++bw) {
                        for (channel = 0; channel < CHANNEL_MAX_NUMBER_5G; ++channel) {
                                for (rate_section = 0; rate_section < MAX_RATE_SECTION_NUM; ++rate_section) {
                                        temp_pwrlmt = rtlphy->txpwr_limit_5g[regulation]
@@ -1163,7 +1163,7 @@ static void _rtl8812ae_phy_convert_txpower_limit_to_power_index(struct ieee80211
        _rtl8812ae_phy_cross_reference_ht_and_vht_txpower_limit(hw);
 
        for (regulation = 0; regulation < MAX_REGULATION_NUM; ++regulation) {
-               for (bw = 0; bw < MAX_2_4G_BANDWITH_NUM; ++bw) {
+               for (bw = 0; bw < MAX_2_4G_BANDWIDTH_NUM; ++bw) {
                        for (channel = 0; channel < CHANNEL_MAX_NUMBER_2G; ++channel) {
                                for (rate_section = 0; rate_section < MAX_RATE_SECTION_NUM; ++rate_section) {
                                        /* obtain the base dBm values in 2.4G band
@@ -1219,7 +1219,7 @@ static void _rtl8812ae_phy_convert_txpower_limit_to_power_index(struct ieee80211
                }
        }
        for (regulation = 0; regulation < MAX_REGULATION_NUM; ++regulation) {
-               for (bw = 0; bw < MAX_5G_BANDWITH_NUM; ++bw) {
+               for (bw = 0; bw < MAX_5G_BANDWIDTH_NUM; ++bw) {
                        for (channel = 0; channel < CHANNEL_MAX_NUMBER_5G; ++channel) {
                                for (rate_section = 0; rate_section < MAX_RATE_SECTION_NUM; ++rate_section) {
                                        /* obtain the base dBm values in 5G band
@@ -1296,7 +1296,7 @@ static void _rtl8821ae_phy_init_txpower_limit(struct ieee80211_hw *hw)
                 "=====> _rtl8821ae_phy_init_txpower_limit()!\n");
 
        for (i = 0; i < MAX_REGULATION_NUM; ++i) {
-               for (j = 0; j < MAX_2_4G_BANDWITH_NUM; ++j)
+               for (j = 0; j < MAX_2_4G_BANDWIDTH_NUM; ++j)
                        for (k = 0; k < MAX_RATE_SECTION_NUM; ++k)
                                for (m = 0; m < CHANNEL_MAX_NUMBER_2G; ++m)
                                        for (l = 0; l < MAX_RF_PATH_NUM; ++l)
@@ -1305,7 +1305,7 @@ static void _rtl8821ae_phy_init_txpower_limit(struct ieee80211_hw *hw)
                                                        = MAX_POWER_INDEX;
        }
        for (i = 0; i < MAX_REGULATION_NUM; ++i) {
-               for (j = 0; j < MAX_5G_BANDWITH_NUM; ++j)
+               for (j = 0; j < MAX_5G_BANDWIDTH_NUM; ++j)
                        for (k = 0; k < MAX_RATE_SECTION_NUM; ++k)
                                for (m = 0; m < CHANNEL_MAX_NUMBER_5G; ++m)
                                        for (l = 0; l < MAX_RF_PATH_NUM; ++l)
index e6be5641d4da25b70ffadde357b58630f74faa9f..71f766093294c2c9e002fa4539cb4f99aa648c76 100644 (file)
@@ -157,8 +157,8 @@ enum rtl8192c_h2c_cmd {
 #define MAX_REGULATION_NUM             4
 #define MAX_RF_PATH_NUM                        4
 #define MAX_RATE_SECTION_NUM           6
-#define MAX_2_4G_BANDWITH_NUM          4
-#define MAX_5G_BANDWITH_NUM            4
+#define MAX_2_4G_BANDWIDTH_NUM         4
+#define MAX_5G_BANDWIDTH_NUM           4
 #define        MAX_RF_PATH                     4
 #define        MAX_CHNL_GROUP_24G              6
 #define        MAX_CHNL_GROUP_5G               14
@@ -1265,12 +1265,12 @@ struct rtl_phy {
        u8 cur_bw40_txpwridx;
 
        s8 txpwr_limit_2_4g[MAX_REGULATION_NUM]
-                          [MAX_2_4G_BANDWITH_NUM]
+                          [MAX_2_4G_BANDWIDTH_NUM]
                           [MAX_RATE_SECTION_NUM]
                           [CHANNEL_MAX_NUMBER_2G]
                           [MAX_RF_PATH_NUM];
        s8 txpwr_limit_5g[MAX_REGULATION_NUM]
-                        [MAX_5G_BANDWITH_NUM]
+                        [MAX_5G_BANDWIDTH_NUM]
                         [MAX_RATE_SECTION_NUM]
                         [CHANNEL_MAX_NUMBER_5G]
                         [MAX_RF_PATH_NUM];