summaryrefslogtreecommitdiffstats
path: root/sys/net80211/ieee80211_ht.c
diff options
context:
space:
mode:
authorsam <sam@FreeBSD.org>2008-08-02 18:04:09 +0000
committersam <sam@FreeBSD.org>2008-08-02 18:04:09 +0000
commit64e56d4fb393ea97301af62150a4a534afa81492 (patch)
tree255dcffdb805cf663a152601d962e2833db02d39 /sys/net80211/ieee80211_ht.c
parent23d20752467b10db5258c0c0d773f9ccc7d615fe (diff)
downloadFreeBSD-src-64e56d4fb393ea97301af62150a4a534afa81492.zip
FreeBSD-src-64e56d4fb393ea97301af62150a4a534afa81492.tar.gz
add missing lock for htinfo update
Submitted by: Chris Zimmermann
Diffstat (limited to 'sys/net80211/ieee80211_ht.c')
-rw-r--r--sys/net80211/ieee80211_ht.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/net80211/ieee80211_ht.c b/sys/net80211/ieee80211_ht.c
index 7428f0c..22d5de3 100644
--- a/sys/net80211/ieee80211_ht.c
+++ b/sys/net80211/ieee80211_ht.c
@@ -1074,6 +1074,7 @@ ieee80211_htprot_update(struct ieee80211com *ic, int protmode)
OPMODE(protmode) == IEEE80211_HTINFO_OPMODE_PROTOPT)
return;
+ IEEE80211_LOCK(ic);
/* track non-HT station presence */
KASSERT(protmode & IEEE80211_HTINFO_NONHT_PRESENT,
("missing NONHT_PRESENT"));
@@ -1083,6 +1084,7 @@ ieee80211_htprot_update(struct ieee80211com *ic, int protmode)
/* push beacon update */
ic->ic_curhtprotmode = protmode;
htinfo_notify(ic);
+ IEEE80211_UNLOCK(ic);
#undef OPMODE
}
OpenPOWER on IntegriCloud