Skip to content

EDUP EP-AC1661 error: "Empty EFUSE with unknown REF type" - which REF type to use for BT coexistence? #83

@airdrummingfool

Description

@airdrummingfool

Hello,
I'm creating this issue in case others run into this problem, but also I'm curious if anyone has an explanation/suggestion on how to proceed.

I have successfully compiled the driver (versions 5.4.1 and 5.8.1) on an RPi 3 (Buster 5.4.51). When I connect an EDUP EP-AC1661 there is an error shown in dmesg, and it does not work.

dmesg output:

[40760.025616] usb 1-1.4: new high-speed USB device number 5 using dwc_otg
[40760.156657] usb 1-1.4: New USB device found, idVendor=0bda, idProduct=c820, bcdDevice= 2.00
[40760.156673] usb 1-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[40760.156683] usb 1-1.4: Product: 802.11ac NIC
[40760.156692] usb 1-1.4: Manufacturer: Realtek
[40760.156702] usb 1-1.4: SerialNumber: FF
[40760.158816] RTW: [HALMAC]11692M
               HALMAC_MAJOR_VER = 1
               HALMAC_PROTOTYPE_VER = 6
               HALMAC_MINOR_VER = 5
               HALMAC_PATCH_VER = 5
[40760.160609] RTW: ERROR [HALMAC][ERR]Dump efuse in suspend
[40760.391042] RTW: HW EFUSE
[40760.391053] RTW: 0x000: 29 81 00 BC  09 00 21 00  6E 04 A4 34  10 00 30 0B
[40760.391099] RTW: 0x010: 1E 1F 20 20  20 20 26 27  28 28 28 FF  FF FF FF FF
[40760.391141] RTW: 0x020: FF FF 29 2A  2A 2A 2C 2C  2C 2C 2C 2C  2A 2B 2B 2B
[40760.391183] RTW: 0x030: 00 FF FF FF  FF FF FF FF  FF FF 1E 1F  20 20 20 20
[40760.391227] RTW: 0x040: 26 27 28 28  28 02 FF FF  FF FF FF FF  FF FF FF FF
[40760.391269] RTW: 0x050: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[40760.391311] RTW: 0x060: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[40760.391354] RTW: 0x070: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[40760.391396] RTW: 0x080: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[40760.391438] RTW: 0x090: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[40760.391481] RTW: 0x0A0: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[40760.391523] RTW: 0x0B0: FF FF FF FF  FF FF FF FF  7F 04 20 00  FF FF FF FF
[40760.391565] RTW: 0x0C0: FF 21 00 00  00 00 00 00  00 26 FF FF  FF FF FF FF
[40760.391607] RTW: 0x0D0: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[40760.391650] RTW: 0x0E0: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[40760.391692] RTW: 0x0F0: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[40760.391734] RTW: 0x100: DA 0B 20 C8  E3 46 FF E8  4E 06 86 BC  45 09 03 52
[40760.391776] RTW: 0x110: 65 61 6C 74  65 6B 0E 03  38 30 32 2E  31 31 61 63
[40760.391818] RTW: 0x120: 20 4E 49 43  04 03 46 46  FF FF FF FF  FF FF FF FF
[40760.391860] RTW: 0x130: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[40760.391901] RTW: 0x140: FF FF FF FF  00 00 31 0F  FF FF FF FF  FF FF FF FF
[40760.391944] RTW: 0x150: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[40760.391986] RTW: 0x160: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[40760.392028] RTW: 0x170: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[40760.392070] RTW: 0x180: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[40760.392112] RTW: 0x190: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[40760.392154] RTW: 0x1A0: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[40760.392196] RTW: 0x1B0: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[40760.392238] RTW: 0x1C0: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[40760.392280] RTW: 0x1D0: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[40760.392322] RTW: 0x1E0: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[40760.392364] RTW: 0x1F0: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF
[40760.392583] RTW: hal_com_config_channel_plan chplan:0x7F
[40760.392587] RTW: ERROR

               Empty EFUSE with unknown REF type!!

[40760.392590] RTW: ERROR please program efuse or specify correct RFE type.
[40760.392593] RTW: ERROR cmd: insmod rtl8821cx.ko rtw_RFE_type=<rfe_type>

The error appears to come from this line:

RTW_ERR("\n\nEmpty EFUSE with unknown REF type!!\n\n");

The lines right after the error suggests manually providing a value for rtw_RFE_type when loading the module. Based on rtl8821c_ops.c there appear to be 8 options:

		Type 0 - (2-Ant, DPDT), (2G_WLG, iPA, iLNA, iSW), (5G, iPA, iLNA, iSW)
		Type 1 - (1-Ant, SPDT@Ant1), (2G_WLG, iPA, iLNA, iSW), (5G, iPA, iLNA, iSW)
		Type 2 -(1-Ant, SPDT@Ant1) , (2G_BTG, iPA, iLNA, iSW), (5G, iPA, iLNA, iSW)
		Type 3 - (1-Ant, DPDT@Ant2), (2G_WLG, iPA, iLNA, iSW), (5G, iPA, iLNA, iSW)
		Type 4 - (1-Ant, DPDT@Ant2), (2G_BTG, iPA, iLNA, iSW), (5G, iPA, iLNA, iSW)
		Type 5 - (2-Ant), (2G_WLG, iPA, iLNA, iSW), (5G, iPA, iLNA, iSW)
		Type 6 - (2-Ant), (2G_WLG, iPA, iLNA, iSW), (5G, iPA, iLNA, iSW)
		Type 7 - (1-Ant), (2G_BTG, iPA, iLNA, iSW), (5G, iPA, iLNA, iSW)

If I unload the module (sudo rmmod 8821cu.ko) and then re-load it specifying any one of the above types, it seems to work fine:
sudo insmod /lib/modules/$(uname -r)/kernel/drivers/net/wireless/realtek/rtl8821cu/8821cu.ko rtw_RFE_type=7

The wifi works just as well if I put rtw_RFE_type=0 or rtw_RFE_type=1, etc.

Digging a bit deeper, it appears that the RFE Type is used to determine antenna isolation and the BT coexistence mechanism. Is there a way to know which is correct for my wifi dongle, or which is optimal in any given situation?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions