diff options
author | Stefan Sperling <stsp@cvs.openbsd.org> | 2020-03-31 07:23:24 +0000 |
---|---|---|
committer | Stefan Sperling <stsp@cvs.openbsd.org> | 2020-03-31 07:23:24 +0000 |
commit | fe0ff626ac5859ad3f1d4f5bbd79810d921a384c (patch) | |
tree | 5c425f26511b920f78d50cf8f64363dda8bcd316 | |
parent | 180675063ddcc3c7cbd9c69efdc519bf5e459fc6 (diff) |
When using a fixed Tx MCS in iwm(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_iwm.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/pci/if_iwm.c b/sys/dev/pci/if_iwm.c index c6963275801..9358d07df78 100644 --- a/sys/dev/pci/if_iwm.c +++ b/sys/dev/pci/if_iwm.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_iwm.c,v 1.300 2020/02/29 09:41:58 stsp Exp $ */ +/* $OpenBSD: if_iwm.c,v 1.301 2020/03/31 07:23:23 stsp Exp $ */ /* * Copyright (c) 2014, 2016 genua gmbh <info@genua.de> @@ -4801,6 +4801,8 @@ iwm_tx_fill_cmd(struct iwm_softc *sc, struct iwm_node *in, if ((ni->ni_flags & IEEE80211_NODE_HT) && rinfo->ht_plcp != IWM_RATE_HT_SISO_MCS_INV_PLCP) { rate_flags |= IWM_RATE_MCS_HT_MSK; + if (ieee80211_node_supports_ht_sgi20(ni)) + rate_flags |= IWM_RATE_MCS_SGI_MSK; tx->rate_n_flags = htole32(rate_flags | rinfo->ht_plcp); } else tx->rate_n_flags = htole32(rate_flags | rinfo->plcp); |