diff options
| author | Coleman Kane <cokane@FreeBSD.org> | 2009-06-10 18:00:10 +0000 |
|---|---|---|
| committer | Coleman Kane <cokane@FreeBSD.org> | 2009-06-10 18:00:10 +0000 |
| commit | badff0e4d805d7ea38f16d60cad9a7bffb291fd4 (patch) | |
| tree | 2efc3576daf6f249cc39f5952be36e296791a20c | |
| parent | f3a36f8193f058014bfb03e7738e959ca8e31a30 (diff) | |
Notes
| -rw-r--r-- | sys/dev/if_ndis/if_ndis.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/sys/dev/if_ndis/if_ndis.c b/sys/dev/if_ndis/if_ndis.c index d191d38c2347..fcab4524cef5 100644 --- a/sys/dev/if_ndis/if_ndis.c +++ b/sys/dev/if_ndis/if_ndis.c @@ -3264,9 +3264,7 @@ ndis_scan(void *arg) ic = sc->ifp->if_l2com; vap = TAILQ_FIRST(&ic->ic_vaps); - NDIS_LOCK(sc); ndis_scan_results(sc); - NDIS_UNLOCK(sc); ieee80211_scan_done(vap); } @@ -3403,10 +3401,8 @@ ndis_scan_start(struct ieee80211com *ic) ss = ic->ic_scan; vap = TAILQ_FIRST(&ic->ic_vaps); - NDIS_LOCK(sc); if (!NDIS_INITIALIZED(sc)) { DPRINTF(("%s: scan aborted\n", __func__)); - NDIS_UNLOCK(sc); ieee80211_cancel_scan(vap); return; } @@ -3430,11 +3426,9 @@ ndis_scan_start(struct ieee80211com *ic) NULL, &len); if (error) { DPRINTF(("%s: scan command failed\n", __func__)); - NDIS_UNLOCK(sc); ieee80211_cancel_scan(vap); return; } - NDIS_UNLOCK(sc); /* Set a timer to collect the results */ callout_reset(&sc->ndis_scan_callout, hz * 3, ndis_scan, sc); } |
