]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
rtw89: declare AP mode support
authorPing-Ke Shih <pkshih@realtek.com>
Mon, 7 Feb 2022 06:39:00 +0000 (14:39 +0800)
committerKalle Valo <kvalo@kernel.org>
Thu, 10 Feb 2022 08:40:52 +0000 (10:40 +0200)
Things are ready for AP mode, so declare this driver can support it.

Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20220207063900.43643-8-pkshih@realtek.com
drivers/net/wireless/realtek/rtw89/core.c

index 413bb391c21e35dc14397e0e2d5a98cbe2306443..a9544b006f0b4d69347c8c85e21c1ecda7f3e6d5 100644 (file)
@@ -2696,7 +2696,8 @@ static int rtw89_core_register_hw(struct rtw89_dev *rtwdev)
        ieee80211_hw_set(hw, SUPPORTS_PS);
        ieee80211_hw_set(hw, SUPPORTS_DYNAMIC_PS);
 
-       hw->wiphy->interface_modes = BIT(NL80211_IFTYPE_STATION);
+       hw->wiphy->interface_modes = BIT(NL80211_IFTYPE_STATION) |
+                                    BIT(NL80211_IFTYPE_AP);
        hw->wiphy->available_antennas_tx = BIT(rtwdev->chip->rf_path_num) - 1;
        hw->wiphy->available_antennas_rx = BIT(rtwdev->chip->rf_path_num) - 1;