Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 2 Jan 2007 03:30:31 GMT
From:      Kip Macy <kmacy@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 112410 for review
Message-ID:  <200701020330.l023UVUR080337@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=112410

Change 112410 by kmacy@kmacy_serendipity:sam_wifi on 2007/01/02 03:30:17

	fix read / write of the MAC register errors mentioned in the previous
	commit by serializing the task queue functions with respect to each 
	other 
	(this commit is happening over ural)

Affected files ...

.. //depot/projects/wifi/sys/dev/usb/if_ural.c#13 edit

Differences ...

==== //depot/projects/wifi/sys/dev/usb/if_ural.c#13 (text+ko) ====

@@ -737,6 +737,7 @@
 
 	ostate = ic->ic_state;
 
+	RAL_LOCK(sc);
 	switch (sc->sc_state) {
 	case IEEE80211_S_INIT:
 		if (ostate == IEEE80211_S_RUN) {
@@ -791,6 +792,7 @@
 		break;
 	}
 
+	RAL_UNLOCK(sc);
 	sc->sc_newstate(ic, sc->sc_state, -1);
 }
 
@@ -801,6 +803,7 @@
 	struct ieee80211com *ic = &sc->sc_ic;
 	struct ifnet *ifp = ic->ic_ifp;
 
+	RAL_LOCK(sc);
 	if (sc->sc_scan_action == URAL_SCAN_START) {
 		/* abort TSF synchronization */
 		ural_write(sc, RAL_TXRX_CSR19, 0);
@@ -814,6 +817,7 @@
 		/* XXX keep local copy */
 		ural_set_bssid(sc, ic->ic_bss->ni_bssid);
 	} 
+	RAL_UNLOCK(sc);
 }
 
 static int



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200701020330.l023UVUR080337>