mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
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:
parent
e9a32efc6e
commit
cebddbda3b
2 changed files with 1 additions and 6 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue