Fix another Intel 2200BG bug: don't schedule ndis_ticktask() on media

disconnect events if the link wasn't even up yet.
This commit is contained in:
wpaul 2004-03-21 00:06:56 +00:00
parent 8feaa1f450
commit 14202432d8

View File

@ -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;