Solved Rtl8812au keeps dropping the connection

My wifi keeps disconnecting every 5 minutes or so.
I set up a legacy router with 802.11 b/g
because my provider gived me one with 802.11ax and
802.11ac which supposed to be backward compatible
but is not.

I have an usb dongle rtl8812au my config files
have the following content

/boot/loader.conf
hw.psm.synaptics_support="1"
if_rtwn_usb_load="YES"
if_wi_load="YES"
wlan_wep_load="YES"
wlan_ccmp_load="YES"
wlan_tkip_load="YES"
legal.realtek.licence_ack=1
autoboot_delay="3"
snd_hda_load="YES"
cuse_load="YES"
fusefs_load="YES"
vboxdrv_load="YES"
atapicam_load="YES"

/etc/rc.conf

hostname="salgotarjan"
wlans_rtwn0="wlan0"
#ifconfig_wlan0="WPA inet 192.168.1.88 netmask 255.255.255.0"
#defaultrouter="192.168.1.1"
#ifconfig_wlan0="WPA SYNCDHCP"
ifconfig_wlan0="WPA DHCP"
wpa_supplicant_enable="YES"
create_args_wlan0="country US regdomain FCC"
moused_enable="YES"
powerd_enable="YES"
dumpdev="NO"
kld_list="amdgpu cuse fuse fusefs-ntfs ext2fs"
dbus_enable="YES"
hald_enable="YES"
moused_type="AUTO"
moused_enable="NO"
lightdm_enable="YES"
webcamd_enable=YES
webcamd_0_flags="-d ugen0.3"wlans_rtw880="wlan1"
#ifconfig_ue0="DHCP"
apache24_enable="YES"
mysql_enable="YES"
vboxnet_enable="YES"
devfs_system_ruleset="system"
vboxguest_enable="YES"
vboxservice_enable="YES"

/etc/wpa_supplicant.conf
network={
ssid="networkname"
bssid=00:17:3f:60:b5:85
key_mgmt=WPA-PSK
proto=RSN
psk="password"
}

Could someone tell me please
if anything is missing or i did a mistake somewhere?
 
Thank You Tedbell

You are right had to limit the memory and now the connection
stays alive. Wow i had that issue for a year but
did not asked the question i thought my config files
have the error.
All the best
 
Thank You Tedbell

You are right had to limit the memory and now the connection
stays alive. Wow i had that issue for a year but
did not asked the question i thought my config files
have the error.
All the best
Sorry, I deleted my post because I misread your post, thinking you were using a different driver.

I'll post it again:

Currently known issue​


  • Does not work on machines with more than 4GB of physical memory. Likely busdma+LinuxKPI problem to be investigated. D34715 has a change to gather data (which is in freebsd/main by now).

    • You need to boot with compat.linuxkpi.skb.mem_limit=1 in loader.conf to limit DMA to 32bit (announcement on freebsd-wireless for more info). As Anton Shepelev let me know on 2024-07-19 even on a computer with up-to 4GB the tunable may be needed; I believe this is due to wrong handling of certain allocations in LinuxKPI which we are in the progress of fixing (revisit once done).

I also build the driver from ports.
 
Back
Top