summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Sperling <stsp@cvs.openbsd.org>2020-05-19 08:34:20 +0000
committerStefan Sperling <stsp@cvs.openbsd.org>2020-05-19 08:34:20 +0000
commitf53a44d68375ee9062facd570873321cdbfe7aa1 (patch)
treecf2996fc7327ff0bbc3f99f73f84507e08031e55
parent7db17c362d42492c4d042f71506f76c2ef4bd3e3 (diff)
Do not set the 802.11 ESS capability bit in association requests.
The ESS capability bit should be set if the transmitter is an AP. Association requests are sent by clients. ok jca@
-rw-r--r--sys/net80211/ieee80211_output.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net80211/ieee80211_output.c b/sys/net80211/ieee80211_output.c
index 7952471d5bb..8d19281f5c5 100644
--- a/sys/net80211/ieee80211_output.c
+++ b/sys/net80211/ieee80211_output.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ieee80211_output.c,v 1.129 2020/03/06 11:54:49 stsp Exp $ */
+/* $OpenBSD: ieee80211_output.c,v 1.130 2020/05/19 08:34:19 stsp Exp $ */
/* $NetBSD: ieee80211_output.c,v 1.13 2004/05/31 11:02:55 dyoung Exp $ */
/*-
@@ -1384,7 +1384,7 @@ ieee80211_get_assoc_req(struct ieee80211com *ic, struct ieee80211_node *ni,
return NULL;
frm = mtod(m, u_int8_t *);
- capinfo = IEEE80211_CAPINFO_ESS;
+ capinfo = 0;
if (ic->ic_flags & IEEE80211_F_WEPON)
capinfo |= IEEE80211_CAPINFO_PRIVACY;
if ((ic->ic_flags & IEEE80211_F_SHPREAMBLE) &&