diff mbox

[03/15] rtlwifi: btcoex: Add enum DM_INFO for btcoex to query dm's counters

Message ID 20180228030718.19510-4-pkshih@realtek.com (mailing list archive)
State Changes Requested
Delegated to: Kalle Valo
Headers show

Commit Message

Ping-Ke Shih Feb. 28, 2018, 3:07 a.m. UTC
From: Ping-Ke Shih <pkshih@realtek.com>

btcoex uses dm's counters to check the envoriment is nosiy or not. If it
is clean, btcoex set more time solts to WiFi so that it can transimt as
soon as possible. That will save time, and BT will have more time solts
after WiFi traffic is complete.

Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
---
 drivers/net/wireless/realtek/rtlwifi/wifi.h | 32 +++++++++++++++++++++++++++++
 1 file changed, 32 insertions(+)

Comments

Larry Finger March 2, 2018, 10:19 p.m. UTC | #1
On 02/27/2018 09:07 PM, pkshih@realtek.com wrote:
> From: Ping-Ke Shih <pkshih@realtek.com>
> 
> btcoex uses dm's counters to check the envoriment is nosiy or not. If it
> is clean, btcoex set more time solts to WiFi so that it can transimt as
> soon as possible. That will save time, and BT will have more time solts
> after WiFi traffic is complete.
> 
> Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>

The commit message needs to have the following typos fixed:
envoriment should be environment
nosiy should be noisy
solts should be slots (2 places)
transimt should be transmit

Yes, I know it is difficult to write in a second language.

Larry



> ---
>   drivers/net/wireless/realtek/rtlwifi/wifi.h | 32 +++++++++++++++++++++++++++++
>   1 file changed, 32 insertions(+)
> 
> diff --git a/drivers/net/wireless/realtek/rtlwifi/wifi.h b/drivers/net/wireless/realtek/rtlwifi/wifi.h
> index 4f48b934ec01..438678c2d14a 100644
> --- a/drivers/net/wireless/realtek/rtlwifi/wifi.h
> +++ b/drivers/net/wireless/realtek/rtlwifi/wifi.h
> @@ -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;
>
Ping-Ke Shih March 3, 2018, 5:12 a.m. UTC | #2
On Fri, 2018-03-02 at 16:19 -0600, Larry Finger wrote:
> On 02/27/2018 09:07 PM, pkshih@realtek.com wrote:

> > From: Ping-Ke Shih <pkshih@realtek.com>

> > 

> > btcoex uses dm's counters to check the envoriment is nosiy or not. If it

> > is clean, btcoex set more time solts to WiFi so that it can transimt as

> > soon as possible. That will save time, and BT will have more time solts

> > after WiFi traffic is complete.

> > 

> > Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>

> 

> The commit message needs to have the following typos fixed:

> envoriment should be environment

> nosiy should be noisy

> solts should be slots (2 places)

> transimt should be transmit

> 

I must be tired at that time :-(
I'll fix them in v2.

> Yes, I know it is difficult to write in a second language.

> 

Indeed. I'll keep to practice.

PK
diff mbox

Patch

diff --git a/drivers/net/wireless/realtek/rtlwifi/wifi.h b/drivers/net/wireless/realtek/rtlwifi/wifi.h
index 4f48b934ec01..438678c2d14a 100644
--- a/drivers/net/wireless/realtek/rtlwifi/wifi.h
+++ b/drivers/net/wireless/realtek/rtlwifi/wifi.h
@@ -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;