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 <[email protected]>
---
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