Don't hold NDIS_LOCK() around call to ndis_getstate_80211() since it

may block on ndis_get_info().
This commit is contained in:
wpaul 2004-02-07 23:52:58 +00:00
parent 55b4db9ba1
commit 769a44a973

View File

@ -1250,8 +1250,10 @@ ndis_ticktask(xsc)
if (sc->ndis_link == 0 && linkstate == nmc_connected) {
device_printf(sc->ndis_dev, "link up\n");
sc->ndis_link = 1;
NDIS_UNLOCK(sc);
if (sc->ndis_80211)
ndis_getstate_80211(sc);
NDIS_LOCK(sc);
}
if (sc->ndis_link == 1 && linkstate == nmc_disconnected) {