Author: adrian
Date: Tue Jun  2 22:37:53 2020
New Revision: 361738
URL: https://svnweb.freebsd.org/changeset/base/361738

Log:
  [run] note that PHY_HT is for mixed mode.
  
  Submitted by: Ashish Gupta <ashis...@andrew.cmu.edu>
  Differential Revision:        https://reviews.freebsd.org/D25108

Modified:
  head/sys/dev/usb/wlan/if_run.c
  head/sys/dev/usb/wlan/if_runreg.h

Modified: head/sys/dev/usb/wlan/if_run.c
==============================================================================
--- head/sys/dev/usb/wlan/if_run.c      Tue Jun  2 22:36:17 2020        
(r361737)
+++ head/sys/dev/usb/wlan/if_run.c      Tue Jun  2 22:37:53 2020        
(r361738)
@@ -3397,7 +3397,7 @@ run_set_tx_desc(struct run_softc *sc, struct run_tx_da
                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);
 

Modified: head/sys/dev/usb/wlan/if_runreg.h
==============================================================================
--- head/sys/dev/usb/wlan/if_runreg.h   Tue Jun  2 22:36:17 2020        
(r361737)
+++ head/sys/dev/usb/wlan/if_runreg.h   Tue Jun  2 22:37:53 2020        
(r361738)
@@ -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)
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to