RTL8192EU driver and compiling

Thank you! You are a very devoted person. We will see. I am downloading the image right now. ETA over an hour, hah!

Is there no way they can all coexist and be manually configured on the backend? I thought the dongles as supplementary to the built-in wifi, which can take care of the updates through the UI.

Really? I supposed everyone used NetworkManager these days.

NetworkManager is a bit bloated and ConnMan has a stable API allowing us to build a nice GUI for it and keep things predictable.

You can connect multiple adapters but there are some caveats:

  • I have never tested bonding on OSMC with multiple WiFi adapters myself.
  • ConnMan usually only connects to one technology, so you would have to add something either as a startup script or rc.local. I can advise if you want to try.

I have now added 8192CU/8192EU/8812/8821AU to the next update for Vero 4K (scheduled for Sunday).

The dongles are supplementary, but OSMC’s GUI is currently limited to handling one adapter at a time. connmanctl is not; but it will only connect to one technology (its preferred one) and then will not attempt further connections unless the technology drops.

Sam

So much better!! It really worked connecting the antennas externally with a two port USB-hub attached to a USB-extender cable! Did you add the other driver as well, so I can do some experimenting with that startup scripting and connman? Last apt-get update, apt-get dist-upgrade and system update as well half an hour ago didn’t enable the rtl8892eu-dongle.

root@KARMUS-MC:/home/osmc# speedtest-cli --server 4420
Retrieving speedtest.net configuration...
Retrieving speedtest.net server list...
Testing from Net 1 (92.241.xxx.xxx)...
Hosted by JenZen ApS (Middelfart) [147.15 km]: 87.351 ms
Testing download speed........................................
Download: 7.57 Mbits/s
Testing upload speed..................................................
Upload: 3.98 Mbits/s
root@KARMUS-MC:/home/osmc# speedtest-cli
Retrieving speedtest.net configuration...
Retrieving speedtest.net server list...
Testing from Net 1 (92.241.xxx.xxx)...
Selecting best server based on latency...
Hosted by Fiberby ApS (Copenhagen) [32.37 km]: 69.639 ms
Testing download speed........................................
Download: 18.90 Mbits/s
Testing upload speed..................................................
Upload: 4.70 Mbits/s
root@KARMUS-MC:/home/osmc# ifconfig
eth0      Link encap:Ethernet  HWaddr xx:xx:xx:xx:xx:xx  
          UP BROADCAST MULTICAST DYNAMIC  MTU:1500  Metric:1
          RX packets:315 errors:0 dropped:1 overruns:0 frame:0
          TX packets:246 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:52255 (51.0 KiB)  TX bytes:43181 (42.1 KiB)
          Interrupt:40 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:4096  Metric:1
          RX packets:28 errors:0 dropped:0 overruns:0 frame:0
          TX packets:28 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:2444 (2.3 KiB)  TX bytes:2444 (2.3 KiB)

wlan0     Link encap:Ethernet  HWaddr xx:xx:xx:xx:xx:xx  
          inet addr:192.168.0.153  Bcast:192.168.0.255  Mask:255.255.255.128
          UP BROADCAST RUNNING MULTICAST DYNAMIC  MTU:1500  Metric:1
          RX packets:118375 errors:0 dropped:40 overruns:0 frame:0
          TX packets:87018 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:162309846 (154.7 MiB)  TX bytes:30658978 (29.2 MiB)

8192eu had problems so only picked 8812au and 8192cu for now

Sam

I have been fiddling with compiling from different sources, but they all fail due to the lack of presence of the aarch64-architecture in vero364-headers. Symlinking from /lib/build/3.14.29-xx-osmc/build to /usr/src/vero364-headers-3.14.29-xx-osmc/ does make a difference, although does not solve the problem.

I have read elsewhere that the rtl8xxxu is a multi-driver and supports the chipset ‘8192eu’ in experimental mode. Have you had any experience with this driver in OSMC? I see elsewhere on Github, that you have participated in discussions regarding the stability of wifi drivers before.

