summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2002-05-13 21:17:33 +0000
committerimp <imp@FreeBSD.org>2002-05-13 21:17:33 +0000
commit3b9783087c35ae2dad21a16c102ca6b3a5d822e6 (patch)
treeb94d7f136cd330afbceabcc6385628f7a65a4981 /sys
parentf9345cd24221f3dbbe5b4e307c059993dad71cce (diff)
downloadFreeBSD-src-3b9783087c35ae2dad21a16c102ca6b3a5d822e6.zip
FreeBSD-src-3b9783087c35ae2dad21a16c102ca6b3a5d822e6.tar.gz
BDE and I have had a chance to hash this out:
o Use splnet() instead of splclock(). o Use splnet() instead of splimp(). Reviewed by: bde
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/wi/wi_hostap.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/dev/wi/wi_hostap.c b/sys/dev/wi/wi_hostap.c
index 125c90c..c91c81d 100644
--- a/sys/dev/wi/wi_hostap.c
+++ b/sys/dev/wi/wi_hostap.c
@@ -294,7 +294,7 @@ wihap_shutdown(struct wi_softc *sc)
* a single broadcast. Maybe try that someday.
*/
- s = splclock();
+ s = splimp();
sta = LIST_FIRST(&whi->sta_list);
while (sta) {
untimeout(wihap_sta_timeout, sta, sta->tmo);
@@ -345,7 +345,7 @@ wihap_sta_timeout(void *v)
struct wihap_info *whi = &sc->wi_hostap_info;
int s;
- s = splimp();
+ s = splnet();
if (sta->flags & WI_SIFLAGS_ASSOC) {
if (sc->arpcom.ac_if.if_flags & IFF_DEBUG)
device_printf(sc->dev, "inactivity disassoc: %6D\n",
@@ -938,7 +938,7 @@ wihap_mgmt_input(struct wi_softc *sc, struct wi_frame *rxfrm, struct mbuf *m)
htole16(WI_FTYPE_MGMT)) {
/* any of the following will mess w/ the station list */
- s = splclock(); /* XXX */
+ s = splnet();
switch (le16toh(rxfrm->wi_frame_ctl) & WI_FCTL_STYPE) {
case WI_STYPE_MGMT_ASREQ:
wihap_assoc_req(sc, rxfrm, pkt, len);
@@ -985,7 +985,7 @@ wihap_sta_is_assoc(struct wihap_info *whi, u_int8_t addr[])
struct wihap_sta_info *sta;
int retval, s;
- s = splclock();
+ s = splnet();
retval = 0;
sta = wihap_sta_find(whi, addr);
if (sta != NULL && (sta->flags & WI_SIFLAGS_ASSOC)) {
@@ -1015,7 +1015,7 @@ wihap_check_tx(struct wihap_info *whi, u_int8_t addr[], u_int8_t *txrate)
*txrate = 0; /* XXX: multicast rate? */
return(1);
}
- s = splclock();
+ s = splnet();
sta = wihap_sta_find(whi, addr);
if (sta != NULL && (sta->flags & WI_SIFLAGS_ASSOC)) {
/* Keep it active. */
OpenPOWER on IntegriCloud