ath9k: update initvals for ar9330 to fix issues with high power designs
[oweals/openwrt.git] / package / mac80211 / patches / 560-ath9k_fix_rx_tx_stop.patch
1 --- a/drivers/net/wireless/ath/ath9k/main.c
2 +++ b/drivers/net/wireless/ath/ath9k/main.c
3 @@ -235,7 +235,7 @@ static bool ath_prepare_reset(struct ath
4  {
5         struct ath_hw *ah = sc->sc_ah;
6         struct ath_common *common = ath9k_hw_common(ah);
7 -       bool ret;
8 +       bool ret = true;
9  
10         ieee80211_stop_queues(sc->hw);
11  
12 @@ -246,11 +246,12 @@ static bool ath_prepare_reset(struct ath
13         ath9k_debug_samp_bb_mac(sc);
14         ath9k_hw_disable_interrupts(ah);
15  
16 -       ret = ath_drain_all_txq(sc, retry_tx);
17 -
18         if (!ath_stoprecv(sc))
19                 ret = false;
20  
21 +       if (!ath_drain_all_txq(sc, retry_tx))
22 +               ret = false;
23 +
24         if (!flush) {
25                 if (ah->caps.hw_caps & ATH9K_HW_CAP_EDMA)
26                         ath_rx_tasklet(sc, 1, true);