root@KARMUS-MC:/home/osmc/rtl8xxxu# make install
make -C /lib/modules/3.14.29-28-osmc/build M=/home/osmc/rtl8xxxu modules
make[1]: Entering directory '/usr/src/vero364-headers-3.14.29-28-osmc'
gcc: error: unrecognized command line option ‘-mstrict-align’
KBUILD_CFLAGS_MODULE:-DMODULE  
  Building modules, stage 2.
  MODPOST 0 modules
make[1]: Leaving directory '/usr/src/vero364-headers-3.14.29-28-osmc'
gzip -f rtl8xxxu.ko
gzip: rtl8xxxu.ko: No such file or directory
Makefile:19: recipe for target 'install' failed
make: *** [install] Error 1

Yes – it’s included for other devices and I maintain a tree for it.

Fix your Makefile

KBUILD_CFLAGS   := -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs \
               -fno-strict-aliasing -fno-common \
               -Wno-format-security \
               -fno-delete-null-pointer-checks \
               -mstrict-align

Last line. This is from the Makefile in /usr/src/vero364-headers-3.14.28-29-osmc/. So you’re telling me that I should comment out a flag from a whole other dependency. Is it safe enough and won’t break the rest of the distribution?

The proper approach is to patch in my tree, i.e. the inverse of this:

I removed the commit as I wanted to get the (already late) July update and didn’t have
time to work out the issues.

Sam

So I finally got back to look at this issue. I have managed to use the Vero 4k cabled with a portable 4G-access point made up by a USB LTE Cat4 modem and a portable router with an optional power bank, that I created a few months ago, that can reach a speed of 25-30 Mbps, but since this is not a permanent solution, I decided to give it a go on debugging why the rtl8192eu driver won’t compile successfully. Using a cable straight to the switch, that is connected to the router, that is connected to the 4G CPE gave about 18 Mbps last time I did a speed test, and sometimes it works on 2.4 GHz with the inbuilt antenna if I move the box to the kitchen table away from the tv and power adapters area, but the bandwidth is very unstable and barely makes it for more than a few minutes of streaming before losing the buffer. 5 GHz with inbuilt antenna never gives a high enough bandwidth to work. I guess it is too far away from the permanent AP, and the radio interference kills it.

This is an extract of the log file from issuing a make vero364 in the kernel sources on the current version 3.14.29-55-osmc:

make ARCH=arm64 CROSS_COMPILE= -C /mnt/package/kernel-osmc/src/vero3-linux-master/drivers/net/wireless/rtl8192eu/../../../../ M=/mnt/package/kernel-osmc/src/vero3-linux-master/drivers/net/wireless/rtl8192eu  modules
make[1]: Entering directory '/mnt/package/kernel-osmc/src/vero3-linux-master'
KBUILD_CFLAGS_MODULE:-DMODULE -mfix-cortex-a53-843419 -mfix-cortex-a53-835769
  CC [M]  /mnt/package/kernel-osmc/src/vero3-linux-master/drivers/net/wireless/rtl8192eu/core/rtw_cmd.o
  CC [M]  /mnt/package/kernel-osmc/src/vero3-linux-master/drivers/net/wireless/rtl8192eu/core/rtw_security.o
  CC [M]  /mnt/package/kernel-osmc/src/vero3-linux-master/drivers/net/wireless/rtl8192eu/core/rtw_debug.o
  CC [M]  /mnt/package/kernel-osmc/src/vero3-linux-master/drivers/net/wireless/rtl8192eu/core/rtw_io.o
  CC [M]  /mnt/package/kernel-osmc/src/vero3-linux-master/drivers/net/wireless/rtl8192eu/core/rtw_ioctl_query.o
  CC [M]  /mnt/package/kernel-osmc/src/vero3-linux-master/drivers/net/wireless/rtl8192eu/core/rtw_ioctl_set.o
/mnt/package/kernel-osmc/src/vero3-linux-master/drivers/net/wireless/rtl8192eu/core/rtw_security.c: In function 'aes_cipher':
/mnt/package/kernel-osmc/src/vero3-linux-master/drivers/net/wireless/rtl8192eu/core/rtw_security.c:1540:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
     for (j = 0; j < 8; j++)
     ^~~
/mnt/package/kernel-osmc/src/vero3-linux-master/drivers/net/wireless/rtl8192eu/core/rtw_security.c:1543:2: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
  payload_index = hdrlen + 8;
  ^~~~~~~~~~~~~
