Commit 0237f65a authored by Zong-Zhe Yang's avatar Zong-Zhe Yang Committed by Kalle Valo

rtw89: handle 6G band if supported by a chipset

For next chipset which can support 6G band, we add the handling
of ieee80211_supported_band for 6G band in advance. And a bitmap,
support_bands, is added to rtw89_chip_info to declare which
NL80211_BAND_* are supported. With the chipset's declaration,
we register the corresponding instances of ieee80211_supported_band
with wiphy.
Signed-off-by: default avatarZong-Zhe Yang <kevin_yang@realtek.com>
Signed-off-by: default avatarPing-Ke Shih <pkshih@realtek.com>
Signed-off-by: default avatarKalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20220113011042.6705-1-pkshih@realtek.com
parent 14f0999d
This diff is collapsed.
...@@ -203,6 +203,7 @@ enum rtw89_port { ...@@ -203,6 +203,7 @@ enum rtw89_port {
enum rtw89_band { enum rtw89_band {
RTW89_BAND_2G = 0, RTW89_BAND_2G = 0,
RTW89_BAND_5G = 1, RTW89_BAND_5G = 1,
RTW89_BAND_6G = 2,
RTW89_BAND_MAX, RTW89_BAND_MAX,
}; };
...@@ -568,6 +569,7 @@ struct rtw89_channel_params { ...@@ -568,6 +569,7 @@ struct rtw89_channel_params {
u8 primary_chan; u8 primary_chan;
u8 bandwidth; u8 bandwidth;
u8 pri_ch_idx; u8 pri_ch_idx;
u8 band_type;
}; };
struct rtw89_channel_help_params { struct rtw89_channel_help_params {
...@@ -2204,6 +2206,7 @@ struct rtw89_chip_info { ...@@ -2204,6 +2206,7 @@ struct rtw89_chip_info {
const struct rtw89_hfc_param_ini *hfc_param_ini; const struct rtw89_hfc_param_ini *hfc_param_ini;
const struct rtw89_dle_mem *dle_mem; const struct rtw89_dle_mem *dle_mem;
u32 rf_base_addr[2]; u32 rf_base_addr[2];
u8 support_bands;
u8 rf_path_num; u8 rf_path_num;
u8 tx_nss; u8 tx_nss;
u8 rx_nss; u8 rx_nss;
......
...@@ -2022,6 +2022,8 @@ const struct rtw89_chip_info rtw8852a_chip_info = { ...@@ -2022,6 +2022,8 @@ const struct rtw89_chip_info rtw8852a_chip_info = {
.txpwr_factor_rf = 2, .txpwr_factor_rf = 2,
.txpwr_factor_mac = 1, .txpwr_factor_mac = 1,
.dig_table = &rtw89_8852a_phy_dig_table, .dig_table = &rtw89_8852a_phy_dig_table,
.support_bands = BIT(NL80211_BAND_2GHZ) |
BIT(NL80211_BAND_5GHZ),
.rf_path_num = 2, .rf_path_num = 2,
.tx_nss = 2, .tx_nss = 2,
.rx_nss = 2, .rx_nss = 2,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment