mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-10 07:59:42 -04:00
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: Martin Kaistra <martin.kaistra@linutronix.de> Reviewed-by: Ping-Ke Shih <pkshih@realtek.com> Signed-off-by: Kalle Valo <kvalo@kernel.org> Link: https://lore.kernel.org/r/20230428150833.218605-18-martin.kaistra@linutronix.de
This commit is contained in:
committed by
Kalle Valo
parent
19b396c241
commit
b468481c9a
@@ -1943,6 +1943,7 @@ struct rtl8xxxu_fileops {
|
||||
u8 init_reg_hmtfr:1;
|
||||
u8 ampdu_max_time;
|
||||
u8 ustime_tsf_edca;
|
||||
u8 supports_ap:1;
|
||||
u32 adda_1t_init;
|
||||
u32 adda_1t_path_on;
|
||||
u32 adda_2t_path_on_a;
|
||||
|
||||
@@ -1748,6 +1748,7 @@ struct rtl8xxxu_fileops rtl8188fu_fops = {
|
||||
.init_reg_hmtfr = 1,
|
||||
.ampdu_max_time = 0x70,
|
||||
.ustime_tsf_edca = 0x28,
|
||||
.supports_ap = 1,
|
||||
.adda_1t_init = 0x03c00014,
|
||||
.adda_1t_path_on = 0x03c00014,
|
||||
.trxff_boundary = 0x3f7f,
|
||||
|
||||
@@ -7533,6 +7533,8 @@ static int rtl8xxxu_probe(struct usb_interface *interface,
|
||||
hw->wiphy->max_scan_ssids = 1;
|
||||
hw->wiphy->max_scan_ie_len = IEEE80211_MAX_DATA_LEN;
|
||||
hw->wiphy->interface_modes = BIT(NL80211_IFTYPE_STATION);
|
||||
if (priv->fops->supports_ap)
|
||||
hw->wiphy->interface_modes |= BIT(NL80211_IFTYPE_AP);
|
||||
hw->queues = 4;
|
||||
|
||||
sband = &rtl8xxxu_supported_band;
|
||||
|
||||
Reference in New Issue
Block a user