/mnt/package/kernel-osmc/src/vero3-linux-master/drivers/net/wireless/rtl8192eu/core/rtw_security.c: In function 'aes_decipher':
/mnt/package/kernel-osmc/src/vero3-linux-master/drivers/net/wireless/rtl8192eu/core/rtw_security.c:1925:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
     for (j = 0; j < 8; j++)
     ^~~
/mnt/package/kernel-osmc/src/vero3-linux-master/drivers/net/wireless/rtl8192eu/core/rtw_security.c:1928:2: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
  payload_index = hdrlen + 8;
  ^~~~~~~~~~~~~
  CC [M]  /mnt/package/kernel-osmc/src/vero3-linux-master/drivers/net/wireless/rtl8192eu/core/rtw_ieee80211.o
  CC [M]  /mnt/package/kernel-osmc/src/vero3-linux-master/drivers/net/wireless/rtl8192eu/core/rtw_mlme.o
  CC [M]  /mnt/package/kernel-osmc/src/vero3-linux-master/drivers/net/wireless/rtl8192eu/core/rtw_mlme_ext.o
  CC [M]  /mnt/package/kernel-osmc/src/vero3-linux-master/drivers/net/wireless/rtl8192eu/core/rtw_wlan_util.o
  CC [M]  /mnt/package/kernel-osmc/src/vero3-linux-master/drivers/net/wireless/rtl8192eu/core/rtw_vht.o
  CC [M]  /mnt/package/kernel-osmc/src/vero3-linux-master/drivers/net/wireless/rtl8192eu/core/rtw_pwrctrl.o
  CC [M]  /mnt/package/kernel-osmc/src/vero3-linux-master/drivers/net/wireless/rtl8192eu/core/rtw_rf.o
  CC [M]  /mnt/package/kernel-osmc/src/vero3-linux-master/drivers/net/wireless/rtl8192eu/core/rtw_recv.o
  CC [M]  /mnt/package/kernel-osmc/src/vero3-linux-master/drivers/net/wireless/rtl8192eu/core/rtw_sta_mgt.o
  CC [M]  /mnt/package/kernel-osmc/src/vero3-linux-master/drivers/net/wireless/rtl8192eu/core/rtw_ap.o
  CC [M]  /mnt/package/kernel-osmc/src/vero3-linux-master/drivers/net/wireless/rtl8192eu/core/rtw_xmit.o
  CC [M]  /mnt/package/kernel-osmc/src/vero3-linux-master/drivers/net/wireless/rtl8192eu/core/rtw_p2p.o
  CC [M]  /mnt/package/kernel-osmc/src/vero3-linux-master/drivers/net/wireless/rtl8192eu/core/rtw_tdls.o
  CC [M]  /mnt/package/kernel-osmc/src/vero3-linux-master/drivers/net/wireless/rtl8192eu/core/rtw_br_ext.o
  CC [M]  /mnt/package/kernel-osmc/src/vero3-linux-master/drivers/net/wireless/rtl8192eu/core/rtw_iol.o
  CC [M]  /mnt/package/kernel-osmc/src/vero3-linux-master/drivers/net/wireless/rtl8192eu/core/rtw_sreset.o
  CC [M]  /mnt/package/kernel-osmc/src/vero3-linux-master/drivers/net/wireless/rtl8192eu/core/rtw_btcoex.o
  CC [M]  /mnt/package/kernel-osmc/src/vero3-linux-master/drivers/net/wireless/rtl8192eu/core/rtw_beamforming.o
  CC [M]  /mnt/package/kernel-osmc/src/vero3-linux-master/drivers/net/wireless/rtl8192eu/core/rtw_odm.o
  CC [M]  /mnt/package/kernel-osmc/src/vero3-linux-master/drivers/net/wireless/rtl8192eu/core/efuse/rtw_efuse.o
  CC [M]  /mnt/package/kernel-osmc/src/vero3-linux-master/drivers/net/wireless/rtl8192eu/os_dep/osdep_service.o
  CC [M]  /mnt/package/kernel-osmc/src/vero3-linux-master/drivers/net/wireless/rtl8192eu/os_dep/linux/os_intfs.o
  CC [M]  /mnt/package/kernel-osmc/src/vero3-linux-master/drivers/net/wireless/rtl8192eu/os_dep/linux/usb_intf.o
  CC [M]  /mnt/package/kernel-osmc/src/vero3-linux-master/drivers/net/wireless/rtl8192eu/os_dep/linux/usb_ops_linux.o
  CC [M]  /mnt/package/kernel-osmc/src/vero3-linux-master/drivers/net/wireless/rtl8192eu/os_dep/linux/ioctl_linux.o
  CC [M]  /mnt/package/kernel-osmc/src/vero3-linux-master/drivers/net/wireless/rtl8192eu/os_dep/linux/xmit_linux.o
  CC [M]  /mnt/package/kernel-osmc/src/vero3-linux-master/drivers/net/wireless/rtl8192eu/os_dep/linux/mlme_linux.o
  CC [M]  /mnt/package/kernel-osmc/src/vero3-linux-master/drivers/net/wireless/rtl8192eu/os_dep/linux/recv_linux.o
  CC [M]  /mnt/package/kernel-osmc/src/vero3-linux-master/drivers/net/wireless/rtl8192eu/os_dep/linux/ioctl_cfg80211.o
  CC [M]  /mnt/package/kernel-osmc/src/vero3-linux-master/drivers/net/wireless/rtl8192eu/os_dep/linux/wifi_regd.o
  CC [M]  /mnt/package/kernel-osmc/src/vero3-linux-master/drivers/net/wireless/rtl8192eu/os_dep/linux/rtw_android.o
  CC [M]  /mnt/package/kernel-osmc/src/vero3-linux-master/drivers/net/wireless/rtl8192eu/os_dep/linux/rtw_proc.o
  CC [M]  /mnt/package/kernel-osmc/src/vero3-linux-master/drivers/net/wireless/rtl8192eu/hal/hal_intf.o
  CC [M]  /mnt/package/kernel-osmc/src/vero3-linux-master/drivers/net/wireless/rtl8192eu/hal/hal_com.o
  CC [M]  /mnt/package/kernel-osmc/src/vero3-linux-master/drivers/net/wireless/rtl8192eu/hal/hal_com_phycfg.o
  CC [M]  /mnt/package/kernel-osmc/src/vero3-linux-master/drivers/net/wireless/rtl8192eu/hal/hal_phy.o
