lwfinger / rtw88

A backport of the Realtek Wifi 5 drivers from the wireless-next repo.
633 stars 181 forks source link

rtw_8822cs : no AP mode ? #245

Open chris4git opened 1 day ago

chris4git commented 1 day ago

Hi, Context : Armbian bookworm 24.11 6.6.58-current-rockchip64 After make/make install of current version of the driver (and reboot) iw list gives only managed and monitor modes available. Under Android all modes are available.

Logs : Oct 28 15:08:39 station-m2 kernel: rtw_8822cs mmc1:0001:1: WOW Firmware version 9.9.4, H2C version 15 Oct 28 15:08:39 station-m2 kernel: rtw_8822cs mmc1:0001:1: Firmware version 9.9.15, H2C version 15

Something necessary at compilation time to activate AP mode ?

Chris

dubhater commented 1 day ago

Yes, you need to make this change:

diff --git a/drivers/net/wireless/realtek/rtw88/main.c b/drivers/net/wireless/realtek/rtw88/main.c
index e91530ed05a0..4ba821dcc7eb 100644
--- a/drivers/net/wireless/realtek/rtw88/main.c
+++ b/drivers/net/wireless/realtek/rtw88/main.c
@@ -2228,7 +2228,7 @@ EXPORT_SYMBOL(rtw_core_deinit);

 int rtw_register_hw(struct rtw_dev *rtwdev, struct ieee80211_hw *hw)
 {
-   bool sta_mode_only = rtwdev->hci.type == RTW_HCI_TYPE_SDIO;
+   bool sta_mode_only = false;
    struct rtw_hal *hal = &rtwdev->hal;
    int max_tx_headroom = 0;
    int ret;

SDIO (and USB) devices had some problems with AP mode, so someone decided that AP mode should be disabled until the problems are fixed. It's very possible that the problems are all fixed now. People with USB devices reported that it's working better. I don't know if anyone tested the SDIO side.

chris4git commented 12 hours ago

Thanks @dubhater ! Now all modes are present. Next step : to get a working setup with armbian-config...