GNU Linux-libre 4.19.263-gnu1
[releases.git] / drivers / staging / rtlwifi / rc.h
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
15 #ifndef __RTL_RC_H__
16 #define __RTL_RC_H__
17
18 #define B_MODE_MAX_RIX 3
19 #define G_MODE_MAX_RIX 11
20 #define A_MODE_MAX_RIX 7
21
22 /* in mac80211 mcs0-mcs15 is idx0-idx15*/
23 #define N_MODE_MCS7_RIX 7
24 #define N_MODE_MCS15_RIX 15
25
26 /* in mac80211 vht mcs0-9 is in [3:0], nss is in [:4] */
27 #define AC_MODE_MCS7_RIX 7
28 #define AC_MODE_MCS8_RIX 8
29 #define AC_MODE_MCS9_RIX 9
30
31 struct rtl_rate_priv {
32         u8 ht_cap;
33 };
34
35 int rtl_rate_control_register(void);
36 void rtl_rate_control_unregister(void);
37
38 #endif