summaryrefslogtreecommitdiff
path: root/sys/net80211/ieee80211_node.c
diff options
context:
space:
mode:
authorStefan Sperling <stsp@cvs.openbsd.org>2019-07-23 18:56:24 +0000
committerStefan Sperling <stsp@cvs.openbsd.org>2019-07-23 18:56:24 +0000
commit65fd19754520890eee46e2008b4a27776fab4020 (patch)
treea3dc891bc61b6e7ff902fc423af0ae9531814da5 /sys/net80211/ieee80211_node.c
parentb6793854ab544ab1beea04a9256f17b396bade3f (diff)
In 11n hostap mode, properly disable HT protection when needed
by actually overwriting the relevant bits in ni_htop1. ok tedu@ phessler@ kettenis@
Diffstat (limited to 'sys/net80211/ieee80211_node.c')
-rw-r--r--sys/net80211/ieee80211_node.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net80211/ieee80211_node.c b/sys/net80211/ieee80211_node.c
index 72591ad9db6..925c7347070 100644
--- a/sys/net80211/ieee80211_node.c
+++ b/sys/net80211/ieee80211_node.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ieee80211_node.c,v 1.168 2019/06/10 16:33:02 stsp Exp $ */
+/* $OpenBSD: ieee80211_node.c,v 1.169 2019/07/23 18:56:23 stsp Exp $ */
/* $NetBSD: ieee80211_node.c,v 1.14 2004/05/09 09:18:47 dyoung Exp $ */
/*-
@@ -2074,7 +2074,7 @@ ieee80211_clean_nodes(struct ieee80211com *ic, int cache_timeout)
if ((htop1 & IEEE80211_HTOP1_PROT_MASK) != htprot) {
htop1 &= ~IEEE80211_HTOP1_PROT_MASK;
htop1 |= htprot;
- ic->ic_bss->ni_htop1 |= htop1;
+ ic->ic_bss->ni_htop1 = htop1;
ic->ic_protmode = protmode;
if (ic->ic_update_htprot)
ic->ic_update_htprot(ic, ic->ic_bss);