diff options
author | 2007-07-05 21:35:45 +0000 | |
---|---|---|
committer | 2007-07-05 21:35:45 +0000 | |
commit | 090575b674a081f02bb74ddb9edae1973ca9477b (patch) | |
tree | df66064d3cb7d98957a55652d182bf97462d368d | |
parent | some HT frames may have an additional HT Control field. (diff) | |
download | wireguard-openbsd-090575b674a081f02bb74ddb9edae1973ca9477b.tar.xz wireguard-openbsd-090575b674a081f02bb74ddb9edae1973ca9477b.zip |
always set the IEEE80211_CAPINFO_ESS bit in association requests.
fixes my 1.36 commit (the bit should not be set for non-AP STA
only in Probe Responses and Beacons).
-rw-r--r-- | sys/net80211/ieee80211_output.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/sys/net80211/ieee80211_output.c b/sys/net80211/ieee80211_output.c index 9a7eac7895b..08b2c2832f4 100644 --- a/sys/net80211/ieee80211_output.c +++ b/sys/net80211/ieee80211_output.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ieee80211_output.c,v 1.42 2007/07/05 20:29:22 damien Exp $ */ +/* $OpenBSD: ieee80211_output.c,v 1.43 2007/07/05 21:35:45 damien Exp $ */ /* $NetBSD: ieee80211_output.c,v 1.13 2004/05/31 11:02:55 dyoung Exp $ */ /*- @@ -1181,12 +1181,7 @@ ieee80211_get_assoc_req(struct ieee80211com *ic, struct ieee80211_node *ni, m->m_data += sizeof(struct ieee80211_frame); frm = mtod(m, u_int8_t *); - if (ic->ic_opmode == IEEE80211_M_IBSS) - capinfo = IEEE80211_CAPINFO_IBSS; - else if (ic->ic_opmode == IEEE80211_M_HOSTAP) - capinfo = IEEE80211_CAPINFO_ESS; - else - capinfo = 0; + capinfo = IEEE80211_CAPINFO_ESS; if (ic->ic_flags & IEEE80211_F_WEPON) capinfo |= IEEE80211_CAPINFO_PRIVACY; /* |