ath9k: fix a few more aggregation related issues, should improve stability
[openwrt.git] / package / mac80211 / patches / 540-ath9k_bb_hang_check_fix.patch
1
2 --- a/drivers/net/wireless/ath/ath9k/main.c
3 +++ b/drivers/net/wireless/ath/ath9k/main.c
4 @@ -251,6 +251,9 @@ int ath_set_channel(struct ath_softc *sc
5 if (!ath_stoprecv(sc))
6 stopped = false;
7
8 + if (!ath9k_hw_check_alive(ah))
9 + stopped = false;
10 +
11 /* XXX: do not flush receive queue here. We don't want
12 * to flush data frames already in queue because of
13 * changing channel. */
14 @@ -602,7 +605,15 @@ void ath9k_tasklet(unsigned long data)
15
16 spin_lock(&sc->sc_pcu_lock);
17
18 - if (!ath9k_hw_check_alive(ah))
19 + /*
20 + * Only run the baseband hang check if beacons stop working in AP or
21 + * IBSS mode, because it has a high false positive rate. For station
22 + * mode it should not be necessary, since the upper layers will detect
23 + * this through a beacon miss automatically and the following channel
24 + * change will trigger a hardware reset anyway
25 + */
26 + if (ath9k_hw_numtxpending(ah, sc->beacon.beaconq) != 0 &&
27 + !ath9k_hw_check_alive(ah))
28 ieee80211_queue_work(sc->hw, &sc->hw_check_work);
29
30 if (ah->caps.hw_caps & ATH9K_HW_CAP_EDMA)
This page took 0.040221 seconds and 5 git commands to generate.