Rtl8812au wifi config

Hi, I am trying to get this device working. When I initially insert the dongle into the raspberry PI it is loaded. I use the command ifconfig wlan1 up and the wlan is active. I then use the web interface which displays the radio and I use the scan option and select a wireless network and save. When I save and apply the raspberry PI 4 crashes and reboots. After the reboot, I cannot re-add the device until I unplug from the USB socket and reboot and then reinsert.

Any help would be appreciated.

dmesg | grep -i rtl
[    7.143022] RTL871X: module init start
[    7.146783] RTL871X: rtl8812au v4.3.14_13455.20150212_BTCOEX20150128-51
[    7.153446] RTL871X: rtl8812au BT-Coex version = BTCOEX20150128-51
[    7.159724] usbcore: registered new interface driver rtl8812au
[    7.165555] RTL871X: module init ret=0
[  166.413074] RTL871X: rtw_ndev_init(wlan1)

config:

wireless.radio1=wifi-device

wireless.radio1.type='mac80211'

wireless.radio1.path='scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.1/1-1.1:1.0'

wireless.radio1.hwmode='11g'

wireless.radio1.htmode='HT20'

wireless.radio1.channel='auto'

wireless.radio1.country='00'

Crash log

Sat Mar  5 09:20:18 2022 user.info : luci: accepted login on /admin/network/wireless for root from 10.70.70.122
Sat Mar  5 09:21:38 2022 kern.warn kernel: [  173.427770] RTL871X: rtw_ndev_uninit(wlan1)
Sat Mar  5 09:21:38 2022 daemon.notice netifd: radio1 (2590): Failed to create interface wlan1
Sat Mar  5 09:21:38 2022 daemon.notice netifd: radio1 (2590): WARNING: Variable '1' does not exist or is not an array/object
Sat Mar  5 09:21:38 2022 daemon.notice netifd: radio1 (2590): Failed to create interface wlan1-1
Sat Mar  5 09:21:38 2022 daemon.notice netifd: radio1 (2590): WARNING: Variable '2' does not exist or is not an array/object
Sat Mar  5 09:21:38 2022 daemon.notice netifd: radio1 (2590): Failed to create interface wlan1-2
Sat Mar  5 09:21:38 2022 daemon.notice netifd: radio1 (2590): WARNING: Variable '3' does not exist or is not an array/object
Sat Mar  5 09:21:38 2022 daemon.notice netifd: radio1 (2590): Failed to create interface wlan1-3
Sat Mar  5 09:21:38 2022 daemon.notice netifd: radio1 (2590): WARNING: Variable 'interfaces' does not exist or is not an array/object
Sat Mar  5 09:21:38 2022 daemon.notice netifd: radio1 (2590): ip: SIOCGIFFLAGS: No such device
Sat Mar  5 09:21:38 2022 daemon.notice netifd: radio1 (2590): Interface 0 setup failed: IFUP_ERROR
Sat Mar  5 09:21:39 2022 daemon.notice netifd: radio1 (2590): WARNING: Variable 'data' does not exist or is not an array/object
Sat Mar  5 09:21:39 2022 daemon.notice netifd: radio1 (2590): WARNING: Variable 'config' does not exist or is not an array/object
Sat Mar  5 09:21:39 2022 daemon.notice netifd: radio1 (2590): ip: SIOCGIFFLAGS: No such device
Sat Mar  5 09:21:39 2022 daemon.notice netifd: radio1 (2590): Interface 1 setup failed: IFUP_ERROR
Sat Mar  5 09:21:39 2022 daemon.notice netifd: radio1 (2590): WARNING: Variable '2' does not exist or is not an array/object
Sat Mar  5 09:21:39 2022 daemon.notice netifd: radio1 (2590): WARNING: Variable 'config' does not exist or is not an array/object
Sat Mar  5 09:21:39 2022 daemon.notice netifd: radio1 (2590): WARNING: Variable '3' does not exist or is not an array/object
Sat Mar  5 09:21:39 2022 daemon.notice netifd: radio1 (2590): WARNING: Variable 'config' does not exist or is not an array/object
Sat Mar  5 09:21:39 2022 daemon.notice netifd: Wireless device 'radio1' is now up