f52f0b0384069f28853e775da7dfcb5fe95f266e
[openwrt/openwrt.git] / package / madwifi / patches / 349-reset.patch
1 Index: madwifi-trunk-r3314/ath/if_ath.c
2 ===================================================================
3 --- madwifi-trunk-r3314.orig/ath/if_ath.c
4 +++ madwifi-trunk-r3314/ath/if_ath.c
5 @@ -2479,7 +2479,7 @@
6 */
7 sc->sc_curchan.channel = ic->ic_curchan->ic_freq;
8 sc->sc_curchan.channelFlags = ath_chan2flags(ic->ic_curchan);
9 - if (!ath_hal_reset(ah, sc->sc_opmode, &sc->sc_curchan, AH_FALSE, &status)) {
10 + if (!ath_hal_reset(ah, sc->sc_opmode, &sc->sc_curchan, AH_TRUE, &status)) {
11 EPRINTF(sc, "unable to reset hardware: '%s' (HAL status %u) "
12 "(freq %u flags 0x%x)\n",
13 ath_get_hal_status_desc(status), status,
14 @@ -8853,8 +8853,7 @@
15 * needed to do the reset with chanchange = AH_FALSE in order
16 * to receive traffic when peforming high velocity channel
17 * changes. */
18 - if (!ath_hal_reset(ah, sc->sc_opmode, &hchan, AH_TRUE, &status) ||
19 - !ath_hal_reset(ah, sc->sc_opmode, &hchan, AH_FALSE, &status)) {
20 + if (!ath_hal_reset(ah, sc->sc_opmode, &hchan, AH_TRUE, &status)) {
21 EPRINTF(sc, "Unable to reset channel %u (%u MHz) "
22 "flags 0x%x '%s' (HAL status %u)\n",
23 ieee80211_chan2ieee(ic, chan), chan->ic_freq,