diff options
author | Stefan Sperling <stsp@cvs.openbsd.org> | 2016-01-25 15:14:23 +0000 |
---|---|---|
committer | Stefan Sperling <stsp@cvs.openbsd.org> | 2016-01-25 15:14:23 +0000 |
commit | 5bdfb57325d30a92040d4a666a895ff8763066ba (patch) | |
tree | 33b24aabd6447afe3f7ba44fc673b0b631e66d49 /sys/net80211/ieee80211_input.c | |
parent | 4c8e10bc8390da477e64975371bd8fc17db254cf (diff) |
Honour ERP protection on 2 GHz channels in 11n mode, as done for 11g.
ok millert@
Diffstat (limited to 'sys/net80211/ieee80211_input.c')
-rw-r--r-- | sys/net80211/ieee80211_input.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/net80211/ieee80211_input.c b/sys/net80211/ieee80211_input.c index 77c48d41bce..75736dc951e 100644 --- a/sys/net80211/ieee80211_input.c +++ b/sys/net80211/ieee80211_input.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ieee80211_input.c,v 1.153 2016/01/25 15:10:37 stsp Exp $ */ +/* $OpenBSD: ieee80211_input.c,v 1.154 2016/01/25 15:14:22 stsp Exp $ */ /*- * Copyright (c) 2001 Atsushi Onoe @@ -2299,7 +2299,9 @@ ieee80211_recv_assoc_resp(struct ieee80211com *ic, struct mbuf *m, /* * Honor ERP protection. */ - if (ic->ic_curmode == IEEE80211_MODE_11G && + if ((ic->ic_curmode == IEEE80211_MODE_11G || + (ic->ic_curmode == IEEE80211_MODE_11N && + IEEE80211_IS_CHAN_2GHZ(ni->ni_chan))) && (ni->ni_erp & IEEE80211_ERP_USE_PROTECTION)) ic->ic_flags |= IEEE80211_F_USEPROT; else |