I remember this being a problem back on a previous kernel, so this should still apply here.
I am using this on a laptop, which sometimes gets suspended. When the system wakes back up, the driver flips out. I have to unplug, replug, and restart the interface to get it working again.
Jan 31 22:30:56.276729 lappy kernel: ------------[ cut here ]------------
Jan 31 22:30:56.276883 lappy kernel: WARNING: CPU: 1 PID: 11256 at /home/user/work/edimax_802.11ac_adapter/MeissnerEffect-rtl8822bu/rtl8822bu/hal/rtl8822b/rtl8822b_phy.c:1145 rtl8822b_switch_chnl_and_set_bw+0x20d/0x3a4 [8822bu]
Jan 31 22:30:56.276959 lappy kernel: Modules linked in: rfcomm devlink ebtable_filter ebtables ip6_tables iptable_filter bridge stp llc bnep binfmt_misc snd_hda_codec_realtek snd_hda_codec_generic efi_pstore nls_ascii nls_cp437 vfat fat joydev arc4 applesmc input_polldev coretemp kvm_intel b43 kvm bcma irqbypass nouveau btusb mac80211 mxm_wmi btrtl btbcm btintel wmi ttm efivars pcspkr rng_core drm_kms_helper bluetooth drm i2c_algo_bit shpchp drbg ansi_cprng uvcvideo videobuf2_vmalloc videobuf2_memops videobuf2_v4l2 ecdh_generic videobuf2_core 8822bu(O) videodev evdev media snd_hda_intel bcm5974 cfg80211 rfkill sg snd_hda_codec snd_hda_core snd_hwdep snd_pcm snd_timer snd soundcore nv_tco battery sbs acpi_als kfifo_buf industrialio sbshc apple_gmux video apple_bl ac button acpi_cpufreq parport_pc sunrpc ppdev lp parport efivarfs
Jan 31 22:30:56.277037 lappy kernel: ip_tables x_tables autofs4 hid_apple hid_generic ext4 crc16 mbcache jbd2 fscrypto raid10 raid456 async_raid6_recov async_memcpy async_pq async_xor async_tx xor usbhid hid raid6_pq crc32c_generic libcrc32c raid1 raid0 multipath linear md_mod sd_mod ohci_pci ssb firewire_ohci mmc_core xhci_pci xhci_hcd pcmcia ahci libahci firewire_core crc_itu_t pcmcia_core libata scsi_mod forcedeth ohci_hcd ehci_pci ehci_hcd usbcore usb_common i2c_nforce2
Jan 31 22:30:56.277111 lappy kernel: CPU: 1 PID: 11256 Comm: RTW_CMD_THREAD Tainted: G W O 4.14.0-3-amd64 #1 Debian 4.14.13-1
Jan 31 22:30:56.277185 lappy kernel: Hardware name: Apple Inc. MacBookPro5,1/
Jan 31 22:30:56.277256 lappy kernel: task: ffff9135cb2701c0 task.stack: ffff9fbfcaff8000
Jan 31 22:30:56.277329 lappy kernel: RIP: 0010:rtl8822b_switch_chnl_and_set_bw+0x20d/0x3a4 [8822bu]
Jan 31 22:30:56.277403 lappy kernel: RSP: 0018:ffff9fbfcaffbd08 EFLAGS: 00010293
Jan 31 22:30:56.277488 lappy kernel: RAX: 0000000000000000 RBX: ffff9fbfc37f9000 RCX: 0000000000000018
Jan 31 22:30:56.277562 lappy kernel: RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000
Jan 31 22:30:56.277635 lappy kernel: RBP: ffff9fbfc8f71000 R08: ffff91368fd1aba8 R09: 0000000000000000
Jan 31 22:30:56.277708 lappy kernel: R10: ffff9fbfcaffba48 R11: 0000000000000062 R12: ffff9fbfc8f7e6b0
Jan 31 22:30:56.277781 lappy kernel: R13: 0000000000000000 R14: 0000000000000001 R15: 0000000000000002
Jan 31 22:30:56.277854 lappy kernel: FS: 0000000000000000(0000) GS:ffff91368fd00000(0000) knlGS:0000000000000000
Jan 31 22:30:56.277927 lappy kernel: CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
Jan 31 22:30:56.278001 lappy kernel: CR2: 00007efe93fcb560 CR3: 000000024260a000 CR4: 00000000000406e0
Jan 31 22:30:56.278073 lappy kernel: Call Trace:
Jan 31 22:30:56.278144 lappy kernel: rtl8822b_handle_sw_chnl_and_set_bw+0x1aa/0x1af [8822bu]
Jan 31 22:30:56.278219 lappy kernel: rtl8822b_set_channel_bw+0x28/0x2d [8822bu]
Jan 31 22:30:56.278302 lappy kernel: rtw_hal_set_chnl_bw+0x6d/0x9f [8822bu]
Jan 31 22:30:56.278373 lappy kernel: set_channel_bwmode+0xbb/0x11a [8822bu]
Jan 31 22:30:56.278444 lappy kernel: site_survey+0x31/0x1a2 [8822bu]
Jan 31 22:30:56.278515 lappy kernel: sitesurvey_cmd_hdl+0x730/0x76b [8822bu]
Jan 31 22:30:56.278586 lappy kernel: ? _rtw_mfree+0xa/0xc [8822bu]
Jan 31 22:30:56.278657 lappy kernel: rtw_cmd_thread+0x35a/0x55e [8822bu]
Jan 31 22:30:56.278729 lappy kernel: ? sitesurvey_set_msr+0x23/0x23 [8822bu]
Jan 31 22:30:56.278800 lappy kernel: ? rtw_stop_cmd_thread+0x52/0x52 [8822bu]
Jan 31 22:30:56.278870 lappy kernel: kthread+0x118/0x130
Jan 31 22:30:56.278941 lappy kernel: ? kthread_create_on_node+0x70/0x70
Jan 31 22:30:56.279013 lappy kernel: ret_from_fork+0x1f/0x30
Jan 31 22:30:56.279083 lappy kernel: Code: e8 e1 d7 04 00 e9 3a ff ff ff 0f b6 75 44 4c 89 e7 e8 94 09 05 00 c6 45 51 00 84 c0 0f 85 2c ff ff ff 83 3d 11 9f 10 00 03 77 07 <0f> ff e9 d5 fe ff ff 48 c7 c6 80 10 b4 c0 48 c7 c7 e8 58 b5 c0
Jan 31 22:30:56.279162 lappy kernel: ---[ end trace 6f609bca7ce1f856 ]---
Jan 31 22:30:56.430312 lappy kernel: ------------[ cut here ]------------
If you need any additional info, let me know and I'll get it for you.
I have an Edimax EW-7822ULC and am using the forked version of this driver from here: https://github.com/MeissnerEffect/rtl8822bu.git
I remember this being a problem back on a previous kernel, so this should still apply here.
I am using this on a laptop, which sometimes gets suspended. When the system wakes back up, the driver flips out. I have to unplug, replug, and restart the interface to get it working again.
Jan 31 22:30:56.276729 lappy kernel: ------------[ cut here ]------------ Jan 31 22:30:56.276883 lappy kernel: WARNING: CPU: 1 PID: 11256 at /home/user/work/edimax_802.11ac_adapter/MeissnerEffect-rtl8822bu/rtl8822bu/hal/rtl8822b/rtl8822b_phy.c:1145 rtl8822b_switch_chnl_and_set_bw+0x20d/0x3a4 [8822bu] Jan 31 22:30:56.276959 lappy kernel: Modules linked in: rfcomm devlink ebtable_filter ebtables ip6_tables iptable_filter bridge stp llc bnep binfmt_misc snd_hda_codec_realtek snd_hda_codec_generic efi_pstore nls_ascii nls_cp437 vfat fat joydev arc4 applesmc input_polldev coretemp kvm_intel b43 kvm bcma irqbypass nouveau btusb mac80211 mxm_wmi btrtl btbcm btintel wmi ttm efivars pcspkr rng_core drm_kms_helper bluetooth drm i2c_algo_bit shpchp drbg ansi_cprng uvcvideo videobuf2_vmalloc videobuf2_memops videobuf2_v4l2 ecdh_generic videobuf2_core 8822bu(O) videodev evdev media snd_hda_intel bcm5974 cfg80211 rfkill sg snd_hda_codec snd_hda_core snd_hwdep snd_pcm snd_timer snd soundcore nv_tco battery sbs acpi_als kfifo_buf industrialio sbshc apple_gmux video apple_bl ac button acpi_cpufreq parport_pc sunrpc ppdev lp parport efivarfs Jan 31 22:30:56.277037 lappy kernel: ip_tables x_tables autofs4 hid_apple hid_generic ext4 crc16 mbcache jbd2 fscrypto raid10 raid456 async_raid6_recov async_memcpy async_pq async_xor async_tx xor usbhid hid raid6_pq crc32c_generic libcrc32c raid1 raid0 multipath linear md_mod sd_mod ohci_pci ssb firewire_ohci mmc_core xhci_pci xhci_hcd pcmcia ahci libahci firewire_core crc_itu_t pcmcia_core libata scsi_mod forcedeth ohci_hcd ehci_pci ehci_hcd usbcore usb_common i2c_nforce2 Jan 31 22:30:56.277111 lappy kernel: CPU: 1 PID: 11256 Comm: RTW_CMD_THREAD Tainted: G W O 4.14.0-3-amd64 #1 Debian 4.14.13-1 Jan 31 22:30:56.277185 lappy kernel: Hardware name: Apple Inc. MacBookPro5,1/ Jan 31 22:30:56.277256 lappy kernel: task: ffff9135cb2701c0 task.stack: ffff9fbfcaff8000 Jan 31 22:30:56.277329 lappy kernel: RIP: 0010:rtl8822b_switch_chnl_and_set_bw+0x20d/0x3a4 [8822bu] Jan 31 22:30:56.277403 lappy kernel: RSP: 0018:ffff9fbfcaffbd08 EFLAGS: 00010293 Jan 31 22:30:56.277488 lappy kernel: RAX: 0000000000000000 RBX: ffff9fbfc37f9000 RCX: 0000000000000018 Jan 31 22:30:56.277562 lappy kernel: RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000 Jan 31 22:30:56.277635 lappy kernel: RBP: ffff9fbfc8f71000 R08: ffff91368fd1aba8 R09: 0000000000000000 Jan 31 22:30:56.277708 lappy kernel: R10: ffff9fbfcaffba48 R11: 0000000000000062 R12: ffff9fbfc8f7e6b0 Jan 31 22:30:56.277781 lappy kernel: R13: 0000000000000000 R14: 0000000000000001 R15: 0000000000000002 Jan 31 22:30:56.277854 lappy kernel: FS: 0000000000000000(0000) GS:ffff91368fd00000(0000) knlGS:0000000000000000 Jan 31 22:30:56.277927 lappy kernel: CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 Jan 31 22:30:56.278001 lappy kernel: CR2: 00007efe93fcb560 CR3: 000000024260a000 CR4: 00000000000406e0 Jan 31 22:30:56.278073 lappy kernel: Call Trace: Jan 31 22:30:56.278144 lappy kernel: rtl8822b_handle_sw_chnl_and_set_bw+0x1aa/0x1af [8822bu] Jan 31 22:30:56.278219 lappy kernel: rtl8822b_set_channel_bw+0x28/0x2d [8822bu] Jan 31 22:30:56.278302 lappy kernel: rtw_hal_set_chnl_bw+0x6d/0x9f [8822bu] Jan 31 22:30:56.278373 lappy kernel: set_channel_bwmode+0xbb/0x11a [8822bu] Jan 31 22:30:56.278444 lappy kernel: site_survey+0x31/0x1a2 [8822bu] Jan 31 22:30:56.278515 lappy kernel: sitesurvey_cmd_hdl+0x730/0x76b [8822bu] Jan 31 22:30:56.278586 lappy kernel: ? _rtw_mfree+0xa/0xc [8822bu] Jan 31 22:30:56.278657 lappy kernel: rtw_cmd_thread+0x35a/0x55e [8822bu] Jan 31 22:30:56.278729 lappy kernel: ? sitesurvey_set_msr+0x23/0x23 [8822bu] Jan 31 22:30:56.278800 lappy kernel: ? rtw_stop_cmd_thread+0x52/0x52 [8822bu] Jan 31 22:30:56.278870 lappy kernel: kthread+0x118/0x130 Jan 31 22:30:56.278941 lappy kernel: ? kthread_create_on_node+0x70/0x70 Jan 31 22:30:56.279013 lappy kernel: ret_from_fork+0x1f/0x30 Jan 31 22:30:56.279083 lappy kernel: Code: e8 e1 d7 04 00 e9 3a ff ff ff 0f b6 75 44 4c 89 e7 e8 94 09 05 00 c6 45 51 00 84 c0 0f 85 2c ff ff ff 83 3d 11 9f 10 00 03 77 07 <0f> ff e9 d5 fe ff ff 48 c7 c6 80 10 b4 c0 48 c7 c7 e8 58 b5 c0 Jan 31 22:30:56.279162 lappy kernel: ---[ end trace 6f609bca7ce1f856 ]--- Jan 31 22:30:56.430312 lappy kernel: ------------[ cut here ]------------
If you need any additional info, let me know and I'll get it for you.