In ndis_halt_nic(), invalidate the miniportadapterctx early to try and

prevent anything from making calls to the NIC while it's being shut down.
This is yet another attempt to stop things like mdnsd from trying to
poke at the card while it's not properly initialized and panicking
the system.

Also, remove unneeded debug message from if_ndis.c.
This commit is contained in:
Bill Paul 2005-05-20 02:35:43 +00:00
parent e9a32efc6e
commit cebddbda3b
2 changed files with 1 additions and 6 deletions

View file

@ -1122,6 +1122,7 @@ ndis_halt_nic(arg)
return(EIO);
}
sc->ndis_block->nmb_miniportadapterctx = NULL;
sc->ndis_block->nmb_devicectx = NULL;
/*
@ -1135,10 +1136,6 @@ ndis_halt_nic(arg)
MSCALL1(haltfunc, adapter);
NDIS_LOCK(sc);
sc->ndis_block->nmb_miniportadapterctx = NULL;
NDIS_UNLOCK(sc);
return(0);
}

View file

@ -2886,8 +2886,6 @@ ndis_80211_ioctl_set(struct ifnet *ifp, u_long command, caddr_t data)
error = copyin(ireq->i_data, &(ssid.ns_ssid), ireq->i_len);
if (error)
break;
device_printf(sc->ndis_dev,
"setting SSID to %s\n", ssid.ns_ssid);
error = ndis_set_info(sc, OID_802_11_SSID, &ssid, &len);
if (error) {
device_printf(sc->ndis_dev,