Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 79493
b: refs/heads/master
c: 247ae44
h: refs/heads/master
i:
  79491: 1c01586
v: v3
  • Loading branch information
John W. Linville authored and David S. Miller committed Jan 28, 2008
1 parent 985e5cc commit 0239e6a
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c65638a72c619e941bcb4006feded09fd358ad5f
refs/heads/master: 247ae4492065ed73bf5f287e38cd4c54ce192b27
17 changes: 14 additions & 3 deletions trunk/drivers/net/wireless/ath5k/base.c
Original file line number Diff line number Diff line change
Expand Up @@ -604,7 +604,8 @@ ath5k_pci_resume(struct pci_dev *pdev)
{
struct ieee80211_hw *hw = pci_get_drvdata(pdev);
struct ath5k_softc *sc = hw->priv;
int err;
struct ath5k_hw *ah = sc->ah;
int i, err;

err = pci_set_power_state(pdev, PCI_D0);
if (err)
Expand All @@ -624,10 +625,20 @@ ath5k_pci_resume(struct pci_dev *pdev)

ath5k_init(sc);
if (test_bit(ATH_STAT_LEDSOFT, sc->status)) {
ath5k_hw_set_gpio_output(sc->ah, sc->led_pin);
ath5k_hw_set_gpio(sc->ah, sc->led_pin, 0);
ath5k_hw_set_gpio_output(ah, sc->led_pin);
ath5k_hw_set_gpio(ah, sc->led_pin, 0);
}

/*
* Reset the key cache since some parts do not
* reset the contents on initial power up or resume.
*
* FIXME: This may need to be revisited when mac80211 becomes
* aware of suspend/resume.
*/
for (i = 0; i < AR5K_KEYTABLE_SIZE; i++)
ath5k_hw_reset_key(ah, i);

return 0;
}
#endif /* CONFIG_PM */
Expand Down

0 comments on commit 0239e6a

Please sign in to comment.