Discussion:
[ath9k-devel] [PATCH] ath9k: Update AR9340 initvals for txgain table mode 4
Alexander Couzens
2016-05-20 00:31:15 UTC
Permalink
Changing the table for 5Ghz HT20/HT40 to fix a 10dbm signal difference
on the client side when running LEDE on the AP (TpLink CPE510) instead
of the vendor driver. These values are taken from a TpLink CPE510 running
the vendor firmware using a small script that retrieved the same registers
as already defined in the tx gain table.

Signed-off-by: Alexander Couzens <***@fe80.eu>
---

Because I don't have any datasheets about this wireless chip I can not
really say, what I'm changing.

drivers/net/wireless/ath/ath9k/ar9340_initvals.h | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/drivers/net/wireless/ath/ath9k/ar9340_initvals.h b/drivers/net/wireless/ath/ath9k/ar9340_initvals.h
index 2eb163f..ac5767e 100644
--- a/drivers/net/wireless/ath/ath9k/ar9340_initvals.h
+++ b/drivers/net/wireless/ath/ath9k/ar9340_initvals.h
@@ -827,7 +827,7 @@ static const u32 ar9340Modes_mixed_ob_db_tx_gain_table_1p0[][5] = {
{0x0000a2e0, 0x0000f800, 0x0000f800, 0x03ccc584, 0x03ccc584},
{0x0000a2e4, 0x03ff0000, 0x03ff0000, 0x03f0f800, 0x03f0f800},
{0x0000a2e8, 0x00000000, 0x00000000, 0x03ff0000, 0x03ff0000},
- {0x0000a410, 0x000050d9, 0x000050d9, 0x000050d9, 0x000050d9},
+ {0x0000a410, 0x000050da, 0x000050da, 0x000050d9, 0x000050d9},
{0x0000a500, 0x00000000, 0x00000000, 0x00000000, 0x00000000},
{0x0000a504, 0x06000003, 0x06000003, 0x04000002, 0x04000002},
{0x0000a508, 0x0a000020, 0x0a000020, 0x08000004, 0x08000004},
@@ -912,12 +912,12 @@ static const u32 ar9340Modes_mixed_ob_db_tx_gain_table_1p0[][5] = {
{0x0000b2e0, 0x0000f800, 0x0000f800, 0x03ccc584, 0x03ccc584},
{0x0000b2e4, 0x03ff0000, 0x03ff0000, 0x03f0f800, 0x03f0f800},
{0x0000b2e8, 0x00000000, 0x00000000, 0x03ff0000, 0x03ff0000},
- {0x00016044, 0x056db2db, 0x056db2db, 0x03b6d2e4, 0x03b6d2e4},
- {0x00016048, 0x24925666, 0x24925666, 0x8e481266, 0x8e481266},
+ {0x00016044, 0x056db2e4, 0x056db2e4, 0x03b6d2e4, 0x03b6d2e4},
+ {0x00016048, 0x64925666, 0x64925666, 0x8e481266, 0x8e481266},
{0x00016280, 0x01000015, 0x01000015, 0x01001015, 0x01001015},
{0x00016288, 0x30318000, 0x30318000, 0x00318000, 0x00318000},
- {0x00016444, 0x056db2db, 0x056db2db, 0x03b6d2e4, 0x03b6d2e4},
- {0x00016448, 0x24925666, 0x24925666, 0x8e481266, 0x8e481266},
+ {0x00016444, 0x056db2e4, 0x056db2e4, 0x03b6d2e4, 0x03b6d2e4},
+ {0x00016448, 0x64925666, 0x64925666, 0x8e481266, 0x8e481266},
};

static const u32 ar9340Modes_low_ob_db_and_spur_tx_gain_table_1p0[][5] = {
--
2.8.2
Alexander Couzens
2016-05-20 19:09:31 UTC
Permalink
On Fri, 20 May 2016 02:31:15 +0200
Post by Alexander Couzens
Changing the table for 5Ghz HT20/HT40 to fix a 10dbm signal difference
on the client side when running LEDE on the AP (TpLink CPE510) instead
of the vendor driver. These values are taken from a TpLink CPE510
running the vendor firmware using a small script that retrieved the
same registers as already defined in the tx gain table.
The cpe510 has a second calib data, using that ones works quite well,
because they are using 'TX Gain: 1' instead of the other table I
patches in my last mail (Tx Gain 4').
Please only see this patch as RFC and don't merge it right away.

Thanks,
lynxis
--
Alexander Couzens

mail: ***@fe80.eu
jabber: ***@fe80.eu
mobile: +4915123277221
gpg: 390D CF78 8BF9 AA50 4F8F F1E2 C29E 9DA6 A0DF 8604
Adrian Chadd
2016-05-23 15:25:40 UTC
Permalink
This is a 10dB transmit signal gain difference, right?

I can go poke someone on the PHY side and see if they have any ideas...


-a
Post by Alexander Couzens
On Fri, 20 May 2016 02:31:15 +0200
Post by Alexander Couzens
Changing the table for 5Ghz HT20/HT40 to fix a 10dbm signal difference
on the client side when running LEDE on the AP (TpLink CPE510) instead
of the vendor driver. These values are taken from a TpLink CPE510
running the vendor firmware using a small script that retrieved the
same registers as already defined in the tx gain table.
The cpe510 has a second calib data, using that ones works quite well,
because they are using 'TX Gain: 1' instead of the other table I
patches in my last mail (Tx Gain 4').
Please only see this patch as RFC and don't merge it right away.
Thanks,
lynxis
--
Alexander Couzens
mobile: +4915123277221
gpg: 390D CF78 8BF9 AA50 4F8F F1E2 C29E 9DA6 A0DF 8604
_______________________________________________
ath9k-devel mailing list
https://lists.ath9k.org/mailman/listinfo/ath9k-devel
Loading...