Random WiFi Dropping

Questions about Wi-Fi and other network devices, file sharing, firewalls, connection sharing etc
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
janeofcrows

Random WiFi Dropping

Post by janeofcrows »

Hello! I run Linux Mint 18.2 Cinnamon, and for the past few days, my WiFi drops seemingly at random, and can only be fixed by rebooting. I attempted at first to disable power management, but it still happens even with power management off permanently.

The output of

Code: Select all

sudo inxi -Nn
is

Code: Select all

Network:   Card: Qualcomm Atheros Device 0042 driver: ath10k_pci
           IF: wlp2s0 state: up speed: N/A duplex: N/A mac: xx:xx:xx:xx:xx:xx
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.
janeofcrows

Re: Random WiFi Dropping

Post by janeofcrows »

Here's the result of the wireless script:

http://termbin.com/rz61
JeremyB
Level 21
Level 21
Posts: 13771
Joined: Fri Feb 21, 2014 8:17 am

Re: Random WiFi Dropping

Post by JeremyB »

After you have disconnects again, do ./wireless-info and then after rebooting do cat wireless-info.txt | nc termbin.com 9999 as your current results do not show any reason for disconnects
janeofcrows

Re: Random WiFi Dropping

Post by janeofcrows »

Thanks. So far, things seem to be working: and this is my second reboot after fixing power management.
janeofcrows

Re: Random WiFi Dropping

Post by janeofcrows »

It failed again. Here's the result of the wireless script:

http://termbin.com/c44y
User avatar
JerryF
Level 16
Level 16
Posts: 6554
Joined: Mon Jun 08, 2015 1:23 pm
Location: Rhode Island, USA

Re: Random WiFi Dropping

Post by JerryF »

janeofcrows wrote: Wed Oct 10, 2018 4:05 pm ...
The output of

Code: Select all

sudo inxi -Nn
is

Code: Select all

Network:   Card: Qualcomm Atheros Device 0042 driver: ath10k_pci
           IF: wlp2s0 state: up speed: N/A duplex: N/A mac: xx:xx:xx:xx:xx:xx
Just a side note: It's not necessary to run inxi as sudo.

Also, if you don't want the output of any inxi command to show mac address, put a z at the end of your inxi command

Example:

Code: Select all

$ inxi -Nnz
Network:   Card-1: Intel 82579LM Gigabit Network Connection driver: e1000e
           IF: enp0s25 state: down mac: <filter>
           Card-2: Intel Centrino Advanced-N 6205 [Taylor Peak] driver: iwlwifi
           IF: wlo1 state: up mac: <filter>
JeremyB
Level 21
Level 21
Posts: 13771
Joined: Fri Feb 21, 2014 8:17 am

Re: Random WiFi Dropping

Post by JeremyB »

Lets see if newer firmware helps

Code: Select all

sudo apt-get install linux-firmware
Reboot
janeofcrows

Re: Random WiFi Dropping

Post by janeofcrows »

Code: Select all

➜  ~ sudo apt-get install linux-firmware
[sudo] password for corvidium: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
linux-firmware is already the newest version (1.157.20).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

JeremyB
Level 21
Level 21
Posts: 13771
Joined: Fri Feb 21, 2014 8:17 am

Re: Random WiFi Dropping

Post by JeremyB »

Lets get the newest from upstream

Code: Select all

cd /lib/firmware/ath10k/QCA9377/hw1.0
sudo mv board-2.bin board-2.bin.bak
sudo wget https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/plain/ath10k/QCA9377/hw1.0/board-2.bin
sudo mv board.bin board.bin.bak
sudo wget https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/plain/ath10k/QCA9377/hw1.0/board.bin
sudo mv firmware-5.bin firmware-5.bin.bak
sudo wget https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/plain/ath10k/QCA9377/hw1.0/firmware-5.bin
Reboot
janeofcrows

Re: Random WiFi Dropping

Post by janeofcrows »

For a while it stopped happening; now it's returned. I've just run the code in your latest response, and I'll respond the next time I need to reboot with another link from the wireless script
janeofcrows

Re: Random WiFi Dropping

Post by janeofcrows »

It happened again. This is my first reboot since installing the firmware with your post, so let's see if it happens again: http://termbin.com/p0sdg
janeofcrows

Re: Random WiFi Dropping

Post by janeofcrows »

Second reboot since installing the firmware: http://termbin.com/ckkc
JeremyB
Level 21
Level 21
Posts: 13771
Joined: Fri Feb 21, 2014 8:17 am

Re: Random WiFi Dropping

Post by JeremyB »

You could try

Code: Select all

echo "options ath10k_pci reset_mode=1" | sudo tee /etc/modprobe.d/ath10k-pci.conf
Reboot, the other possible solution involves changing some of the source code and compiling a new module and that isn't a terrible thing, just not as convenient
janeofcrows

Re: Random WiFi Dropping

Post by janeofcrows »

janeofcrows

Re: Random WiFi Dropping

Post by janeofcrows »

JeremyB
Level 21
Level 21
Posts: 13771
Joined: Fri Feb 21, 2014 8:17 am

Re: Random WiFi Dropping

Post by JeremyB »

I have to find that bug report again, spent some time today cloning an install to SSD and see if I can compile a module for the kernel you are using
JeremyB
Level 21
Level 21
Posts: 13771
Joined: Fri Feb 21, 2014 8:17 am

Re: Random WiFi Dropping

Post by JeremyB »

Try this

Code: Select all

cd /lib/modules/4.15.0-38-generic/kernel/drivers/net/wireless/ath/ath10k/
sudo mv ath10k_pci.ko ath10k_pci.bak
sudo wget https://www.dropbox.com/s/edzcecy5o9c7is7/ath10k_pci.ko
Check mokutil --sb-state and if the results show Secure Boot is enabled, reboot and disable Secure Boot in BIOS settings, if it says secure boot is disabled or mokutil is not installed just reboot and see if it works
User avatar
Spearmint2
Level 16
Level 16
Posts: 6900
Joined: Sat May 04, 2013 1:41 pm
Location: Maryland, USA

Re: Random WiFi Dropping

Post by Spearmint2 »

Please consider your wifi hardware device itself may be failing.
All things go better with Mint. Mint julep, mint jelly, mint gum, candy mints, pillow mints, peppermint, chocolate mints, spearmint,....
janeofcrows

Re: Random WiFi Dropping

Post by janeofcrows »

JeremyB wrote: Sun Nov 11, 2018 12:48 pm Try this

Code: Select all

cd /lib/modules/4.15.0-38-generic/kernel/drivers/net/wireless/ath/ath10k/
sudo mv ath10k_pci.ko ath10k_pci.bak
sudo wget https://www.dropbox.com/s/edzcecy5o9c7is7/ath10k_pci.ko
Check mokutil --sb-state and if the results show Secure Boot is enabled, reboot and disable Secure Boot in BIOS settings, if it says secure boot is disabled or mokutil is not installed just reboot and see if it works
Thank you very much. I've run this code. I'll keep this thread updated if any problems persist.
janeofcrows

Re: Random WiFi Dropping

Post by janeofcrows »

Unfortunately, the problem has persisted: http://termbin.com/bkcb
Locked

Return to “Networking”