Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 314041
b: refs/heads/master
c: b74713d
h: refs/heads/master
i:
  314039: 857aa96
v: v3
  • Loading branch information
Sujith Manoharan authored and John W. Linville committed Jun 6, 2012
1 parent cafc9c8 commit d2b295d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 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: 781b14a3153a722fec820374271316537881076e
refs/heads/master: b74713d04effbacd3d126ce94cec18742187b6ce
1 change: 1 addition & 0 deletions trunk/drivers/net/wireless/ath/ath9k/ath9k.h
Original file line number Diff line number Diff line change
Expand Up @@ -611,6 +611,7 @@ enum sc_op_flags {
SC_OP_TSF_RESET,
SC_OP_ANI_RUN,
SC_OP_PRIM_STA_VIF,
SC_OP_HW_RESET,
};

/* Powersave flags */
Expand Down
7 changes: 6 additions & 1 deletion trunk/drivers/net/wireless/ath/ath9k/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,8 @@ static bool ath_complete_reset(struct ath_softc *sc, bool start)

ath9k_cmn_update_txpow(ah, sc->curtxpow,
sc->config.txpowlimit, &sc->curtxpow);

clear_bit(SC_OP_HW_RESET, &sc->sc_flags);
ath9k_hw_set_interrupts(ah);
ath9k_hw_enable_interrupts(ah);

Expand Down Expand Up @@ -362,6 +364,7 @@ void ath9k_tasklet(unsigned long data)

RESET_STAT_INC(sc, type);
#endif
set_bit(SC_OP_HW_RESET, &sc->sc_flags);
ieee80211_queue_work(sc->hw, &sc->hw_reset_work);
goto out;
}
Expand Down Expand Up @@ -438,12 +441,14 @@ irqreturn_t ath_isr(int irq, void *dev)
if (test_bit(SC_OP_INVALID, &sc->sc_flags))
return IRQ_NONE;


/* shared irq, not for us */

if (!ath9k_hw_intrpend(ah))
return IRQ_NONE;

if(test_bit(SC_OP_HW_RESET, &sc->sc_flags))
return IRQ_HANDLED;

/*
* Figure out the reason(s) for the interrupt. Note
* that the hal returns a pseudo-ISR that may include
Expand Down

0 comments on commit d2b295d

Please sign in to comment.