Commit 4a0d7db5 authored by Jes Sorensen's avatar Jes Sorensen Committed by Kalle Valo

rtl8xxxu: Correct struct rtl8723bu_efuse to list power bases correctly

Correct TX power definitions in rtl8723bu_efuse
Signed-off-by: default avatarJes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
parent db08de94
...@@ -2338,16 +2338,6 @@ static int rtl8723bu_parse_efuse(struct rtl8xxxu_priv *priv) ...@@ -2338,16 +2338,6 @@ static int rtl8723bu_parse_efuse(struct rtl8xxxu_priv *priv)
ether_addr_copy(priv->mac_addr, efuse->mac_addr); ether_addr_copy(priv->mac_addr, efuse->mac_addr);
memcpy(priv->cck_tx_power_index_A, efuse->cck_tx_power_index_A,
sizeof(priv->cck_tx_power_index_A));
memcpy(priv->cck_tx_power_index_B, efuse->cck_tx_power_index_B,
sizeof(priv->cck_tx_power_index_B));
memcpy(priv->ht40_1s_tx_power_index_A, efuse->ht40_1s_tx_power_index_A,
sizeof(priv->ht40_1s_tx_power_index_A));
memcpy(priv->ht40_1s_tx_power_index_B, efuse->ht40_1s_tx_power_index_B,
sizeof(priv->ht40_1s_tx_power_index_B));
priv->has_xtalk = 1; priv->has_xtalk = 1;
priv->xtalk = priv->efuse_wifi.efuse8723bu.xtal_k & 0x3f; priv->xtalk = priv->efuse_wifi.efuse8723bu.xtal_k & 0x3f;
......
...@@ -53,6 +53,7 @@ ...@@ -53,6 +53,7 @@
#define RTL8723A_CHANNEL_GROUPS 3 #define RTL8723A_CHANNEL_GROUPS 3
#define RTL8723A_MAX_RF_PATHS 2 #define RTL8723A_MAX_RF_PATHS 2
#define RTL8723B_MAX_RF_PATHS 4
#define RF6052_MAX_TX_PWR 0x3f #define RF6052_MAX_TX_PWR 0x3f
#define EFUSE_MAP_LEN 512 #define EFUSE_MAP_LEN 512
...@@ -631,14 +632,26 @@ struct rtl8192cu_efuse { ...@@ -631,14 +632,26 @@ struct rtl8192cu_efuse {
u8 customer_id; u8 customer_id;
}; };
struct rtl8723bu_efuse_tx_power {
u8 cck_base[6];
u8 ht40_base[5];
struct rtl8723au_idx ht20_ofdm_1s_diff;
struct rtl8723au_idx ht40_ht20_2s_diff;
struct rtl8723au_idx ofdm_cck_2s_diff; /* not used */
struct rtl8723au_idx ht40_ht20_3s_diff;
struct rtl8723au_idx ofdm_cck_3s_diff; /* not used */
struct rtl8723au_idx ht40_ht20_4s_diff;
struct rtl8723au_idx ofdm_cck_4s_diff; /* not used */
u8 dummy5g[24]; /* max channel group (14) + power diff offset (10) */
};
struct rtl8723bu_efuse { struct rtl8723bu_efuse {
__le16 rtl_id; __le16 rtl_id;
u8 res0[0x0e]; u8 res0[0x0e];
u8 cck_tx_power_index_A[3]; /* 0x10 */ struct rtl8723bu_efuse_tx_power tx_power_index_A; /* 0x10 */
u8 cck_tx_power_index_B[3]; struct rtl8723bu_efuse_tx_power tx_power_index_B; /* 0x3a */
u8 ht40_1s_tx_power_index_A[3]; /* 0x16 */ struct rtl8723bu_efuse_tx_power tx_power_index_C; /* 0x64 */
u8 ht40_1s_tx_power_index_B[3]; struct rtl8723bu_efuse_tx_power tx_power_index_D; /* 0x8e */
u8 res1[0x9c];
u8 channel_plan; /* 0xb8 */ u8 channel_plan; /* 0xb8 */
u8 xtal_k; u8 xtal_k;
u8 thermal_meter; u8 thermal_meter;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment