rtlwifi: btcoex: Add enum DM_INFO for btcoex to query dm's counters
authorPing-Ke Shih <pkshih@realtek.com>
Tue, 6 Mar 2018 01:25:42 +0000 (09:25 +0800)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 27 Mar 2018 08:54:39 +0000 (11:54 +0300)
btcoex uses dm's counters to check the environment is noisy or not. If it
is clean, btcoex set more time slots to WiFi so that it can transmit as
soon as possible. That will save time, and BT will have more time slots
after WiFi traffic is complete.

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/wifi.h

index 4f48b934ec01842c9d2f4c9ce37828f0f145df77..438678c2d14a759773f0ed45021726512dcc3a31 100644 (file)
@@ -977,6 +977,38 @@ enum rtl_spec_ver {
        RTL_SPEC_EXT_C2H = BIT(2),      /* extend FW C2H (e.g. TX REPORT) */
 };
 
+enum dm_info_query {
+       DM_INFO_FA_OFDM,
+       DM_INFO_FA_CCK,
+       DM_INFO_FA_TOTAL,
+       DM_INFO_CCA_OFDM,
+       DM_INFO_CCA_CCK,
+       DM_INFO_CCA_ALL,
+       DM_INFO_CRC32_OK_VHT,
+       DM_INFO_CRC32_OK_HT,
+       DM_INFO_CRC32_OK_LEGACY,
+       DM_INFO_CRC32_OK_CCK,
+       DM_INFO_CRC32_ERROR_VHT,
+       DM_INFO_CRC32_ERROR_HT,
+       DM_INFO_CRC32_ERROR_LEGACY,
+       DM_INFO_CRC32_ERROR_CCK,
+       DM_INFO_EDCCA_FLAG,
+       DM_INFO_OFDM_ENABLE,
+       DM_INFO_CCK_ENABLE,
+       DM_INFO_CRC32_OK_HT_AGG,
+       DM_INFO_CRC32_ERROR_HT_AGG,
+       DM_INFO_DBG_PORT_0,
+       DM_INFO_CURR_IGI,
+       DM_INFO_RSSI_MIN,
+       DM_INFO_RSSI_MAX,
+       DM_INFO_CLM_RATIO,
+       DM_INFO_NHM_RATIO,
+       DM_INFO_IQK_ALL,
+       DM_INFO_IQK_OK,
+       DM_INFO_IQK_NG,
+       DM_INFO_SIZE,
+};
+
 struct octet_string {
        u8 *octet;
        u16 length;