Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rtw88_8821ce enable repeater mode. How? #260

Open
Yuriey1 opened this issue Dec 2, 2024 · 10 comments
Open

rtw88_8821ce enable repeater mode. How? #260

Yuriey1 opened this issue Dec 2, 2024 · 10 comments

Comments

@Yuriey1
Copy link

Yuriey1 commented Dec 2, 2024

Hello!
I'm trying to achieve repeater mode on my RTL8821CE PCIe. I'm doing this on Ubuntu 24.04 Server. The distribution comes with the rtw88_8821ce module. This module does not provide valid interface combinations. Tell me, please, is this functionality not yet implemented? If not, is it planned for implementation and when?
And if it is implemented, then please tell me how to enable it?
Thank you.

@dubhater
Copy link
Collaborator

dubhater commented Dec 2, 2024

The functionality exists but it's only enabled for RTL8822C. I think it should work for RTL8821C and RTL8822B as well, someone just needs to test it.

@dubhater
Copy link
Collaborator

dubhater commented Dec 2, 2024

diff --git a/main.c b/main.c
index fdab0a1..ae645d0 100644
--- a/main.c
+++ b/main.c
@@ -2473,7 +2473,7 @@ int rtw_register_hw(struct rtw_dev *rtwdev, struct ieee80211_hw *hw)
 	hw->wiphy->max_scan_ssids = RTW_SCAN_MAX_SSIDS;
 	hw->wiphy->max_scan_ie_len = rtw_get_max_scan_ie_len(rtwdev);
 
-	if (!sta_mode_only && rtwdev->chip->id == RTW_CHIP_TYPE_8822C) {
+	if (!sta_mode_only) {
 		hw->wiphy->iface_combinations = rtw_iface_combs;
 		hw->wiphy->n_iface_combinations = ARRAY_SIZE(rtw_iface_combs);
 	}

@Yuriey1
Copy link
Author

Yuriey1 commented Dec 4, 2024

If I understood everything correctly, then repeater mode cannot be enabled on the rtl8821ce, right?

@dubhater
Copy link
Collaborator

dubhater commented Dec 4, 2024

It can be enabled if you apply the patch I posted above.

@dubhater
Copy link
Collaborator

I applied the patch. You can just pull now and test.

@Yuriey1
Copy link
Author

Yuriey1 commented Dec 11, 2024

I have already applied patch and tested the module. The AP is up and running, but I was unable to connect to an external WiFi point with the client. I don't quite understand why this doesn't work on Linux, because... on Windows, the same card can work in dual mode. We checked.

@dubhater
Copy link
Collaborator

Probably it's the driver's fault.

@Yuriey1
Copy link
Author

Yuriey1 commented Dec 12, 2024

If this is a driver error, how can I fix it? Maybe I can somehow help you with this?

@Yuriey1
Copy link
Author

Yuriey1 commented Dec 12, 2024

I would like to add that the AP and the client work fine separately. They just refuse to work together.

@Yuriey1
Copy link
Author

Yuriey1 commented Dec 27, 2024

Probably it's the driver's fault.

How to fix driver's fault?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants