linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ath9k: fix eeprom INI values override for 2GHz-only cards
@ 2010-01-23 19:04 Felix Fietkau
  2010-01-25  4:29 ` Sujith
  2010-01-25 14:00 ` Pavel Roskin
  0 siblings, 2 replies; 3+ messages in thread
From: Felix Fietkau @ 2010-01-23 19:04 UTC (permalink / raw)
  To: linux-wireless
  Cc: Luis R. Rodriguez, jorge, Pavel Roskin, Sujith, John W. Linville

Among other changes, this commit:

   commit 06d0f0663e11cab4ec5f2c143a118d71a12fbbe9
   Author: Sujith <Sujith.Manoharan@atheros.com>
   Date:   Thu Feb 12 10:06:45 2009 +0530

   ath9k: Enable Fractional N mode

changed the hw attach code to fix up initialization values only for
dual band devices, however the commit message did not give a reason as
to why this would be useful or necessary.

According to tests by Jorge Boncompte, this breaks at least some 
2GHz-only cards, so the code should be changed back to the
unconditional INI fixup.

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Reported-by: Jorge Boncompte <jorge@dti2.net>
Cc: stable@kernel.org
---
--- a/drivers/net/wireless/ath/ath9k/hw.c
+++ b/drivers/net/wireless/ath/ath9k/hw.c
@@ -823,12 +823,11 @@ static void ath9k_hw_init_mode_gain_regs
 	}
 }
 
-static void ath9k_hw_init_11a_eeprom_fix(struct ath_hw *ah)
+static void ath9k_hw_init_eeprom_fix(struct ath_hw *ah)
 {
 	u32 i, j;
 
-	if ((ah->hw_version.devid == AR9280_DEVID_PCI) &&
-	    test_bit(ATH9K_MODE_11A, ah->caps.wireless_modes)) {
+	if (ah->hw_version.devid == AR9280_DEVID_PCI) {
 
 		/* EEPROM Fixup */
 		for (i = 0; i < ah->iniModes.ia_rows; i++) {
@@ -948,7 +947,7 @@ int ath9k_hw_init(struct ath_hw *ah)
 	if (r)
 		return r;
 
-	ath9k_hw_init_11a_eeprom_fix(ah);
+	ath9k_hw_init_eeprom_fix(ah);
 
 	r = ath9k_hw_init_macaddr(ah);
 	if (r) {

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

* [PATCH] ath9k: fix eeprom INI values override for 2GHz-only cards
  2010-01-23 19:04 [PATCH] ath9k: fix eeprom INI values override for 2GHz-only cards Felix Fietkau
@ 2010-01-25  4:29 ` Sujith
  2010-01-25 14:00 ` Pavel Roskin
  1 sibling, 0 replies; 3+ messages in thread
From: Sujith @ 2010-01-25  4:29 UTC (permalink / raw)
  To: Felix Fietkau
  Cc: linux-wireless, Luis R. Rodriguez, jorge@dti2.net, Pavel Roskin,
	John W. Linville

Felix Fietkau wrote:
> Among other changes, this commit:
> 
>    commit 06d0f0663e11cab4ec5f2c143a118d71a12fbbe9
>    Author: Sujith <Sujith.Manoharan@atheros.com>
>    Date:   Thu Feb 12 10:06:45 2009 +0530
> 
>    ath9k: Enable Fractional N mode
> 
> changed the hw attach code to fix up initialization values only for
> dual band devices, however the commit message did not give a reason as
> to why this would be useful or necessary.
> 
> According to tests by Jorge Boncompte, this breaks at least some
> 2GHz-only cards, so the code should be changed back to the
> unconditional INI fixup.

The original fix was a workaround for MB-92 cards, which certainly
was applicable to both single/dual band cards.

During a sync-up with internal HW-specific code changes, this was
changed to 11A specific. Not sure why this was done so.
Will look into this.

Sujith

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

* Re: [PATCH] ath9k: fix eeprom INI values override for 2GHz-only cards
  2010-01-23 19:04 [PATCH] ath9k: fix eeprom INI values override for 2GHz-only cards Felix Fietkau
  2010-01-25  4:29 ` Sujith
@ 2010-01-25 14:00 ` Pavel Roskin
  1 sibling, 0 replies; 3+ messages in thread
From: Pavel Roskin @ 2010-01-25 14:00 UTC (permalink / raw)
  To: Felix Fietkau
  Cc: linux-wireless, Luis R. Rodriguez, jorge, Sujith,
	John W. Linville

On Sat, 2010-01-23 at 20:04 +0100, Felix Fietkau wrote:
> Among other changes, this commit:
> 
>    commit 06d0f0663e11cab4ec5f2c143a118d71a12fbbe9
>    Author: Sujith <Sujith.Manoharan@atheros.com>
>    Date:   Thu Feb 12 10:06:45 2009 +0530
> 
>    ath9k: Enable Fractional N mode
> 
> changed the hw attach code to fix up initialization values only for
> dual band devices, however the commit message did not give a reason as
> to why this would be useful or necessary.
> 
> According to tests by Jorge Boncompte, this breaks at least some 
> 2GHz-only cards, so the code should be changed back to the
> unconditional INI fixup.
> 
> Signed-off-by: Felix Fietkau <nbd@openwrt.org>
> Reported-by: Jorge Boncompte <jorge@dti2.net>
> Cc: stable@kernel.org

Tested-by: Pavel Roskin <proski@gnu.org>

Tested on Ubiquiti SR71-15 and Ubiquiti SR71-12.

-- 
Regards,
Pavel Roskin

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

end of thread, other threads:[~2010-01-25 14:01 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-23 19:04 [PATCH] ath9k: fix eeprom INI values override for 2GHz-only cards Felix Fietkau
2010-01-25  4:29 ` Sujith
2010-01-25 14:00 ` Pavel Roskin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).