English Language flag
// Log In
// CVSweb
Project: FreeWRT
// Summary // Activity // Search // Tracker // Lists // News // SCM // Wiki

SCM Repository

ViewVC logotype

Contents of /branches/freewrt_1_0/package/madwifi/patches/105-ifupdown-crash-fix.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1285 - (show annotations) (download)
Sun Dec 10 17:54:04 2006 UTC (7 years, 2 months ago) by wbx
File size: 545 byte(s)
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