From 14202432d8f8324b424c7568b2a142567d110dfb Mon Sep 17 00:00:00 2001 From: wpaul Date: Sun, 21 Mar 2004 00:06:56 +0000 Subject: Fix another Intel 2200BG bug: don't schedule ndis_ticktask() on media disconnect events if the link wasn't even up yet. --- sys/dev/if_ndis/if_ndis.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sys/dev/if_ndis') diff --git a/sys/dev/if_ndis/if_ndis.c b/sys/dev/if_ndis/if_ndis.c index 4c92c26..f89d766 100644 --- a/sys/dev/if_ndis/if_ndis.c +++ b/sys/dev/if_ndis/if_ndis.c @@ -1072,7 +1072,8 @@ ndis_linksts_done(adapter) case NDIS_STATUS_MEDIA_DISCONNECT: if (sc->ndis_80211) ndis_getstate_80211(sc); - ndis_sched(ndis_ticktask, sc, NDIS_TASKQUEUE); + if (sc->ndis_link) + ndis_sched(ndis_ticktask, sc, NDIS_TASKQUEUE); break; default: break; -- cgit v1.1