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

Fail to connect with 8723du #18

Open
vhenriet-sfy opened this issue May 19, 2021 · 5 comments
Open

Fail to connect with 8723du #18

vhenriet-sfy opened this issue May 19, 2021 · 5 comments
Labels
bug Something isn't working

Comments

@vhenriet-sfy
Copy link

vhenriet-sfy commented May 19, 2021

Hi,

I'm trying to make this driver work with a 8723du module.
I'm using the branch sync-with-backports/v5.10 on a 5.10.37 kernel.

When I plug the module, I can see that no hw mac is set. No errors in logs.

[20407.683393] usb 5-1.3.1: new high-speed USB device number 27 using xhci_hcd
[20407.771937] usb 5-1.3.1: New USB device found, idVendor=0424, idProduct=2512, bcdDevice= b.b3
[20407.771939] usb 5-1.3.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[20407.819087] hub 5-1.3.1:1.0: USB hub found
[20407.819305] hub 5-1.3.1:1.0: 2 ports detected
[20408.168392] usb 5-1.3.1.1: new high-speed USB device number 28 using xhci_hcd
[20408.257938] usb 5-1.3.1.1: New USB device found, idVendor=0bda, idProduct=d723, bcdDevice= 2.00
[20408.257940] usb 5-1.3.1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[20408.257942] usb 5-1.3.1.1: Product: 802.11n WLAN Adapter
[20408.257943] usb 5-1.3.1.1: Manufacturer: Realtek
[20408.257944] usb 5-1.3.1.1: SerialNumber: 00e04c000001
[20408.332004] rtw_8723du 5-1.3.1.1:1.2: USB: 2
[20408.332035] rtw_8723du 5-1.3.1.1:1.2: Firmware version 48.0.0, H2C version 0

I set manually the mac address, using real device mac, with this command
sudo ifconfig wlan0 ^C ether xx:xx:xx:xx:xx:xx

The, when I try to join a network, I got lot of these errors :

[21055.229853] rtw_8723du 5-1.3.1.1:1.2: failed to wait usb ctrl req:192
[21055.260704] rtw_8723du 5-1.3.1.1:1.2: failed to wait usb ctrl req:64
[21055.290804] rtw_8723du 5-1.3.1.1:1.2: failed to wait usb ctrl req:64
[21055.398028] rtw_8723du 5-1.3.1.1:1.2: failed to wait usb ctrl req:192
[21056.104988] rtw_8723du 5-1.3.1.1:1.2: failed to wait usb ctrl req:192
[21056.135832] rtw_8723du 5-1.3.1.1:1.2: failed to wait usb ctrl req:192
[21056.166760] rtw_8723du 5-1.3.1.1:1.2: failed to wait usb ctrl req:64
[21056.196854] rtw_8723du 5-1.3.1.1:1.2: failed to wait usb ctrl req:64

And of course, the join failed :

[20678.784169] wlan0: send auth to yy:yy:yy:yy:yy:yy (try 1/3)
[20679.889741] wlan0: send auth to yy:yy:yy:yy:yy:yy (try 2/3)
[20680.907193] wlan0: send auth to yy:yy:yy:yy:yy:yy (try 3/3)
[20681.859163] wlan0: authentication with yy:yy:yy:yy:yy:yy timed out
[20681.921387] wlan0: authenticate with yy:yy:yy:yy:yy:yy
[20682.275042] wlan0: send auth to yy:yy:yy:yy:yy:yy (try 1/3)
[20682.891125] wlan0: send auth to yy:yy:yy:yy:yy:yy (try 2/3)
[20683.928462] wlan0: send auth to yy:yy:yy:yy:yy:yy (try 3/3)
[20684.867163] wlan0: authentication with yy:yy:yy:yy:yy:yy timed out

I guess that something is missing regarding the mac address issue.
Any idea on the failed to wait usb ctrl req:64 error?

@karlp
Copy link

karlp commented Jun 4, 2021

I see this as well, but I don't eve see the "send auth" messages. It scans ok, but nothing can be joined. Setting up an AP fails as well:

karlp@strem:~$ nmcli dev wifi hotspot ifname wlp0s20f0u3i2 ssid test8723 password "test1234"
Error: Connection activation failed: (4) The device could not be readied for configuration.
karlp@strem:~$

with the kernel log just full of

un 04 17:15:29 strem kernel: rtw_8723du 1-3:1.2: failed to wait usb ctrl req:64
Jun 04 17:15:40 strem kernel: rtw_8723du 1-3:1.2: failed to wait usb ctrl req:192
Jun 04 17:15:58 strem kernel: rtw_8723du 1-3:1.2: failed to wait usb ctrl req:192
Jun 04 17:16:00 strem kernel: rtw_8723du 1-3:1.2: failed to wait usb ctrl req:192
Jun 04 17:16:02 strem kernel: rtw_8723du 1-3:1.2: failed to wait usb ctrl req:192
Jun 04 17:16:07 strem kernel: rtw_8723du 1-3:1.2: stop vif e2:df:04:19:bc:ee on port 0
Jun 04 17:16:08 strem kernel: rtw_8723du 1-3:1.2: start vif e2:df:04:19:bc:ee on port 0
Jun 04 17:16:08 strem kernel: rtw_8723du 1-3:1.2: stop vif e2:df:04:19:bc:ee on port 0
Jun 04 17:16:09 strem kernel: rtw_8723du 1-3:1.2: start vif 8a:6b:d8:fc:59:d6 on port 0
Jun 04 17:16:14 strem kernel: rtw_8723du 1-3:1.2: failed to wait usb ctrl req:192
Jun 04 17:16:26 strem kernel: rtw_8723du 1-3:1.2: failed to wait usb ctrl req:192
Jun 04 17:16:28 strem kernel: rtw_8723du 1-3:1.2: failed to wait usb ctrl req:192
Jun 04 17:16:32 strem kernel: rtw_8723du 1-3:1.2: failed to wait usb ctrl req:192

The start/stop vif's correspond to any attempt at activating an interface, but the 64/192 failed ctrl reqs are a steady stream.

@ulli-kroll ulli-kroll added the bug Something isn't working label Jun 17, 2021
@ulli-kroll
Copy link
Owner

tested with 8821cu
This is a general usb problem, I'm facing.
I need to review the code of the control requests.

@ulli-kroll
Copy link
Owner

Please use latest -master
I've use code from rtlwifi which is more robust.

8821cu connects to my AP, but no DHCP
one down, one to go

@vhenriet-sfy
Copy link
Author

I made the test whith the laster -master with a 8723du.

Errors lile "failed to wait usb ctrl req:192" are gone, but things are still not working

The mac address is still not set automaticaly, (got ff:ff:ff:ff:ff:ff).
I can set it manually.

I can scan for network and got somme results.

I can't join a network, it timeout when triing to authenticate with the AP.

[ 1883.047002] wlan0: authenticate with 3c:37:86:yy:yy:yy
[ 1883.262891] wlan0: send auth to 3c:37:86:yy:yy:yy (try 1/3)
[ 1884.097263] wlan0: send auth to 3c:37:86:yy:yy:yy (try 2/3)
[ 1885.057263] wlan0: send auth to 3c:37:86:yy:yy:yy (try 3/3)
[ 1886.094876] wlan0: authentication with 3c:37:86:yy:yy:yy timed out

Let me know if I can provide you more information.

@karlp
Copy link

karlp commented Jul 13, 2021

(just FYI, I'm out on holidays for til mid august unfortunately, nowhere near either my 8723bu, 8723du or 8821cu boards)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants