All of lore.kernel.org
 help / color / mirror / Atom feed
* [ath9k-devel] [PATCH] ath9k: Update AR9340 initvals for txgain table mode 4
@ 2016-05-20  0:31 Alexander Couzens
  2016-05-20 19:09 ` Alexander Couzens
  0 siblings, 1 reply; 3+ messages in thread
From: Alexander Couzens @ 2016-05-20  0:31 UTC (permalink / raw)
  To: ath9k-devel

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 <lynxis@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

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [ath9k-devel] [PATCH] ath9k: Update AR9340 initvals for txgain table mode 4
  2016-05-20  0:31 [ath9k-devel] [PATCH] ath9k: Update AR9340 initvals for txgain table mode 4 Alexander Couzens
@ 2016-05-20 19:09 ` Alexander Couzens
  2016-05-23 15:25   ` Adrian Chadd
  0 siblings, 1 reply; 3+ messages in thread
From: Alexander Couzens @ 2016-05-20 19:09 UTC (permalink / raw)
  To: ath9k-devel

On Fri, 20 May 2016 02:31:15 +0200
Alexander Couzens <lynxis@fe80.eu> 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.
> 
> Signed-off-by: Alexander Couzens <lynxis@fe80.eu>

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
-------------- 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 

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [ath9k-devel] [PATCH] ath9k: Update AR9340 initvals for txgain table mode 4
  2016-05-20 19:09 ` Alexander Couzens
@ 2016-05-23 15:25   ` Adrian Chadd
  0 siblings, 0 replies; 3+ messages in thread
From: Adrian Chadd @ 2016-05-23 15:25 UTC (permalink / raw)
  To: ath9k-devel

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


On 20 May 2016 at 12:09, Alexander Couzens <lynxis@fe80.eu> wrote:
> On Fri, 20 May 2016 02:31:15 +0200
> Alexander Couzens <lynxis@fe80.eu> 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.
>>
>> Signed-off-by: Alexander Couzens <lynxis@fe80.eu>
>
> 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
>

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-05-23 15:25 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-05-20  0:31 [ath9k-devel] [PATCH] ath9k: Update AR9340 initvals for txgain table mode 4 Alexander Couzens
2016-05-20 19:09 ` Alexander Couzens
2016-05-23 15:25   ` Adrian Chadd

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.