summaryrefslogtreecommitdiff
path: root/drivers/net/wireless
diff options
context:
space:
mode:
authorJes Sorensen <Jes.Sorensen@redhat.com>2016-03-01 01:05:21 +0300
committerKalle Valo <kvalo@codeaurora.org>2016-03-10 16:29:13 +0300
commit21db9973303caebcbe2fde6dcc668c1aac2ed55f (patch)
treeee0d97b9585f436d3c0a691936ff631c7a8d424e /drivers/net/wireless
parent3e84f9386162878deb146a7e4f05710693f1a9c7 (diff)
downloadlinux-21db9973303caebcbe2fde6dcc668c1aac2ed55f.tar.xz
rtl8xxxu: Bump TX power arrays to handle larger channel groups
Newer generation chips have more channels groups. In order to carry the larger arrays in common structures, bump the array sizes to match. Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers/net/wireless')
-rw-r--r--drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu.h25
1 files changed, 16 insertions, 9 deletions
diff --git a/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu.h b/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu.h
index c7b4c92ea732..92768f54ce55 100644
--- a/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu.h
+++ b/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu.h
@@ -53,7 +53,9 @@
#define RTL8723A_CHANNEL_GROUPS 3
#define RTL8723A_MAX_RF_PATHS 2
+#define RTL8723B_CHANNEL_GROUPS 6
#define RTL8723B_MAX_RF_PATHS 4
+#define RTL8XXXU_MAX_CHANNEL_GROUPS 6
#define RF6052_MAX_TX_PWR 0x3f
#define EFUSE_MAP_LEN 512
@@ -1046,19 +1048,24 @@ struct rtl8xxxu_priv {
u8 mac_addr[ETH_ALEN];
char chip_name[8];
char chip_vendor[8];
- u8 cck_tx_power_index_A[3]; /* 0x10 */
- u8 cck_tx_power_index_B[3];
- u8 ht40_1s_tx_power_index_A[3]; /* 0x16 */
- u8 ht40_1s_tx_power_index_B[3];
+ u8 cck_tx_power_index_A[RTL8XXXU_MAX_CHANNEL_GROUPS];
+ u8 cck_tx_power_index_B[RTL8XXXU_MAX_CHANNEL_GROUPS];
+ u8 ht40_1s_tx_power_index_A[RTL8XXXU_MAX_CHANNEL_GROUPS];
+ u8 ht40_1s_tx_power_index_B[RTL8XXXU_MAX_CHANNEL_GROUPS];
/*
* The following entries are half-bytes split as:
* bits 0-3: path A, bits 4-7: path B, all values 4 bits signed
*/
- struct rtl8723au_idx ht40_2s_tx_power_index_diff[3];
- struct rtl8723au_idx ht20_tx_power_index_diff[3];
- struct rtl8723au_idx ofdm_tx_power_index_diff[3];
- struct rtl8723au_idx ht40_max_power_offset[3];
- struct rtl8723au_idx ht20_max_power_offset[3];
+ struct rtl8723au_idx ht40_2s_tx_power_index_diff[
+ RTL8XXXU_MAX_CHANNEL_GROUPS];
+ struct rtl8723au_idx ht20_tx_power_index_diff[
+ RTL8XXXU_MAX_CHANNEL_GROUPS];
+ struct rtl8723au_idx ofdm_tx_power_index_diff[
+ RTL8XXXU_MAX_CHANNEL_GROUPS];
+ struct rtl8723au_idx ht40_max_power_offset[
+ RTL8XXXU_MAX_CHANNEL_GROUPS];
+ struct rtl8723au_idx ht20_max_power_offset[
+ RTL8XXXU_MAX_CHANNEL_GROUPS];
u32 chip_cut:4;
u32 rom_rev:4;
u32 is_multi_func:1;