Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 314043
b: refs/heads/master
c: 196fb86
h: refs/heads/master
i:
  314041: d2b295d
  314039: 857aa96
v: v3
  • Loading branch information
Sujith Manoharan authored and John W. Linville committed Jun 6, 2012
1 parent 190fcd4 commit 01b7b43
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 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: 07c15a3ffd68ff1a3276daa26885b277f19e4abd
refs/heads/master: 196fb860ceb6b937cbe608ea3ea0209bd4edf3b2
14 changes: 12 additions & 2 deletions trunk/drivers/net/wireless/ath/ath9k/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,7 @@ static bool ath_complete_reset(struct ath_softc *sc, bool start)
{
struct ath_hw *ah = sc->sc_ah;
struct ath_common *common = ath9k_hw_common(ah);
unsigned long flags;

if (ath_startrecv(sc) != 0) {
ath_err(common, "Unable to restart recv logic\n");
Expand All @@ -224,9 +225,18 @@ static bool ath_complete_reset(struct ath_softc *sc, bool start)
ath9k_hw_enable_interrupts(ah);

if (!(sc->hw->conf.flags & IEEE80211_CONF_OFFCHANNEL) && start) {
if (test_bit(SC_OP_BEACONS, &sc->sc_flags))
ath_set_beacon(sc);
if (!test_bit(SC_OP_BEACONS, &sc->sc_flags))
goto work;

ath_set_beacon(sc);

if (ah->opmode == NL80211_IFTYPE_STATION &&
test_bit(SC_OP_PRIM_STA_VIF, &sc->sc_flags)) {
spin_lock_irqsave(&sc->sc_pm_lock, flags);
sc->ps_flags |= PS_BEACON_SYNC | PS_WAIT_FOR_BEACON;
spin_unlock_irqrestore(&sc->sc_pm_lock, flags);
}
work:
ath_restart_work(sc);
}

Expand Down

0 comments on commit 01b7b43

Please sign in to comment.