rc.h 938 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /******************************************************************************
  3. *
  4. * Copyright(c) 2009-2012 Realtek Corporation.
  5. *
  6. * Contact Information:
  7. * wlanfae <wlanfae@realtek.com>
  8. * Realtek Corporation, No. 2, Innovation Road II, Hsinchu Science Park,
  9. * Hsinchu 300, Taiwan.
  10. *
  11. * Larry Finger <Larry.Finger@lwfinger.net>
  12. *
  13. *****************************************************************************/
  14. #ifndef __RTL_RC_H__
  15. #define __RTL_RC_H__
  16. #define B_MODE_MAX_RIX 3
  17. #define G_MODE_MAX_RIX 11
  18. #define A_MODE_MAX_RIX 7
  19. /* in mac80211 mcs0-mcs15 is idx0-idx15*/
  20. #define N_MODE_MCS7_RIX 7
  21. #define N_MODE_MCS15_RIX 15
  22. /* in mac80211 vht mcs0-9 is in [3:0], nss is in [:4] */
  23. #define AC_MODE_MCS7_RIX 7
  24. #define AC_MODE_MCS8_RIX 8
  25. #define AC_MODE_MCS9_RIX 9
  26. struct rtl_rate_priv {
  27. u8 ht_cap;
  28. };
  29. int rtl_rate_control_register(void);
  30. void rtl_rate_control_unregister(void);
  31. #endif