update madwifi to latest trunk - performance enhancements
[openwrt/svn-archive/archive.git] / package / madwifi / patches / 110-init_fix_PR_914.patch
1 diff -urN madwifi-ng-r2377-20070526.old/ath/if_ath.c madwifi-ng-r2377-20070526.dev/ath/if_ath.c
2 --- madwifi-ng-r2377-20070526.old/ath/if_ath.c 2007-05-26 18:51:08.393811488 +0200
3 +++ madwifi-ng-r2377-20070526.dev/ath/if_ath.c 2007-05-26 18:51:08.485797504 +0200
4 @@ -1959,7 +1959,10 @@
5 ath_draintxq(sc);
6 if (!sc->sc_invalid) {
7 ath_stoprecv(sc);
8 +
9 + /* XXX: this helps to avoid crashes on ifconfig down/up
10 ath_hal_phydisable(ah);
11 + */
12 } else
13 sc->sc_rxlink = NULL;
14 ath_beacon_free(sc); /* XXX needed? */