summaryrefslogtreecommitdiffstats
path: root/sys/dev/if_ndis/if_ndis.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/if_ndis/if_ndis.c')
-rw-r--r--sys/dev/if_ndis/if_ndis.c3
1 files changed, 2 insertions, 1 deletions
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;
OpenPOWER on IntegriCloud