rtlwifi: btcoex: Add rate table for the use of btcoex
authorPing-Ke Shih <pkshih@realtek.com>
Tue, 6 Mar 2018 01:25:45 +0000 (09:25 +0800)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 27 Mar 2018 08:54:45 +0000 (11:54 +0300)
The btcoex use the rate to rsolve IOT issue that some APs reduce TX
rate quickly, so it uses the RX rate as a clue to decide TDMA.

Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Acked-by: Larry Finger <Larry.Finger#lwfinger.net>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtcoutsrc.h

index fe793b787716819b78d2280d7350304db5c4a109..bc2388f3f953185a0181e3f467acb4bed318565f 100644 (file)
@@ -437,6 +437,100 @@ enum btc_notify_type_stack_operation {
        BTC_STACK_OP_MAX
 };
 
+enum {
+       BTC_CCK_1,
+       BTC_CCK_2,
+       BTC_CCK_5_5,
+       BTC_CCK_11,
+       BTC_OFDM_6,
+       BTC_OFDM_9,
+       BTC_OFDM_12,
+       BTC_OFDM_18,
+       BTC_OFDM_24,
+       BTC_OFDM_36,
+       BTC_OFDM_48,
+       BTC_OFDM_54,
+       BTC_MCS_0,
+       BTC_MCS_1,
+       BTC_MCS_2,
+       BTC_MCS_3,
+       BTC_MCS_4,
+       BTC_MCS_5,
+       BTC_MCS_6,
+       BTC_MCS_7,
+       BTC_MCS_8,
+       BTC_MCS_9,
+       BTC_MCS_10,
+       BTC_MCS_11,
+       BTC_MCS_12,
+       BTC_MCS_13,
+       BTC_MCS_14,
+       BTC_MCS_15,
+       BTC_MCS_16,
+       BTC_MCS_17,
+       BTC_MCS_18,
+       BTC_MCS_19,
+       BTC_MCS_20,
+       BTC_MCS_21,
+       BTC_MCS_22,
+       BTC_MCS_23,
+       BTC_MCS_24,
+       BTC_MCS_25,
+       BTC_MCS_26,
+       BTC_MCS_27,
+       BTC_MCS_28,
+       BTC_MCS_29,
+       BTC_MCS_30,
+       BTC_MCS_31,
+       BTC_VHT_1SS_MCS_0,
+       BTC_VHT_1SS_MCS_1,
+       BTC_VHT_1SS_MCS_2,
+       BTC_VHT_1SS_MCS_3,
+       BTC_VHT_1SS_MCS_4,
+       BTC_VHT_1SS_MCS_5,
+       BTC_VHT_1SS_MCS_6,
+       BTC_VHT_1SS_MCS_7,
+       BTC_VHT_1SS_MCS_8,
+       BTC_VHT_1SS_MCS_9,
+       BTC_VHT_2SS_MCS_0,
+       BTC_VHT_2SS_MCS_1,
+       BTC_VHT_2SS_MCS_2,
+       BTC_VHT_2SS_MCS_3,
+       BTC_VHT_2SS_MCS_4,
+       BTC_VHT_2SS_MCS_5,
+       BTC_VHT_2SS_MCS_6,
+       BTC_VHT_2SS_MCS_7,
+       BTC_VHT_2SS_MCS_8,
+       BTC_VHT_2SS_MCS_9,
+       BTC_VHT_3SS_MCS_0,
+       BTC_VHT_3SS_MCS_1,
+       BTC_VHT_3SS_MCS_2,
+       BTC_VHT_3SS_MCS_3,
+       BTC_VHT_3SS_MCS_4,
+       BTC_VHT_3SS_MCS_5,
+       BTC_VHT_3SS_MCS_6,
+       BTC_VHT_3SS_MCS_7,
+       BTC_VHT_3SS_MCS_8,
+       BTC_VHT_3SS_MCS_9,
+       BTC_VHT_4SS_MCS_0,
+       BTC_VHT_4SS_MCS_1,
+       BTC_VHT_4SS_MCS_2,
+       BTC_VHT_4SS_MCS_3,
+       BTC_VHT_4SS_MCS_4,
+       BTC_VHT_4SS_MCS_5,
+       BTC_VHT_4SS_MCS_6,
+       BTC_VHT_4SS_MCS_7,
+       BTC_VHT_4SS_MCS_8,
+       BTC_VHT_4SS_MCS_9,
+       BTC_MCS_32,
+       BTC_UNKNOWN,
+       BTC_PKT_MGNT,
+       BTC_PKT_CTRL,
+       BTC_PKT_UNKNOWN,
+       BTC_PKT_NOT_FOR_ME,
+       BTC_RATE_MAX
+};
+
 enum {
        BTC_MULTIPORT_SCC,
        BTC_MULTIPORT_MCC_2CHANNEL,