Skip to contentSkip to conversation

ath9k: Update AR9340 initvals for txgain table mode 4

PATCH New Alexander Couzens 2 participants 3 messages May 20, 2016 – May 23, 2016 Qualcomm Atheros ATH9K wireless driver

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ath9k: Update AR9340 initvals for txgain table mode 4

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.

---

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(-)
drivers/net/wireless/ath/ath9k/ar9340_initvals.h +5 -5
index 2eb163f..ac5767e 100644
@@ -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] = {
Signature · 1 line
2.8.2
#1 lore raw

PATCH 1/1 ath9k: Update AR9340 initvals for txgain table mode 4

Quoted 7 lines · On Fri, 20 May 2016 02:31:15 +0200 Alexander Couzens <[email protected]> wrote:

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

Signature · 13 lines
Alexander Couzens

mail: lynxis at fe80.eu
jabber: lynxis at fe80.eu
mobile: +4915123277221
gpg: 390D CF78 8BF9 AA50 4F8F  F1E2 C29E 9DA6 A0DF 8604
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
Url : http://lists.ath9k.org/pipermail/ath9k-devel/attachments/20160520/60c810f1/attachment.pgp 
#2 lore raw

PATCH 1/1 ath9k: Update AR9340 initvals for txgain table mode 4

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

Quoted 32 lines · Alexander Couzens
Quoted 7 lines · On Fri, 20 May 2016 02:31:15 +0200 Alexander Couzens <[email protected]> wrote:

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: lynxis at fe80.eu
jabber: lynxis at fe80.eu
mobile: +4915123277221
gpg: 390D CF78 8BF9 AA50 4F8F F1E2 C29E 9DA6 A0DF 8604

_______________________________________________
ath9k-devel mailing list
ath9k-devel at lists.ath9k.org
https://lists.ath9k.org/mailman/listinfo/ath9k-devel