Search Linux Wireless

[PATCH] ath5k: mac revision fixes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



this are two small fixes:

1) actually print the mac revision when we say so

2) better check for mac revisions when putting device to sleep: this is
important with newer mac revisions (>=7.8) which will freeze the whole system
when put to sleep

Signed-off-by: Bruno Randolf <bruno@xxxxxxxxxxxxx>
---
 drivers/net/wireless/ath5k/base.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/drivers/net/wireless/ath5k/base.c b/drivers/net/wireless/ath5k/base.c
index 6cb8ccc..3f9dd0a 100644
--- a/drivers/net/wireless/ath5k/base.c
+++ b/drivers/net/wireless/ath5k/base.c
@@ -1000,8 +1000,7 @@ static int ath_stop_hw(struct ath_softc *sc)
 		 * (and system).  This varies by chip and is mostly an
 		 * issue with newer parts that go to sleep more quickly.
 		 */
-		if (sc->ah->ah_mac_version >= 7 &&
-				sc->ah->ah_mac_revision >= 8) {
+		if (sc->ah->ah_mac_srev >= 0x78) {
 			/*
 			 * XXX
 			 * don't put newer MAC revisions > 7.8 to sleep because
@@ -2462,7 +2461,7 @@ static int __devinit ath_pci_probe(struct pci_dev *pdev,
 
 	dev_info(&pdev->dev, "%s chip found: mac %d.%d phy %d.%d\n",
 			ath_chip_name(id->driver_data), sc->ah->ah_mac_version,
-			sc->ah->ah_mac_version, sc->ah->ah_phy_revision >> 4,
+			sc->ah->ah_mac_revision, sc->ah->ah_phy_revision >> 4,
 			sc->ah->ah_phy_revision & 0xf);
 
 	/* ready to process interrupts */
-- 
1.5.3.4

-
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux