From 6bc40d8d83e01849a2f43f34280e431f595b91ab Mon Sep 17 00:00:00 2001 From: Adrian Chadd Date: Tue, 2 Jun 2020 22:37:53 +0000 Subject: [PATCH] [run] note that PHY_HT is for mixed mode. Submitted by: Ashish Gupta Differential Revision: https://reviews.freebsd.org/D25108 --- sys/dev/usb/wlan/if_run.c | 2 +- sys/dev/usb/wlan/if_runreg.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/dev/usb/wlan/if_run.c b/sys/dev/usb/wlan/if_run.c index 1852dba672d..0bd967a09b1 100644 --- a/sys/dev/usb/wlan/if_run.c +++ b/sys/dev/usb/wlan/if_run.c @@ -3397,7 +3397,7 @@ run_set_tx_desc(struct run_softc *sc, struct run_tx_data *data) mcs |= RT2860_PHY_OFDM; } else if (rt2860_rates[ridx].phy == IEEE80211_T_HT) { /* XXX TODO: [adrian] set short preamble for MCS? */ - mcs |= RT2860_PHY_HT; /* Mixed, not greenfield */ + mcs |= RT2860_PHY_HT_MIX; /* Mixed, not greenfield */ } txwi->phy = htole16(mcs); diff --git a/sys/dev/usb/wlan/if_runreg.h b/sys/dev/usb/wlan/if_runreg.h index 4333d7444ee..ded41b62b3e 100644 --- a/sys/dev/usb/wlan/if_runreg.h +++ b/sys/dev/usb/wlan/if_runreg.h @@ -781,7 +781,7 @@ struct rt2860_txwi { #define RT2860_PHY_MODE 0xc000 #define RT2860_PHY_CCK (0 << 14) #define RT2860_PHY_OFDM (1 << 14) -#define RT2860_PHY_HT (2 << 14) +#define RT2860_PHY_HT_MIX (2 << 14) #define RT2860_PHY_HT_GF (3 << 14) #define RT2860_PHY_SGI (1 << 8) #define RT2860_PHY_BW40 (1 << 7)