Wifi and bluetooth: no coexistence? (LM 20.1 / Qualcomm QCA9377)

Questions about hardware, drivers and peripherals
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
therob
Level 1
Level 1
Posts: 36
Joined: Sat Jan 18, 2020 11:24 am

Wifi and bluetooth: no coexistence? (LM 20.1 / Qualcomm QCA9377)

Post by therob »

Hi,

I can use my Wifi without any problems (used Router: FritzBox 7360 / WiFi n+b+g / connected via 2.4GHz, Ch.7, Bandwitdth 40 MHz, WPA2, Streams 1 x 1, Link Quality=69/70 Signal level=-41 dBm).
My notebook Acer Aspire E15/E5-575G-57WP has a built-in QCA9377 network adaptor using ath10k_pci driver:

Code: Select all

Network controller: Qualcomm Atheros QCA9377 802.11ac Wireless Network Adapter (rev 31)
	Subsystem: Foxconn International, Inc. QCA9377 802.11ac Wireless Network Adapter
	Kernel driver in use: ath10k_pci
	Kernel modules: ath10k_pci
PROBLEM: If I do connect it via bluetooth to a Bose Sound Link Mini II (with latest firmware) the wifi-connection gets something between unreliable and unusable - so no coexistence of bluetooth and Wifi is possible.
I noticed it because my radio stream instantely begin to stutter - it turns out that is have constantly to buffer its 128k-Stream - which is not normal!

I had a look in the WiFi-Monitor of the Router/FritzBox and found a nearly 100% Wifi-workload without making anything heavy via WiFi (see screenshot).

I tried to change WiFi-Channels - but without any luck.

I found various similar issues in other forums, often in connection with same Chipset QCA9377 - but not any solution I would be confident to try on my LinuxMint 20.1. Most suggested solution are years old and I am not sure if they are not anyway integrated in LM or the kernel (I am on 5.4.0-70-generic).

