diff options
author | Stefan Sperling <stsp@cvs.openbsd.org> | 2020-03-31 07:27:31 +0000 |
---|---|---|
committer | Stefan Sperling <stsp@cvs.openbsd.org> | 2020-03-31 07:27:31 +0000 |
commit | 47d6e8b7bd588b3011fde08ed5f29e22e94d6ee3 (patch) | |
tree | 98a88b0b744aaafe81c4088c4f59c719b4233f17 | |
parent | fe0ff626ac5859ad3f1d4f5bbd79810d921a384c (diff) |
When using a fixed Tx MCS in iwx(4) enable SGI if the peer supports it.
This fix is needed for benchmarking MiRa against a fixed Tx rate, since
MiRA will also use SGI if available.
-rw-r--r-- | sys/dev/pci/if_iwx.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/pci/if_iwx.c b/sys/dev/pci/if_iwx.c index 5155a5a6991..aa93602cce9 100644 --- a/sys/dev/pci/if_iwx.c +++ b/sys/dev/pci/if_iwx.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_iwx.c,v 1.7 2020/02/29 09:42:15 stsp Exp $ */ +/* $OpenBSD: if_iwx.c,v 1.8 2020/03/31 07:27:30 stsp Exp $ */ /* * Copyright (c) 2014, 2016 genua gmbh <info@genua.de> @@ -4141,6 +4141,8 @@ iwx_tx_fill_cmd(struct iwx_softc *sc, struct iwx_node *in, if ((ni->ni_flags & IEEE80211_NODE_HT) && rinfo->ht_plcp != IWX_RATE_HT_SISO_MCS_INV_PLCP) { rate_flags |= IWX_RATE_MCS_HT_MSK; + if (ieee80211_node_supports_ht_sgi20(ni)) + rate_flags |= IWX_RATE_MCS_SGI_MSK; tx->rate_n_flags = htole32(rate_flags | rinfo->ht_plcp); } else tx->rate_n_flags = htole32(rate_flags | rinfo->plcp); |