Commit b468481c authored by Martin Kaistra's avatar Martin Kaistra Committed by Kalle Valo

wifi: rtl8xxxu: Declare AP mode support for 8188f

Everything is in place now for AP mode, we can tell the system that we
support it. Put the feature behind a flag in priv->fops, because it is
not (yet) implemented for all chips.
Signed-off-by: default avatarMartin Kaistra <martin.kaistra@linutronix.de>
Reviewed-by: default avatarPing-Ke Shih <pkshih@realtek.com>
Signed-off-by: default avatarKalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20230428150833.218605-18-martin.kaistra@linutronix.de
parent 19b396c2
...@@ -1943,6 +1943,7 @@ struct rtl8xxxu_fileops { ...@@ -1943,6 +1943,7 @@ struct rtl8xxxu_fileops {
u8 init_reg_hmtfr:1; u8 init_reg_hmtfr:1;
u8 ampdu_max_time; u8 ampdu_max_time;
u8 ustime_tsf_edca; u8 ustime_tsf_edca;
u8 supports_ap:1;
u32 adda_1t_init; u32 adda_1t_init;
u32 adda_1t_path_on; u32 adda_1t_path_on;
u32 adda_2t_path_on_a; u32 adda_2t_path_on_a;
......
...@@ -1748,6 +1748,7 @@ struct rtl8xxxu_fileops rtl8188fu_fops = { ...@@ -1748,6 +1748,7 @@ struct rtl8xxxu_fileops rtl8188fu_fops = {
.init_reg_hmtfr = 1, .init_reg_hmtfr = 1,
.ampdu_max_time = 0x70, .ampdu_max_time = 0x70,
.ustime_tsf_edca = 0x28, .ustime_tsf_edca = 0x28,
.supports_ap = 1,
.adda_1t_init = 0x03c00014, .adda_1t_init = 0x03c00014,
.adda_1t_path_on = 0x03c00014, .adda_1t_path_on = 0x03c00014,
.trxff_boundary = 0x3f7f, .trxff_boundary = 0x3f7f,
......
...@@ -7533,6 +7533,8 @@ static int rtl8xxxu_probe(struct usb_interface *interface, ...@@ -7533,6 +7533,8 @@ static int rtl8xxxu_probe(struct usb_interface *interface,
hw->wiphy->max_scan_ssids = 1; hw->wiphy->max_scan_ssids = 1;
hw->wiphy->max_scan_ie_len = IEEE80211_MAX_DATA_LEN; hw->wiphy->max_scan_ie_len = IEEE80211_MAX_DATA_LEN;
hw->wiphy->interface_modes = BIT(NL80211_IFTYPE_STATION); hw->wiphy->interface_modes = BIT(NL80211_IFTYPE_STATION);
if (priv->fops->supports_ap)
hw->wiphy->interface_modes |= BIT(NL80211_IFTYPE_AP);
hw->queues = 4; hw->queues = 4;
sband = &rtl8xxxu_supported_band; sband = &rtl8xxxu_supported_band;
......
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