LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Wifi Adapter is not recognized when Centos 7 updates (https://www.linuxquestions.org/questions/linux-software-2/wifi-adapter-is-not-recognized-when-centos-7-updates-4175661285/)

Andrew Stallard 09-22-2019 01:16 AM

Wifi Adapter is not recognized when Centos 7 updates
 
I have a Dell Laptop with a Qualcomm Atheros QCA9377 Network Adapter on Centos 7

When the system updated, the network adapter no longer works because the OS can't see it.

However, when I use the command

Code:

lspci | grep Network
I get

Quote:

Qualcomm Atheros QCA9377 802.11ac Wireless Network Adapter (rev 31)
So it appears that my Adapter is recognized.

Why isn't it connecting?

I have searched for solutions to this problem and it seems to be that the driver needs to be re-installed, but no drivers for Linux exist for that particular adapter.

Has anybody actually had this problem and fixed it?

ferrari 09-22-2019 04:03 AM

Actually, that command only reports that a network-class device is present, not that driver is loaded. Instead do
Code:

lspci -nnk |grep -iA3 net
Also, is firmware present/loaded?
Code:

dmesg | egrep -i "ath|firmware"
When a suitable driver (and if applicable firmware) is loaded then the network device node should be present...
Code:

ip link

ferrari 09-22-2019 04:04 AM

BTW, the same issue reported here....

https://www.centos.org/forums/viewto...71707&p=301576

Andrew Stallard 09-22-2019 10:26 AM

Quote:

Originally Posted by ferrari (Post 6039224)
Actually, that command only reports that a network-class device is present, not that driver is loaded. Instead do
Code:

lspci -nnk |grep -iA3 net
Also, is firmware present/loaded?
Code:

dmesg | egrep -i "ath|firmware"
When a suitable driver (and if applicable firmware) is loaded then the network device node should be present...
Code:

ip link

The relevant output of the command

Code:

lspci -nnk |grep -iA3 net
is

Code:

16:00.0 Network controller [0280]: Qualcomm Atheros QCA9377 802.11ac Wireless network Adapter [168c:0042] (rev 31)
        Subsystem: Dell Device [1028:1810]
        Kernel driver in use: ath10k_pci
        Kernel modules: ath10k_pci



The output of the command

Code:

dmesg | egrep -i "ath|firmware"
is

Code:

[    0.012941] [Firmware Bug]: cpu 0, invalid threshold interrupt offset 1 for bank 4, block 0 (MSR00000413=0xd000000001000000)
[    0.253024] ACPI: [Firmware Bug]: BIOS _OSI(Linux) query ignored
[    0.262433] [Firmware Bug]: ACPI: No _BQC method, cannot determine initial brightness
[    0.262598] [Firmware Bug]: ACPI: No _BQC method, cannot determine initial brightness
[    0.282215] acpi PNP0A08:00: [Firmware Info]: MMCONFIG for domain 0000 [bus 00-3f] only partially covers this bridge
[    2.272142] [drm] Found UVD firmware Version: 1.43 Family ID: 1
[    2.272503] [drm] Found VCE firmware Version: 52.0 Binary ID: 3
[  13.337661] ath10k_pci 0000:16:00.0: enabling device (0000 -> 0002)
[  13.339198] ath10k_pci 0000:16:00.0: irq 228 for MSI/MSI-X
[  13.339267] ath10k_pci 0000:16:00.0: pci irq msi oper_irq_mode 2 irq_mode 0 reset_mode 0
[  14.002571] ath10k_pci 0000:16:00.0: qca9377 hw1.1 target 0x05020001 chip_id 0x003821ff sub 1028:1810
[  14.002577] ath10k_pci 0000:16:00.0: kconfig debug 0 debugfs 1 tracing 0 dfs 0 testmode 0
[  14.003290] ath10k_pci 0000:16:00.0: firmware ver WLAN.TF.2.1-00021-QCARMSWP-1 api 6 features wowlan,ignore-otp crc32 42e41877
[  14.050469] [Firmware Bug]: ACPI: No _BQC method, cannot determine initial brightness
[  14.184398] Bluetooth: hci0: QCA: patch rome 0x302 build 0x3e8, firmware rome 0x302 build 0x111
[  17.113843] ath10k_pci 0000:16:00.0: unable to read from the device
[  17.113851] ath10k_pci 0000:16:00.0: could not execute otp for board id check: -110
[  17.113855] ath10k_pci 0000:16:00.0: failed to get board id from otp: -110
[  17.113912] ath10k_pci 0000:16:00.0: could not probe fw (-110)

Apparently it can no longer read the driver after the updates.


Thank you for your help.

Andrew Stallard 09-22-2019 10:37 AM

Could this be related to the Meltdown CPU Vulnerability CVE-2017-5754 on Linux?


https://www.cyberciti.biz/faq/patch-...17-5754-linux/

Andrew Stallard 09-22-2019 10:40 AM

I found a firmware update on GitHub

firmware-5.bin_WLAN.TF.1.0-00023-QCATFSWPZ-1

I have no idea how I can install it though.

ferrari 09-22-2019 02:19 PM

With something like
Code:

sudo cp firmware-5.bin_WLAN.TF.1.0-00023-QCATFSWPZ-1 /lib/firmware/ath10k/QCA9377/hw1.0/firmware-5.bin
https://wireless.wiki.kernel.org/en/...th10k/firmware

However, you need to be sure that this is suitable for your particular chipset, and I have no idea whether this will fix the issue you've encountered. Uoi might want to subscribe/add to the CentOS thread I linked to.

Andrew Stallard 09-22-2019 11:41 PM

Well, nobody seems to know how to fix this so maybe it's not fixable.

I checked out this Bugzilla page

https://bugzilla.redhat.com/show_bug.cgi?id=1527137

Apparently, the latest Qualcomm has is firmware-5. These new updates require firmware-6.

At any rate can anybody recommend a good USB wifi adapter that plays nicely with Centos 7?

ferrari 09-23-2019 02:49 AM

Try the following workaround, as described in this Gentoo thread...
https://forums.gentoo.org/viewtopic-...2-start-0.html

Code:

cd lib/firmware/ath10k/QCA9377/hw1.0/
Code:

ls
For reference I get
Code:

board-2.bin  board.bin  firmware-5.bin  firmware-6.bin  notice_ath10k_firmware-5.txt  notice_ath10k_firmware-6.txt
Remove 'firmware-6.bin' and 'notice_ath10k_firmware-6.txt', (leaving firmware-5.bin and notice_ath10k_firmware-5.txt). When you next reboot (or unload and reload the ath10k_pci module), you'll find that it loads the working API 5 firmware. (Your previous output showed it was loading the API 6 firmware.)

So
Code:

dmesg | grep -i ath10k
should show something like
Code:

ath10k_pci 0000:16:00.0: firmware ver WLAN.TF.1.0-00002-QCATFSWPZ-5 api 5 features ignore-otp crc32 c3e0d04f
and more importantly, your wifi should be working.

According to that thread, the firmware-6 files always seem to result in non-working wifi for these devices.

Hope that does the trick.

Andrew Stallard 09-23-2019 10:42 AM

Quote:

Originally Posted by ferrari (Post 6039627)
Try the following workaround, as described in this Gentoo thread...
https://forums.gentoo.org/viewtopic-...2-start-0.html

Code:

cd lib/firmware/ath10k/QCA9377/hw1.0/
Code:

ls
For reference I get
Code:

board-2.bin  board.bin  firmware-5.bin  firmware-6.bin  notice_ath10k_firmware-5.txt  notice_ath10k_firmware-6.txt
Remove 'firmware-6.bin' and 'notice_ath10k_firmware-6.txt', (leaving firmware-5.bin and notice_ath10k_firmware-5.txt). When you next reboot (or unload and reload the ath10k_pci module), you'll find that it loads the working API 5 firmware. (Your previous output showed it was loading the API 6 firmware.)

So
Code:

dmesg | grep -i ath10k
should show something like
Code:

ath10k_pci 0000:16:00.0: firmware ver WLAN.TF.1.0-00002-QCATFSWPZ-5 api 5 features ignore-otp crc32 c3e0d04f
and more importantly, your wifi should be working.

According to that thread, the firmware-6 files always seem to result in non-working wifi for these devices.

Hope that does the trick.

Yes, that worked!

Thank You!

ferrari 09-23-2019 12:45 PM

Glad to have been of assistance.

Dennis2 09-23-2019 01:47 PM

Also a big thank from me.

After searching where I expected to find the solution I found it here.

I also run Fedora aswell where I expect to have problems not on Centos.

Dennis

msfontana 09-30-2019 10:13 PM

Quote:

Originally Posted by ferrari (Post 6039627)
Try the following workaround, as described in this Gentoo thread
...
Hope that does the trick.

Just created an account to say thank you. This solves the problem, at least for me on Centos 7.7 (Kernel 3.10.0-1062)

ferrari 09-30-2019 11:52 PM

Glad that you found this thread, and it was of help to you. :)

pbakhil 11-22-2019 01:55 PM

Big thank you!
 
Thank you the help. It worked like a charm.


All times are GMT -5. The time now is 09:10 PM.