/mnt/package/kernel-osmc/src/vero3-linux-master/drivers/net/wireless/rtl8192eu/os_dep/linux/ioctl_linux.c: In function 'rtw_mp_read_reg':
/mnt/package/kernel-osmc/src/vero3-linux-master/drivers/net/wireless/rtl8192eu/os_dep/linux/ioctl_linux.c:10395:8: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
        if ( data[i] != '\0' )
        ^~
/mnt/package/kernel-osmc/src/vero3-linux-master/drivers/net/wireless/rtl8192eu/os_dep/linux/ioctl_linux.c:10398:10: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
          j++;
          ^
/mnt/package/kernel-osmc/src/vero3-linux-master/drivers/net/wireless/rtl8192eu/os_dep/linux/ioctl_linux.c: In function 'translate_scan':
/mnt/package/kernel-osmc/src/vero3-linux-master/drivers/net/wireless/rtl8192eu/os_dep/linux/ioctl_linux.c:771:1: warning: the frame size of 1184 bytes is larger than 1024 bytes [-Wframe-larger-than=]
 }
 ^
  CC [M]  /mnt/package/kernel-osmc/src/vero3-linux-master/drivers/net/wireless/rtl8192eu/hal/hal_btcoex.o
  CC [M]  /mnt/package/kernel-osmc/src/vero3-linux-master/drivers/net/wireless/rtl8192eu/hal/hal_hci/hal_usb.o
  CC [M]  /mnt/package/kernel-osmc/src/vero3-linux-master/drivers/net/wireless/rtl8192eu/hal/led/hal_usb_led.o
  CC [M]  /mnt/package/kernel-osmc/src/vero3-linux-master/drivers/net/wireless/rtl8192eu/hal/HalPwrSeqCmd.o
  CC [M]  /mnt/package/kernel-osmc/src/vero3-linux-master/drivers/net/wireless/rtl8192eu/hal/rtl8192e/Hal8192EPwrSeq.o
  CC [M]  /mnt/package/kernel-osmc/src/vero3-linux-master/drivers/net/wireless/rtl8192eu/hal/rtl8192e/rtl8192e_xmit.o
  CC [M]  /mnt/package/kernel-osmc/src/vero3-linux-master/drivers/net/wireless/rtl8192eu/hal/rtl8192e/rtl8192e_hal_init.o
  CC [M]  /mnt/package/kernel-osmc/src/vero3-linux-master/drivers/net/wireless/rtl8192eu/hal/rtl8192e/rtl8192e_sreset.o
  CC [M]  /mnt/package/kernel-osmc/src/vero3-linux-master/drivers/net/wireless/rtl8192eu/hal/rtl8192e/rtl8192e_phycfg.o
  CC [M]  /mnt/package/kernel-osmc/src/vero3-linux-master/drivers/net/wireless/rtl8192eu/hal/rtl8192e/rtl8192e_rf6052.o
  CC [M]  /mnt/package/kernel-osmc/src/vero3-linux-master/drivers/net/wireless/rtl8192eu/hal/rtl8192e/rtl8192e_dm.o
  CC [M]  /mnt/package/kernel-osmc/src/vero3-linux-master/drivers/net/wireless/rtl8192eu/hal/rtl8192e/rtl8192e_rxdesc.o
  CC [M]  /mnt/package/kernel-osmc/src/vero3-linux-master/drivers/net/wireless/rtl8192eu/hal/rtl8192e/rtl8192e_cmd.o
  CC [M]  /mnt/package/kernel-osmc/src/vero3-linux-master/drivers/net/wireless/rtl8192eu/hal/rtl8192e/usb/usb_halinit.o
  CC [M]  /mnt/package/kernel-osmc/src/vero3-linux-master/drivers/net/wireless/rtl8192eu/hal/rtl8192e/usb/rtl8192eu_led.o
  CC [M]  /mnt/package/kernel-osmc/src/vero3-linux-master/drivers/net/wireless/rtl8192eu/hal/rtl8192e/usb/rtl8192eu_xmit.o
  CC [M]  /mnt/package/kernel-osmc/src/vero3-linux-master/drivers/net/wireless/rtl8192eu/hal/rtl8192e/usb/rtl8192eu_recv.o
  CC [M]  /mnt/package/kernel-osmc/src/vero3-linux-master/drivers/net/wireless/rtl8192eu/hal/rtl8192e/usb/usb_ops_linux.o
  CC [M]  /mnt/package/kernel-osmc/src/vero3-linux-master/drivers/net/wireless/rtl8192eu/hal/rtl8192e/rtl8192e_mp.o
  CC [M]  /mnt/package/kernel-osmc/src/vero3-linux-master/drivers/net/wireless/rtl8192eu/hal/OUTSRC/odm_debug.o
  CC [M]  /mnt/package/kernel-osmc/src/vero3-linux-master/drivers/net/wireless/rtl8192eu/hal/OUTSRC/odm_AntDiv.o
  CC [M]  /mnt/package/kernel-osmc/src/vero3-linux-master/drivers/net/wireless/rtl8192eu/hal/OUTSRC/odm_interface.o
  CC [M]  /mnt/package/kernel-osmc/src/vero3-linux-master/drivers/net/wireless/rtl8192eu/hal/OUTSRC/odm_HWConfig.o
  CC [M]  /mnt/package/kernel-osmc/src/vero3-linux-master/drivers/net/wireless/rtl8192eu/hal/OUTSRC/odm.o
  CC [M]  /mnt/package/kernel-osmc/src/vero3-linux-master/drivers/net/wireless/rtl8192eu/hal/OUTSRC/HalPhyRf.o
  CC [M]  /mnt/package/kernel-osmc/src/vero3-linux-master/drivers/net/wireless/rtl8192eu/hal/OUTSRC/rtl8192e/HalHWImg8192E_MAC.o
  CC [M]  /mnt/package/kernel-osmc/src/vero3-linux-master/drivers/net/wireless/rtl8192eu/hal/OUTSRC/rtl8192e/HalHWImg8192E_BB.o
  CC [M]  /mnt/package/kernel-osmc/src/vero3-linux-master/drivers/net/wireless/rtl8192eu/hal/OUTSRC/rtl8192e/HalHWImg8192E_RF.o
  CC [M]  /mnt/package/kernel-osmc/src/vero3-linux-master/drivers/net/wireless/rtl8192eu/hal/OUTSRC/rtl8192e/HalHWImg8192E_FW.o
  CC [M]  /mnt/package/kernel-osmc/src/vero3-linux-master/drivers/net/wireless/rtl8192eu/hal/OUTSRC/rtl8192e/HalPhyRf_8192e.o
  CC [M]  /mnt/package/kernel-osmc/src/vero3-linux-master/drivers/net/wireless/rtl8192eu/hal/OUTSRC/rtl8192e/odm_RegConfig8192E.o
  CC [M]  /mnt/package/kernel-osmc/src/vero3-linux-master/drivers/net/wireless/rtl8192eu/hal/OUTSRC/rtl8192e/odm_RTL8192E.o
  CC [M]  /mnt/package/kernel-osmc/src/vero3-linux-master/drivers/net/wireless/rtl8192eu/platform/platform_ops.o
  CC [M]  /mnt/package/kernel-osmc/src/vero3-linux-master/drivers/net/wireless/rtl8192eu/core/rtw_mp.o
  CC [M]  /mnt/package/kernel-osmc/src/vero3-linux-master/drivers/net/wireless/rtl8192eu/core/rtw_mp_ioctl.o
  LD [M]  /mnt/package/kernel-osmc/src/vero3-linux-master/drivers/net/wireless/rtl8192eu/8192eu.o

