1 Doing ifconfig athX down/ifconfig athX up several times provokes kernel crash.
2 See http://madwifi.org/ticket/914. But if ath_hal_phydisable() is skipped -
3 I observe NO CRASH whatsoever ... :\ Weird.
5 Signed-off-by: Mindaugas Kriaučiūnas <mindaugas.kriauciunas@gmail.com>
6 Signed-off-by: Žilvinas Valinskas <valins@soften.ktu.lt>
8 Index: madwifi-ng-trunk/ath/if_ath.c
9 ===================================================================
10 --- madwifi-ng-trunk.orig/ath/if_ath.c 2006-10-16 17:40:50.000000000 +0300
11 +++ madwifi-ng-trunk/ath/if_ath.c 2006-10-18 16:17:32.000000000 +0300
12 @@ -1997,7 +1997,10 @@
14 if (!sc->sc_invalid) {
17 + /* XXX: this helps to avoid crashes on ifconfig down/up
18 ath_hal_phydisable(ah);
22 ath_beacon_free(sc); /* XXX needed? */