PERFORCE change 112410 for review
Kip Macy
kmacy at FreeBSD.org
Mon Jan 1 19:30:32 PST 2007
http://perforce.freebsd.org/chv.cgi?CH=112410
Change 112410 by kmacy at 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
More information about the p4-projects
mailing list