Parent Directory
|
Revision Log
fix annoying crash when setting interface up and down twice My wgt survived 5 minutes doing: while true; do ifup -v ath0 ; ifdown -v ath0;done Patch from here http://madwifi.org/attachment/ticket/914/phydisable.2.diff closes #133 in FreeWRT.
| 1 | diff -Nur madwifi-ng-r1844-20061208.orig/ath/if_ath.c madwifi-ng-r1844-20061208/ath/if_ath.c |
| 2 | --- madwifi-ng-r1844-20061208.orig/ath/if_ath.c 2006-12-10 17:29:11.000000000 +0100 |
| 3 | +++ madwifi-ng-r1844-20061208/ath/if_ath.c 2006-12-10 17:31:54.000000000 +0100 |
| 4 | @@ -2006,7 +2006,8 @@ |
| 5 | ath_draintxq(sc); |
| 6 | if (!sc->sc_invalid) { |
| 7 | ath_stoprecv(sc); |
| 8 | - ath_hal_phydisable(ah); |
| 9 | + // XXX: this helps to avoid crashes on ifconfig down/up |
| 10 | + // ath_hal_phydisable(ah); |
| 11 | } else |
| 12 | sc->sc_rxlink = NULL; |
| 13 | ath_beacon_free(sc); /* XXX needed? */ |
| root@freewrt.org:443 | ViewVC Help |
| Powered by ViewVC 1.1.20 |