-
Notifications
You must be signed in to change notification settings - Fork 175
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
4.19.193 kernel for Android, any success? #161
Comments
I am concerned that your patches needed to get the drivers to build with 4.19 may have crippled the drivers. Could you please provide those patches for review? |
Thanks for the reply! It was simple, I removed three static_assert() statements as they didn't resolve. I reasoned they were compile time check only. rtw8821c.c://static_assert(ARRAY_SIZE(rf_para_tx_8821c) == ARRAY_SIZE(rf_para_rx_8821c)); I also had to add the module_sdio_driver() define to the linux kernel sdio_func.h header file. I reasoned this is a macro definition which will be handled by the compiler, so just modifying the header is ok < |
May have useful information: In Readme could have a section of "useful links". Thanks |
I have the same problem as @videostormdev. iw wlan0 scan hangs but newer version outputs an error. This is the debug output using iw 5.19: # iw --debug wlan0 scan
-- Debug: Sent Message:
-------------------------- BEGIN NETLINK MESSAGE ---------------------------
[NETLINK HEADER] 16 octets
.nlmsg_len = 44
.type = 18 <0x12>
.flags = 5 <REQUEST,ACK>
.seq = 946693883
.port = -817882502
[GENERIC NETLINK HEADER] 4 octets
.cmd = 33
.version = 0
.unused = 0
[PAYLOAD] 24 octets
08 00 03 00 07 00 00 00 08 00 2d 00 04 00 01 00 ..........-.....
08 00 9e 00 00 40 00 00 .....@..
--------------------------- END NETLINK MESSAGE ---------------------------
-- Debug: Received Message:
-------------------------- BEGIN NETLINK MESSAGE ---------------------------
[NETLINK HEADER] 16 octets
.nlmsg_len = 64
.type = 2 <ERROR>
.flags = 0 <>
.seq = 946693883
.port = -817882502
[ERRORMSG] 20 octets
.error = 1 "Unknown error -1"
[ORIGINAL MESSAGE] 16 octets
.nlmsg_len = 16
.type = 18 <0x12>
.flags = 5 <REQUEST,ACK>
.seq = 946693883
.port = -817882502
--------------------------- END NETLINK MESSAGE ---------------------------
ERROR: received positive netlink error code 1
command failed: Protocol error (-71) What could be the issue? What to look at? dmesg is otherwise free of any errors... |
I found the cause of "netlink error code 1". 1 is returned from rtw_ops_hw_scan in mac80211.c:
...because rtwdev->fw.feature == 0. The reason for this is use of legacy firmware:
So in my case (rtl8723du) I have to comment out these lines in mac80211.c:
Scan then works as expected. |
@videostormdev, @RENANZG, @masbug -- Thank you for following up on this. I am @lwfinger's new co-maintainer and I am still getting up to speed. I started a new job and had little time to get solid time in these open issues. I will be reproducing this and reporting back as soon as I can. Again, thank you for diving into this and providing context around the issue and possible fixes. |
I have built this driver for kernel version 4.19.193 for Android 11 (rockchip sdk).
Builds ok and I can modprobe the drivers to insert them. However, they aren't functional.
Using both 8821cs and 8822bu adapter (separately).
They will create a wlan0 interface which can be reported by iw. They just can't scan or connect to any networks.
The logs for the USB device dont' show any errors. The SDIO device sometimes shows a single sdio read32 and write8 failure.
Any ideas? Has anyone had success with this driver in Android?
The text was updated successfully, but these errors were encountered: