diff options
author | damien <damien@FreeBSD.org> | 2005-09-19 16:26:52 +0000 |
---|---|---|
committer | damien <damien@FreeBSD.org> | 2005-09-19 16:26:52 +0000 |
commit | 410dc0fa32f343d3a9e0d54b238eff256e2215a1 (patch) | |
tree | bdd5e58d095ee442c40ad2ea7faf61af7a59cf1d /sys/dev/iwi | |
parent | 9b9ea0137d6f9566bd9e38810208747575beeb35 (diff) | |
download | FreeBSD-src-410dc0fa32f343d3a9e0d54b238eff256e2215a1.zip FreeBSD-src-410dc0fa32f343d3a9e0d54b238eff256e2215a1.tar.gz |
It's safe to wait for command completion in iwi_config().
MFC after: 5 days
Diffstat (limited to 'sys/dev/iwi')
-rw-r--r-- | sys/dev/iwi/if_iwi.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/iwi/if_iwi.c b/sys/dev/iwi/if_iwi.c index d353a03..95e75aa 100644 --- a/sys/dev/iwi/if_iwi.c +++ b/sys/dev/iwi/if_iwi.c @@ -486,6 +486,7 @@ iwi_detach(device_t dev) if (ifp != NULL) if_free(ifp); + mtx_destroy(&sc->sc_mtx); return 0; @@ -2211,7 +2212,7 @@ iwi_config(struct iwi_softc *sc) } #endif error = iwi_cmd(sc, IWI_CMD_SET_ESSID, ic->ic_des_essid, - ic->ic_des_esslen, 1); + ic->ic_des_esslen, 0); if (error != 0) return error; } |