diff mbox

[07/10] rtlwifi: add definition radio_mask for RF and maximum bandwidth

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

Commit Message

Ping-Ke Shih Jan. 26, 2018, 7:46 a.m. UTC
From: Ping-Ke Shih <pkshih@realtek.com>

Add rf mask definition (BIT 0, BIT 1, BIT 2, ...) that is different from
rf path definition (0, 1, 2, ...), and then combinations of rf path are
possible.

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

Comments

Larry Finger Jan. 27, 2018, 7:35 p.m. UTC | #1
On 01/26/2018 01:46 AM, pkshih@realtek.com wrote:
> From: Ping-Ke Shih <pkshih@realtek.com>
> 
> Add rf mask definition (BIT 0, BIT 1, BIT 2, ...) that is different from
> rf path definition (0, 1, 2, ...), and then combinations of rf path are
> possible.
> 
> Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>

I agree that an rf path mask is useful.

Acked-by: Larry Finger <Larry.Finger@lwfinger.net>

> ---
>   drivers/net/wireless/realtek/rtlwifi/wifi.h | 8 ++++++++
>   1 file changed, 8 insertions(+)
> 
> diff --git a/drivers/net/wireless/realtek/rtlwifi/wifi.h b/drivers/net/wireless/realtek/rtlwifi/wifi.h
> index 4de2ab1d5416..2e9a20273a2d 100644
> --- a/drivers/net/wireless/realtek/rtlwifi/wifi.h
> +++ b/drivers/net/wireless/realtek/rtlwifi/wifi.h
> @@ -286,6 +286,13 @@ enum radio_path {
>   	RF90_PATH_D = 3,
>   };
>   
> +enum radio_mask {
> +	RF_MASK_A = BIT(0),
> +	RF_MASK_B = BIT(1),
> +	RF_MASK_C = BIT(2),
> +	RF_MASK_D = BIT(3),
> +};
> +
>   enum regulation_txpwr_lmt {
>   	TXPWR_LMT_FCC = 0,
>   	TXPWR_LMT_MKK = 1,
> @@ -579,6 +586,7 @@ enum ht_channel_width {
>   	HT_CHANNEL_WIDTH_20 = 0,
>   	HT_CHANNEL_WIDTH_20_40 = 1,
>   	HT_CHANNEL_WIDTH_80 = 2,
> +	HT_CHANNEL_WIDTH_MAX,
>   };
>   
>   /* Ref: 802.11i sepc D10.0 7.3.2.25.1
>
diff mbox

Patch

diff --git a/drivers/net/wireless/realtek/rtlwifi/wifi.h b/drivers/net/wireless/realtek/rtlwifi/wifi.h
index 4de2ab1d5416..2e9a20273a2d 100644
--- a/drivers/net/wireless/realtek/rtlwifi/wifi.h
+++ b/drivers/net/wireless/realtek/rtlwifi/wifi.h
@@ -286,6 +286,13 @@  enum radio_path {
 	RF90_PATH_D = 3,
 };
 
+enum radio_mask {
+	RF_MASK_A = BIT(0),
+	RF_MASK_B = BIT(1),
+	RF_MASK_C = BIT(2),
+	RF_MASK_D = BIT(3),
+};
+
 enum regulation_txpwr_lmt {
 	TXPWR_LMT_FCC = 0,
 	TXPWR_LMT_MKK = 1,
@@ -579,6 +586,7 @@  enum ht_channel_width {
 	HT_CHANNEL_WIDTH_20 = 0,
 	HT_CHANNEL_WIDTH_20_40 = 1,
 	HT_CHANNEL_WIDTH_80 = 2,
+	HT_CHANNEL_WIDTH_MAX,
 };
 
 /* Ref: 802.11i sepc D10.0 7.3.2.25.1