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

rtw8822cu: rfe 3 support missing #19

Open
pfink-christ opened this issue Sep 10, 2021 · 0 comments
Open

rtw8822cu: rfe 3 support missing #19

pfink-christ opened this issue Sep 10, 2021 · 0 comments

Comments

@pfink-christ
Copy link

Hi,
I'm trying to setup a system with a LM842 Realtek 8822CU BT/WIFI combo adapter.

Currently testing with Ubuntu 21.04, 5.11.0-34 kernel and branch sync-upstream-with/v5.11. Is this the correct branch to use?

I'm getting the following kernel messages upon connecting the device:

[ 994.256534] usb 1-1.3: new high-speed USB device number 6 using ehci-pci
[ 994.365521] usb 1-1.3: New USB device found, idVendor=0bda, idProduct=c82c, bcdDevice= 0.00
[ 994.365529] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 994.365532] usb 1-1.3: Product: 802.11ac NIC
[ 994.365535] usb 1-1.3: Manufacturer: Realtek
[ 994.365537] usb 1-1.3: SerialNumber: 123456
[ 994.366887] rtw_8822cu 1-1.3:1.2: USB: 2
[ 994.367005] rtw_8822cu 1-1.3:1.2: Firmware version 5.0.0, H2C version 14
[ 994.367104] rtw_8822cu 1-1.3:1.2: Firmware version 7.3.0, H2C version 14
[ 994.367921] Bluetooth: hci0: RTL: examining hci_ver=0a hci_rev=000c lmp_ver=0a lmp_subver=8822
[ 994.368893] Bluetooth: hci0: RTL: rom_version status=0 version=3
[ 994.368903] Bluetooth: hci0: RTL: loading rtl_bt/rtl8822cu_fw.bin
[ 994.368981] Bluetooth: hci0: RTL: loading rtl_bt/rtl8822cu_config.bin
[ 994.369023] Bluetooth: hci0: RTL: cfg_sz 6, total sz 35514
[ 994.536919] Bluetooth: hci0: RTL: fw version 0x099a7253
[ 994.632477] rtw_8822cu 1-1.3:1.2: rfe 3 isn't supported
[ 994.637534] rtw_8822cu 1-1.3:1.2: failed to setup chip efuse info
[ 994.637538] rtw_8822cu 1-1.3:1.2: failed to setup chip information

Build/install steps:

git checkout sync-upstream-with/v5.11
make clean
make
make install
make firmware
modprobe mac80211
insmod rtw88_core.ko
insmod rtw88_usb.ko
insmod rtw88_8822b.ko
insmod rtw88_8822bu.ko
insmod rtw88_8822c.ko
insmod rtw88_8822cu.ko

It seems rfe 3 support is missing for rtw8822c(u). I thought of copying the rfe3 tables from e.g. 8822b to 8822c, but then I compared the existing txpwr_lmt_type0 for both and saw they are different. So I concluded that it would be a bad idea to use the tables from 8822b. Do you know where to get the missing rfe3 tables?

LM provides the drivers here, but I could not get anywhere with them. This driver also seems to use these tables, but in a different format, which I'm no sure how to translate properly....and array_mp_8822c_txpwr_lmt seems to be much longer than the ones used here.

#ifdef CONFIG_8822C
const char *array_mp_8822c_txpwr_lmt[] = {
"FCC", "2.4G", "20M", "CCK", "1T", "01", "72",
"ETSI", "2.4G", "20M", "CCK", "1T", "01", "60",
"MKK", "2.4G", "20M", "CCK", "1T", "01", "68",
"IC", "2.4G", "20M", "CCK", "1T", "01", "72",
"KCC", "2.4G", "20M", "CCK", "1T", "01", "76",
"ACMA", "2.4G", "20M", "CCK", "1T", "01", "60",
"CHILE", "2.4G", "20M", "CCK", "1T", "01", "72",
"UKRAINE", "2.4G", "20M", "CCK", "1T", "01", "60",
"MEXICO", "2.4G", "20M", "CCK", "1T", "01", "72",
"CN", "2.4G", "20M", "CCK", "1T", "01", "60",
"FCC", "2.4G", "20M", "CCK", "1T", "02", "72",
...

  1. Is fixing rfe3 support for rtw8822cu even going to make this stick work or is it likely just the first of more issues along the way?
  2. Can somebody tell me how to translate the tables from realtek driver to rtw driver?
  3. btw what does RFE stand for?

Thanks & best regards,
Peter

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

1 participant