From: Jouni Malinen (jkmaline_at_cc.hut.fi)
Date: 2002-05-09 17:28:19 UTC
On Mon, May 06, 2002 at 12:31:00AM +0200, Hakan Lennestal wrote:
> My machine panics:
>
> Kernel panic: Aiee, killing interrupt handler!
> In interrupt handler - not syncing
>
> This is when I remove the card (Dlink DWL-650) and after this the machine
> hangs.
prism2_release() tries to deauthenticate all stations when shutting down the device. It does this even if the card is removed which ends up causing a kernel panic if the netdevice is UP. Following patch fixed this crash in my tests:
diff -u -u -p -r1.5 hostap_cs.c
--- driver/modules/hostap_cs.c 1 May 2002 09:29:13 -0000 1.5 +++ driver/modules/hostap_cs.c 9 May 2002 17:25:42 -0000 @@ -539,7 +539,8 @@ static void prism2_release(u_long arg) PDEBUG(DEBUG_FLOW, "prism2_release\n"); #ifndef PRISM2_HOSTAPD - if (local->hw_ready && local->ap) + if (prism2_pccard_card_present(local) && local->hw_ready && + local->ap && local->iw_mode == IW_MODE_MASTER) ap_deauth_all_stas(dev, local->ap, 1);#endif /* PRISM2_HOSTAPD */
-- Jouni Malinen PGP id EFC895FA