Could you give me a hint what could be worth to try, maybe of the following suggestions:
  • blacklist device in btusb.ko (another Link) (it's from 2018 / Kernel 4.18.x / stated "this issue was solved in Linux 4.16"(so nothing for me???), and I never built anything myself...
  • changing "Power Management:on"-->off (Link 1, Link 2. I don't know about any other consequences and are unsure if it could be the root cause
  • patching firmware of Chipset: Link1 Link2 (don't know if it could be the same from ArchLinux to LM?) Link3
  • Also about firmware a very promising Link 4 (it is for the same notebook, but for Lubuntu 16 / shows instructions to replace a "board-2.bin" file with a newer one, but I think I have already the newest file. Also not sure if firmware-5.bin and firmware-6.bin has anything todo? Or something similar with this git? (seems promising - and it is just copying and renameing, no build modules etc.?). But I cannot check if this is also valid for my system)
  • bt_coex_ - parameter only exists for iwlwifi. My used aht10k_pci only supports irq_mode and reset_mode. So no solution of this Link1
further similar issues:
https://bbs.archlinux.org/viewtopic.php?id=245036
viewtopic.php?t=297124 --> resulted in gaving up and buying a external BT dongle - thats nothing for me!
https://bugs.launchpad.net/ubuntu/+sour ... ug/1746164 (bug only for ath9k)

On Windows 10 on same machine is working fine. Connecting Android-Smartphones via Bluetooth to the Bose-box and using wifi also works fine.

So anything you would suggest me to try to solve this problem?
Thanks for any comments of my points above (especialle with the firmware part) - or you have any further ideas?
Cheers, Robert
Attachments
Bluetooth_OFF_ON.jpg
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
therob
Level 1
Level 1
Posts: 36
Joined: Sat Jan 18, 2020 11:24 am

Re: Wifi and bluetooth: no coexistence? (LM 20.1 / Qualcomm QCA9377)

Post by therob »

*bump* ... seems no helping hand is present here?
User avatar
hglee
Level 6
Level 6
Posts: 1423
Joined: Fri Jun 22, 2018 4:31 pm

Re: Wifi and bluetooth: no coexistence? (LM 20.1 / Qualcomm QCA9377)

Post by hglee »

therob wrote: Tue Apr 06, 2021 5:07 pm
My notebook Acer Aspire E15/E5-575G-57WP

*bump* ... seems no helping hand is present here?


Looks like you're of a mind to be detailed, thorough, and investigative -- so I'm surprised that you post so little about your laptop. Your wifi chipset isn't operating in a vacuum, it's in a really busy electronic environment. The helping-hands here need to know those details, obtained by running diagnostic software. Without that, there are few facts to speak of.


Open a new Terminal window (Ctrl-Alt-T), then copy-and-paste the following command-line...

Code: Select all

inxi -Fxxxrz --usb;modinfo `inxi -n|grep -Po 'ver: \K[^ ]+'`|grep parm;iwconfig;mokutil --sb-state
On the Terminal menu bar, click Edit > Select All > Copy to copy all of the text output.

Paste that text into a reply here (placed between code tags).


Do you dual-boot Mint with Windows?


Linux Mint 21 Vanessa, MATE 1.26.0, kernel 5.15.0*, Dell 2-in-1
AMD Ryzen 7 5825U / Barcelo iGPU - 14" WUXGA Touchscreen
MediaTek MT7921 WiFi-6 BT-5.2; 32GB DDR4@3200MHz; XPG 2TB-NVMe
therob
Level 1
Level 1
Posts: 36
Joined: Sat Jan 18, 2020 11:24 am

Re: Wifi and bluetooth: no coexistence? (LM 20.1 / Qualcomm QCA9377)

Post by therob »

Thanks for coming back here.
No problem, if that's the missing point:

Code: Select all

System:
  Kernel: 5.4.0-73-generic x86_64 bits: 64 compiler: gcc v: 9.3.0 
  Desktop: Cinnamon 4.8.6 wm: muffin 4.8.1 dm: LightDM 1.30.0 
  Distro: Linux Mint 20.1 Ulyssa base: Ubuntu 20.04 focal 
Machine:
  Type: Laptop System: Acer product: Aspire E5-575G v: V1.12 
  serial: <filter> 
  Mobo: Acer model: Ironman_SK v: V1.12 serial: <filter> UEFI: Insyde 
  v: 1.12 date: 08/02/2016 
Battery:
  ID-1: BAT1 charge: 32.1 Wh condition: 32.1/41.4 Wh (77%) volts: 16.9/14.8 
  model: PANASONIC AS16A5K type: Li-ion serial: <filter> status: Full 
CPU:
  Topology: Dual Core model: Intel Core i5-7200U bits: 64 type: MT MCP 
  arch: Amber Lake rev: 9 L2 cache: 3072 KiB 
  flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx 
  bogomips: 21599 
  Speed: 646 MHz min/max: 400/3100 MHz Core speeds (MHz): 1: 700 2: 700 
  3: 700 4: 700 
Graphics:
  Device-1: Intel HD Graphics 620 
  vendor: Acer Incorporated ALI Aspire E5-575G driver: i915 v: kernel 
  bus ID: 00:02.0 chip ID: 8086:5916 
  Device-2: NVIDIA GM107 [GeForce 940MX] 
  vendor: Acer Incorporated ALI Acer Aspire E5-575G driver: N/A 
  bus ID: 01:00.0 chip ID: 10de:179c 
  Display: x11 server: X.Org 1.20.9 driver: modesetting unloaded: fbdev,vesa 
  resolution: 1920x1080~60Hz 
  OpenGL: renderer: Mesa Intel HD Graphics 620 (KBL GT2) v: 4.6 Mesa 20.2.6 
  direct render: Yes 
Audio:
  Device-1: Intel Sunrise Point-LP HD Audio 
  vendor: Acer Incorporated ALI Acer Aspire E5-575G driver: snd_hda_intel 
  v: kernel bus ID: 00:1f.3 chip ID: 8086:9d71 
  Device-2: NVIDIA GM107 High Definition Audio [GeForce 940MX] 
  vendor: Acer Incorporated ALI driver: snd_hda_intel v: kernel 
  bus ID: 01:00.1 chip ID: 10de:0fbc 
  Sound Server: ALSA v: k5.4.0-73-generic 
Network:
  Device-1: Qualcomm Atheros QCA9377 802.11ac Wireless Network Adapter 
  vendor: Foxconn driver: ath10k_pci v: kernel port: 4000 bus ID: 03:00.0 
  chip ID: 168c:0042 
  IF: wlp3s0 state: up mac: <filter> 
  Device-2: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet 
  vendor: Acer Incorporated ALI Acer Aspire E5-575G driver: r8169 v: kernel 
  port: 3000 bus ID: 04:00.1 chip ID: 10ec:8168 
  IF: enp4s0f1 state: down mac: <filter> 
Drives:
  Local Storage: total: 931.51 GiB used: 451.01 GiB (48.4%) 
  ID-1: /dev/sda vendor: Samsung model: SSD 860 QVO 1TB size: 931.51 GiB 
  speed: 6.0 Gb/s serial: <filter> rev: 2B6Q scheme: GPT 
Partition:
  ID-1: / size: 48.97 GiB used: 26.49 GiB (54.1%) fs: ext4 dev: /dev/sda7 
  ID-2: /home size: 29.40 GiB used: 25.23 GiB (85.8%) fs: ext4 
  dev: /dev/sda6 
USB:
  Hub: 1-0:1 info: Full speed (or root) Hub ports: 12 rev: 2.0 
  speed: 480 Mb/s chip ID: 1d6b:0002 
  Hub: 1-4:2 info: Alcor Micro USB Hub ports: 4 rev: 2.0 speed: 480 Mb/s 
  chip ID: 058f:6254 
  Device-1: 1-4.1:4 info: X10 Wireless Wireless Transceiver (ACPI-compliant) 
  type: <vendor specific> driver: N/A interfaces: 1 rev: 1.1 speed: 1.5 Mb/s 
  chip ID: 0bc7:0005 
  Device-2: 1-4.2:6 info: Evoluent VerticalMouse 4 type: Mouse 
  driver: hid-generic,usbhid interfaces: 1 rev: 2.0 speed: 12 Mb/s 
  chip ID: 1a7c:0191 
  Device-3: 1-4.3:7 info: Lite-On type: Keyboard,HID 
  driver: hid-generic,usbhid interfaces: 2 rev: 1.1 speed: 1.5 Mb/s 
  chip ID: 04ca:005d 
  Device-4: 1-5:3 info: Foxconn / Hon Hai type: Bluetooth driver: btusb 
  interfaces: 2 rev: 2.0 speed: 12 Mb/s chip ID: 0489:e0a3 
  Device-5: 1-7:5 info: Chicony HD WebCam type: Video driver: uvcvideo 
  interfaces: 2 rev: 2.0 speed: 480 Mb/s chip ID: 04f2:b573 
  Hub: 2-0:1 info: Full speed (or root) Hub ports: 6 rev: 3.0 speed: 5 Gb/s 
  chip ID: 1d6b:0003 
Sensors:
  System Temperatures: cpu: 45.0 C mobo: N/A 
  Fan Speeds (RPM): N/A 
Repos:
  No active apt repos in: /etc/apt/sources.list 
  Active apt repos in: /etc/apt/sources.list.d/additional-repositories.list 
  1: deb https://dl.winehq.org/wine-builds/ubuntu/ focal main
  Active apt repos in: /etc/apt/sources.list.d/gajim.list 
  1: deb https://ftp.gajim.org/debian unstable main
  Active apt repos in: /etc/apt/sources.list.d/google-earth-pro.list 
  1: deb [arch=amd64] http://dl.google.com/linux/earth/deb/ stable main
  Active apt repos in: /etc/apt/sources.list.d/heyarje-makemkv-beta-focal.list 
  1: deb http://ppa.launchpad.net/heyarje/makemkv-beta/ubuntu focal main
  Active apt repos in: /etc/apt/sources.list.d/home:ungoogled_chromium.list 
  1: deb http://download.opensuse.org/repositories/home:/ungoogled_chromium/Ubuntu_Focal/ /
  Active apt repos in: /etc/apt/sources.list.d/jonaski-strawberry-focal.list 
  1: deb http://ppa.launchpad.net/jonaski/strawberry/ubuntu focal main
  Active apt repos in: /etc/apt/sources.list.d/lazka-ppa-focal.list 
  1: deb http://ppa.launchpad.net/lazka/ppa/ubuntu focal main
  Active apt repos in: /etc/apt/sources.list.d/libreoffice-ppa-focal.list 
  1: deb http://ppa.launchpad.net/libreoffice/ppa/ubuntu focal main
  Active apt repos in: /etc/apt/sources.list.d/linuxuprising-apps-focal.list 
  1: deb http://ppa.launchpad.net/linuxuprising/apps/ubuntu focal main
  Active apt repos in: /etc/apt/sources.list.d/mozillateam-ppa-focal.list 
  1: deb http://ppa.launchpad.net/mozillateam/ppa/ubuntu focal main
  Active apt repos in: /etc/apt/sources.list.d/official-package-repositories.list 
  1: deb http://ftp.fau.de/mint/packages ulyssa main upstream import backport
  2: deb http://ftp.uni-kl.de/pub/linux/ubuntu focal main restricted universe multiverse
  3: deb http://ftp.uni-kl.de/pub/linux/ubuntu focal-updates main restricted universe multiverse
  4: deb http://ftp.uni-kl.de/pub/linux/ubuntu focal-backports main restricted universe multiverse
  5: deb http://security.ubuntu.com/ubuntu/ focal-security main restricted universe multiverse
  6: deb http://archive.canonical.com/ubuntu/ focal partner
  Active apt repos in: /etc/apt/sources.list.d/savoury1-digikam-focal.list 
  1: deb http://ppa.launchpad.net/savoury1/digikam/ubuntu focal main
  Active apt repos in: /etc/apt/sources.list.d/skype-stable.list 
  1: deb [arch=amd64] https://repo.skype.com/deb stable main
  Active apt repos in: /etc/apt/sources.list.d/teamviewer.list 
  1: deb https://linux.teamviewer.com/deb stable main
  Active apt repos in: /etc/apt/sources.list.d/ubuntuhandbook1-apps-focal.list 
  1: deb http://ppa.launchpad.net/ubuntuhandbook1/apps/ubuntu focal main
  Active apt repos in: /etc/apt/sources.list.d/virtualbox.list 
  1: deb [arch=amd64] http://download.virtualbox.org/virtualbox/debian focal contrib
Info:
  Processes: 239 Uptime: 4h 04m Memory: 7.65 GiB used: 3.41 GiB (44.6%) 
  Init: systemd v: 245 runlevel: 5 Compilers: gcc: 9.3.0 alt: 9 Shell: bash 
  v: 5.0.17 running in: gnome-terminal inxi: 3.0.38 
parm:           irq_mode:0: auto, 1: legacy, 2: msi (default: 0) (uint)
parm:           reset_mode:0: auto, 1: warm only (default: 0) (uint)
parm:           debug:Debug verbosity level (0=none, ..., 16=all) (int)
enp4s0f1  no wireless extensions.

wlp3s0    IEEE 802.11  ESSID:"xxx"  
          Mode:Managed  Frequency:2.442 GHz  Access Point: C8:0E:14:FD:38:8B   
          Bit Rate=1 Mb/s   Tx-Power=20 dBm   
          Retry short limit:7   RTS thr:off   Fragment thr:off
          Power Management:off
          Link Quality=59/70  Signal level=-51 dBm  
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:54   Missed beacon:0

lo        no wireless extensions.

SecureBoot disabled
Right, I am using Dual Boot on same SSD via GRUB with Windows 10 (where the problem is not seen).
User avatar
hglee
Level 6
Level 6
Posts: 1423
Joined: Fri Jun 22, 2018 4:31 pm

Re: Wifi and bluetooth: no coexistence? (LM 20.1 / Qualcomm QCA9377)

Post by hglee »

therob wrote: Sat May 22, 2021 3:35 pm
Right, I am using Dual Boot on same SSD via GRUB with Windows 10 (where the problem is not seen).


Disable Fast StartUp in Windows power options, otherwise Windows may not fully release system resources when it shuts down. Wifi can be particularly sensitive to this. Disable Fast Boot in the BIOS, to avoid hardware initialization and diagnostic shortcuts at power-on.


Install some useful system utilities:

Code: Select all

sudo apt-get install -y sysfsutils

Can we take a closer look at your wireless subsystem?:

Open a Terminal (Ctrl-Alt-T), click CODE:SELECT ALL, then copy-and-paste the following as one block of text into the Terminal window...

Code: Select all

W=wireless-info;wget -q -nv -t 5 -T 10 https://github.com/UbuntuForums/$W/raw/master/$W;chmod +x $W;V=$W.txt;\
./$W>/dev/null;(inxi -Fxxxrz --usb;lspci -nnkD;(lsmod;dmesg)|egrep -i "wl|firm|fail|wir|blu|bt";lsusb -tv)>>$V;\
((sudo lshw -c network;iwconfig)2>&1;rfkill list;cat /proc/cmdline;dkms status;mokutil --sb-state)>>$V;\
(systool -vm `inxi -n|grep -Po 'ver: \K[^ ]+'`)>>$V;tr -cd '\11\12\15\40-\176'<$V|nc termbin.com 9999;rm $W.* $W
After a somewhat long pause, a termbin.com URL will appear in the Terminal. Copy that URL into a reply here.


Linux Mint 21 Vanessa, MATE 1.26.0, kernel 5.15.0*, Dell 2-in-1
AMD Ryzen 7 5825U / Barcelo iGPU - 14" WUXGA Touchscreen
MediaTek MT7921 WiFi-6 BT-5.2; 32GB DDR4@3200MHz; XPG 2TB-NVMe
therob
Level 1
Level 1
Posts: 36
Joined: Sat Jan 18, 2020 11:24 am

Re: Wifi and bluetooth: no coexistence? (LM 20.1 / Qualcomm QCA9377)

Post by therob »

Windows Fast StartUp was already disabled.
BIOS FastBoot-Option is not present in my mini-Bios menu.

I did the termbin.com-Command (little bit creepy the script, and I hope not to expose sensitive information with this?!)
Here you are anyway: termbin[dot]com[slash]3ptd (at least some mini privacy shield, replace square brackets)

Any hints?
User avatar
hglee
Level 6
Level 6
Posts: 1423
Joined: Fri Jun 22, 2018 4:31 pm

Re: Wifi and bluetooth: no coexistence? (LM 20.1 / Qualcomm QCA9377)

Post by hglee »

therob wrote: Thu May 27, 2021 5:06 pm Any hints?


Try this:


Open a Terminal window (Ctrl-Alt-T), then copy-and-paste the following command...

Code: Select all

sudo modprobe -v btcoexist
Reboot.


If you later wish to remove that driver...

Code: Select all

sudo modprobe -rv btcoexist

Linux Mint 21 Vanessa, MATE 1.26.0, kernel 5.15.0*, Dell 2-in-1
AMD Ryzen 7 5825U / Barcelo iGPU - 14" WUXGA Touchscreen
MediaTek MT7921 WiFi-6 BT-5.2; 32GB DDR4@3200MHz; XPG 2TB-NVMe
therob
Level 1
Level 1
Posts: 36
Joined: Sat Jan 18, 2020 11:24 am

Re: Wifi and bluetooth: no coexistence? (LM 20.1 / Qualcomm QCA9377)

Post by therob »

Did it, but need to wait for a test until tomorrow.
Terminal statet:

Code: Select all

insmod /lib/modules/5.4.0-73-generic/kernel/drivers/net/wireless/realtek/rtlwifi/rtlwifi.ko 
insmod /lib/modules/5.4.0-73-generic/kernel/drivers/net/wireless/realtek/rtlwifi/btcoexist/btcoexist.ko 
I will see, if this is really the solution - but I doubt as my chipset is a qualcom and no realtek. Does it seem logically to you? I will check it tomorrow.
User avatar
hglee
Level 6
Level 6
Posts: 1423
Joined: Fri Jun 22, 2018 4:31 pm

Re: Wifi and bluetooth: no coexistence? (LM 20.1 / Qualcomm QCA9377)

Post by hglee »

therob wrote: Fri May 28, 2021 4:10 pm Did it, but need to wait for a test until tomorrow.
Terminal statet:

Code: Select all

insmod /lib/modules/5.4.0-73-generic/kernel/drivers/net/wireless/realtek/rtlwifi/rtlwifi.ko 
insmod /lib/modules/5.4.0-73-generic/kernel/drivers/net/wireless/realtek/rtlwifi/btcoexist/btcoexist.ko 

I will see, if this is really the solution - but I doubt as my chipset is a qualcom and no realtek. Does it seem logically to you? I will check it tomorrow.



On a VM with emulated Intel, btcoexist loaded modules for Realtek and Broadcom.

It's conceivable that the btcoexist module may selectively use subfunctions from various drivers. Manufacturers often use wireless technologies that are licensed, rather than their proprietary work. So some of Realtek's code might work for other chipsets.

I've looked at the QCA9377 chipset data-sheet, and I see that it does implement Bluetooth/WiFi coexistence -- but the ath10k (and ath11k) driver doesn't use it, and they've non-free binaries from Qualcomm. The ath9k driver supports coexist, and open-source so Linux devs may add functionality.


Linux Mint 21 Vanessa, MATE 1.26.0, kernel 5.15.0*, Dell 2-in-1
AMD Ryzen 7 5825U / Barcelo iGPU - 14" WUXGA Touchscreen
MediaTek MT7921 WiFi-6 BT-5.2; 32GB DDR4@3200MHz; XPG 2TB-NVMe
therob
Level 1
Level 1
Posts: 36
Joined: Sat Jan 18, 2020 11:24 am

Re: Wifi and bluetooth: no coexistence? (LM 20.1 / Qualcomm QCA9377)

Post by therob »

Thanks for your research.
I just made the test - and did not find any difference. First I thought it works, but immediately after browsing a homepage via WiFi the internet connection breaks (and also needs endless buffering for playing the 128kb/s-Stream, which is finally aborted) and the WiFi-usage in the router-monitor is again at 100%. Switching of Bluetooth (Notebook switch + Bose Box) internet/wifi gets back to normal after some seconds.

So, this solution seems not to work. For me it is really not understandable, why this can be a problem and that there is no solution for all drivers - bluetooth and wifi are not that new :-/ Crazy technical world...

Any further ideas which I could try within reasonable effort?
User avatar
hglee
Level 6
Level 6
Posts: 1423
Joined: Fri Jun 22, 2018 4:31 pm

Re: Wifi and bluetooth: no coexistence? (LM 20.1 / Qualcomm QCA9377)

Post by hglee »

therob wrote: Sat May 29, 2021 4:27 pm Any further ideas which I could try within reasonable effort?


We can try some tweaks of participating wireless modules.


You're currently using 40MHz channels. Coexistence may be assisted by operating in the 20MHz channels of the shared 2.4GHz band:

Code: Select all

sudo tee /etc/modprobe.d/cfg80211_h.conf <<< "options cfg80211 cfg80211_disable_40mhz_24ghz=Y"
Reboot.

If you later wish to remove this tweak:

Code: Select all

sudo rm -f /etc/modprobe.d/cfg80211_h.conf



The FritzBox 7360 router technology is a decade old. This tweak asks your notebook wifi to be more agreeable (less demanding) to earlier tech:

Code: Select all

sudo tee /etc/modprobe.d/mac80211_h.conf <<< "options mac80211 minstrel_vht_only=N"
Reboot.

If you later wish to remove this tweak:

Code: Select all

sudo rm -f /etc/modprobe.d/mac80211_h.conf


Linux Mint 21 Vanessa, MATE 1.26.0, kernel 5.15.0*, Dell 2-in-1
AMD Ryzen 7 5825U / Barcelo iGPU - 14" WUXGA Touchscreen
MediaTek MT7921 WiFi-6 BT-5.2; 32GB DDR4@3200MHz; XPG 2TB-NVMe
therob
Level 1
Level 1
Posts: 36
Joined: Sat Jan 18, 2020 11:24 am

Re: Wifi and bluetooth: no coexistence? (LM 20.1 / Qualcomm QCA9377)

Post by therob »

Sorry for bad news, no improvement for both suggestions.
  • 40-->20MHz no difference but the finding, that my router monitor tells me the notebook ist still connected with 40MHz, although no error message in terminal with your code (so it is not used at all?). But I made the cross check and made same setting in the router itself (activate "wifi coexistence in heavily used wifi environments"....or something like this, notebook was indeed connected with 20MHz - but no change.
    Plus usable bandwith of course lowerd from 6 to 3 MB/s which is for backups/syncs etc. quite no hurra
  • minstrel_vht_only=N --> no change (but I dont know in detail what it should do, but doesn't matter as it does not work).
    You state the router is that old - so you think it is a router related problem? But the latest firmware is from 2019 and Windows 10 can manage it without problems, so I doubt that the router is the weak point allone. Do you agree?
More? Or do we let it? (I would not die if it will not work .... just would be sad ... sad also about a thing for which I can use Linux less than Windows - a thought I don't like much :-/)
User avatar
hglee
Level 6
Level 6
Posts: 1423
Joined: Fri Jun 22, 2018 4:31 pm

Re: Wifi and bluetooth: no coexistence? (LM 20.1 / Qualcomm QCA9377)

Post by hglee »

therob wrote: Sun May 30, 2021 4:53 pm More? Or do we let it? (I would not die if it will not work .... just would be sad ... sad also about a thing for which I can use Linux less than Windows - a thought I don't like much :-/)


Your first post mentions "a nearly 100% Wifi-workload" on your FritzBox router. That was on my mind as a to-do.


Your setup could be effected by its immediate surroundings. I had no choice but to go 5GHz because the 2.4GHz band in my home office was just too crowded with my and my neighbour's wireless gadgets. It had become too electronically noisy. Virtually every consumer wireless device (and microwave oven) operates in that unlicensed ISM band.

When you add your Bose Bluetooth speaker you're adding another source of radio-frequency noise. You could take your laptop and Bose somewhere else, another room or even outdoors, to see if the symptoms change significantly. If so, perhaps BT coexistance isn't realistic at its current location.


Your first post mentions updating the ath10k firmware. I'm not sure if you did this already:

Open a Terminal window (Ctrl-Alt-T), then copy-and-paste the following command-line...

Code: Select all

cd ~/Downloads;git clone https://github.com/kvalo/ath10k-firmware.git;sudo cp -rf ath10k-firmware/QCA9377 /lib/firmware/ath10k/
Reboot.


Another shot in the dark: Skip the chipset OTP. Code and parameters in the factory-loaded OTP can take precedence over the driver. Skipping the OTP may allow the driver to configure the chipset in an alternative way (for better or worse):

Code: Select all

sudo tee /etc/modprobe.d/ath10k_core_sotp.conf <<< "options ath10k_core skip_otp=Y"
Reboot. To undo this:

Code: Select all

sudo rm -f /etc/modprobe.d/ath10k_core_sotp.conf.conf

Others found solutions that involve modifying module source-code but, without an Atheros card, I don't want to post module modifications that I can't compile and test on my own system.


I'm sure it frustrates you that there are many Linux users happily using QCA9377 for both WiFi and Bluetooth. One subsystem can't be fully insulated from others on a small circuit-board, and with nanometer interconnections hustling electrons at gigahertz speed it's sometimes a wonder they work at all.


I'm keeping your situation in mind, and an eye on this thread, for something new or something I've overlooked.


Linux Mint 21 Vanessa, MATE 1.26.0, kernel 5.15.0*, Dell 2-in-1
AMD Ryzen 7 5825U / Barcelo iGPU - 14" WUXGA Touchscreen
MediaTek MT7921 WiFi-6 BT-5.2; 32GB DDR4@3200MHz; XPG 2TB-NVMe
therob
Level 1
Level 1
Posts: 36
Joined: Sat Jan 18, 2020 11:24 am

Re: Wifi and bluetooth: no coexistence? (LM 20.1 / Qualcomm QCA9377)

Post by therob »

Finally I managed to give your suggestions a try - but without any success.

Neither copying the firmware-git to my system (without doing anything else) nor the settings skip_otp=Y made any difference.

So I think unfortunately I will leave it now as it is - and If I want to use bluetooth AND WiFi in parallel, I have to switch to dual-boot to Windows (where it still works perfectly, so BT coexistence can't dependent on my current location in my flat or hardware-only). And because in Windows it is working as expected, I can't follow your thesis that it is just a wonder, if it works. (I know what you want to say, but as a nano-technologist I know some basics about. And if a device and its antennas are designed, it also has to work as expected. And since Windows is doing the job it can be just a firmware/driver/software-issue in Linux ... thats whats make me sad :-/ ).

Anyway - big thanks for your help until here! Cheers, Robert
diospiroverde
Level 1
Level 1
Posts: 1
Joined: Mon Dec 27, 2021 9:33 pm

Re: Wifi and bluetooth: no coexistence? (LM 20.1 / Qualcomm QCA9377)

Post by diospiroverde »

Hi,

I was having the exact same problem you have, except I'm on Ubuntu 21.10.

What I had to do was the following...

Run this command exactly like hglee stated

Code: Select all

cd ~/Downloads;git clone https://github.com/kvalo/ath10k-firmware.git;sudo cp -rf ath10k-firmware/QCA9377 /lib/firmware/ath10k/
Then copy the file in /lib/firmware/ath10k/QCA9377/hw1.0/CNSS.TF.1.0/firmware-5.bin_CNSS.TF.1.0-00267-QCATFSWPZ-1 to /lib/firmware/ath10k/QCA9377/hw1.0/ and rename it to firmware-5.bin.

If you have a file called firmware-6.bin in that directory, delete it or rename it to something else.

Then reboot.

I am now able to use wifi and bluetooth at the same time without issue.
Locked

Return to “Hardware Support”