[...]

scripts/Makefile.build:444: recipe for target '/mnt/package/kernel-osmc/src/vero3-linux-master/drivers/net/wireless/rtl8192eu/8192eu.o' failed
make[2]: *** [/mnt/package/kernel-osmc/src/vero3-linux-master/drivers/net/wireless/rtl8192eu/8192eu.o] Error 1
Makefile:1291: recipe for target '_module_/mnt/package/kernel-osmc/src/vero3-linux-master/drivers/net/wireless/rtl8192eu' failed
make[1]: *** [_module_/mnt/package/kernel-osmc/src/vero3-linux-master/drivers/net/wireless/rtl8192eu] Error 2
make[1]: Leaving directory '/mnt/package/kernel-osmc/src/vero3-linux-master'
Makefile:1337: recipe for target 'modules' failed
make: *** [modules] Error 2
Building kernel module failed
Makefile:17: recipe for target 'vero364' failed
make: *** [vero364] Error 1
make: Leaving directory '/mnt/package/kernel-osmc'
Makefile:17: recipe for target 'vero364' failed
make: *** [vero364] Error 2

The output from Makefile

1288	module-dirs := $(addprefix _module_,$(KBUILD_EXTMOD))
1289	PHONY += $(module-dirs) modules
1290	$(module-dirs): crmodverdir $(objtree)/Module.symvers
1291		$(Q)$(MAKE) $(build)=$(patsubst _module_%,%,$@)

and Makefile.build

443	$(multi-used-m) : %.o: $(multi-objs-m) FORCE
444		$(call if_changed,link_multi-m)
445		@{ echo $(@:.o=.ko); echo $(link_multi_deps); } > $(MODVERDIR)/$(@F:.o=.mod)

(I hope I found the right files in my investigation.)

Do you perhaps know of any alternative drivers that would work better? I found rtl8xxxu that should be compatible, but you mention an “AML driver” in the commit history of the osmc code repository when you removed the patches again - which one is that?

Hi

If you are going to use an external adapter, I’d recommend that you disable the internal WiFi adapter. This can be done with sudo rmmod dhd. If you want to make that persistent you could put it in /etc/rc.local.

Realtek driver quality has never been great, and that’s why we maintain some trees downstream to improve the state of WiFi.

The official AMLogic sources are here: http://openlinux.amlogic.com:8000/download/ARM/wifi/.

It may yield some better results. Let me know if you need some help building.

Sam