wifi adapter not recognized

Issues related to configuring your network
waltson
Posts: 6
Joined: 2021/05/10 15:20:26

wifi adapter not recognized

Post by waltson » 2021/05/10 18:25:53

I installed Centos7 on my DELL laptop, the wifi adapter in my system is Qualcomm Atheros QCA9377 802.11ac.
I use command $ lspci | grep -i network, it showed below:
02:00.0 Network controller: Qualcomm Atheros QCA9377 802.11ac Wireless Network Adapter (rev 31)

I checked my wifi device, there's no device detected. command $ nmcli d, it showed below:
DEVICE TYPE STATE CONNECTION
p8p1 ethernet connected p8p1
virbr0 bridge connected virbr0
lo loopback unmanaged --
virbr0-nic tun unmanaged --

I checked my linux kernel using command $uname -r, it showed below:
3.10.0-1160.el7.x86_64

I searched and found that may be because I did not installed the driver, so I followed a solution viewtopic.php?t=50112. I installed kmod-ath5k-0.0-3.el7.elrepo.x86_64, but it still did not work.

And I tried another solution https://www.linuxquestions.org/question ... 175661285/. I used the command $ lspci -nnk |grep -iA3 net to check the driver, it showed below:
01:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL810xE PCI Express Fast Ethernet controller [10ec:8136] (rev 07)
Subsystem: Dell Device [1028:097c]
Kernel driver in use: r8169
Kernel modules: r8169
02:00.0 Network controller [0280]: Qualcomm Atheros QCA9377 802.11ac Wireless Network Adapter [168c:0042] (rev 31)
Subsystem: Dell Device [1028:1810]
Kernel modules: ath10k_pci

And then I used the command $ dmesg | egrep -i "ath|firmware" to check the firmware, it showed below:
[ 0.152490] ACPI: [Firmware Bug]: BIOS _OSI(Linux) query ignored
[ 3.158087] dell_wmi: firmware scancode 0x48 maps to unrecognized keycode 0xffff
[ 3.158090] dell_wmi: firmware scancode 0x50 maps to unrecognized keycode 0xffff

And then I checked firmwares using command $ cd lib/firmware/ath10k/QCA9377/hw1.0/ $ ls, it showed below:
board-2.bin board.bin firmware-5.bin firmware-6.bin
I didn't see the "notice_ath10k_firmware-5.txt and notice_ath10k_firmware-6.txt" files.
I followed their steps, used the command $ dmesg | grep -i ath10k, it didn't show anything.

I am so sad about this, what should I do?

User avatar
TrevorH
Site Admin
Posts: 33191
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: wifi adapter not recognized

Post by TrevorH » 2021/05/10 19:37:21

According to

Code: Select all

[root@centos7 ~]# grep -i 168c /lib/modules/3.10.0-1160.25.1.el7.x86_64/modules.* | grep -i 0042
/lib/modules/3.10.0-1160.25.1.el7.x86_64/modules.alias:alias pci:v0000168Cd00000042sv*sd*bc*sc*i* ath10k_pci
your adapter is supported by the in-kernel ath10k_pci module.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

waltson
Posts: 6
Joined: 2021/05/10 15:20:26

Re: wifi adapter not recognized

Post by waltson » 2021/05/10 19:51:29

Hi,

what do you mean by the following command"
[root@centos7 ~]# grep -i 168c /lib/modules/3.10.0-1160.25.1.el7.x86_64/modules.* | grep -i 0042
/lib/modules/3.10.0-1160.25.1.el7.x86_64/modules.alias:alias pci:v0000168Cd00000042sv*sd*bc*sc*i* ath10k_pci

because when I enter this command, it gave the error,
[root@localhost /]# grep -i 168c /lib/modules/3.10.0-1160.25.1.el7.x86_64/modules.* | grep -i 0042
grep: /lib/modules/3.10.0-1160.25.1.el7.x86_64/modules.*: No such file or directory

the only thing I can find in my /lib/modules/3.10.0-1160.25.1.el7.x86_64/ is below:
[root@localhost 3.10.0-1160.el7.x86_64]# ls
build modules.builtin modules.modesetting source
extra modules.builtin.bin modules.networking updates
kernel modules.dep modules.order vdso
modules.alias modules.dep.bin modules.softdep weak-updates
modules.alias.bin modules.devname modules.symbols
modules.block modules.drm modules.symbols.bin

and you said "your adapter is supported by the in-kernel ath10k_pci module." what should I do next?

User avatar
TrevorH
Site Admin
Posts: 33191
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: wifi adapter not recognized

Post by TrevorH » 2021/05/10 22:26:05

You don;t have the latest kernel installed since you don't have a network connection to be able to run yum update so your kernel version is different. Try grep -i 168c /lib/modules/$(uname -r)/modules.* | grep -i 0042 and you should see the same info I got but for your kernel.
and you said "your adapter is supported by the in-kernel ath10k_pci module." what should I do next?
Don't know but it does mean that you don't need the kmod you installed as it's supplying the wrong module for your card.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

waltson
Posts: 6
Joined: 2021/05/10 15:20:26

Re: wifi adapter not recognized

Post by waltson » 2021/05/11 16:09:28

Thank you TrevorH!

I updated my system following your steps $yum update, and then I typed $ grep -i 168c /lib/modules/$(uname -r)/modules.* | grep -i 0042, I saw the information you shown me as below:
/lib/modules/3.10.0-1160.el7.x86_64/modules.alias:alias pci:v0000168Cd00000042sv*sd*bc*sc*i* ath10k_pci

so what should I do next?

User avatar
TrevorH
Site Admin
Posts: 33191
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: wifi adapter not recognized

Post by TrevorH » 2021/05/11 16:51:59

Well all that means is that ath10k_pci is listed as the driver for your model of network card. I'd check if it's already loaded by running lsmod | grep ath10k_pci (lsmod needs to be run as root) and if it's not then try modprobe ath10k_pci. Check the output from the dmesg command before and after running the modprobe to see if it spits out any errors. If it loads then check with ip link sh to see if you have any new devices listed.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

waltson
Posts: 6
Joined: 2021/05/10 15:20:26

Re: wifi adapter not recognized

Post by waltson » 2021/05/11 17:08:06

I tried your command $ lsmod | grep ath10k_pci, but I got nothing. And then I entered $ modprobe ath10k_pci, I got a error below:
modprobe: ERROR: could not insert 'ath10k_pci': Required key not available

Then I tried other command to see my driver and other information as below:

[root@localhost /]# lspci -nnk |grep -iA3 net
01:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL810xE PCI Express Fast Ethernet controller [10ec:8136] (rev 07)
Subsystem: Dell Device [1028:097c]
Kernel driver in use: r8169
Kernel modules: r8169
02:00.0 Network controller [0280]: Qualcomm Atheros QCA9377 802.11ac Wireless Network Adapter [168c:0042] (rev 31)
Subsystem: Dell Device [1028:1810]
Kernel modules: ath10k_pci
03:00.0 Non-Volatile memory controller [0108]: Samsung Electronics Co Ltd Device [144d:a809]
[root@localhost /]# dmesg | egrep -i "ath|firmware"
[ 0.153995] ACPI: [Firmware Bug]: BIOS _OSI(Linux) query ignored
[ 3.728912] dell_wmi: firmware scancode 0x48 maps to unrecognized keycode 0xffff
[ 3.728918] dell_wmi: firmware scancode 0x50 maps to unrecognized keycode 0xffff
[root@localhost /]# ip link sh
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: p8p1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP mode DEFAULT group default qlen 1000
link/ether 98:e7:43:2e:ea:e5 brd ff:ff:ff:ff:ff:ff
3: virbr0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN mode DEFAULT group default qlen 1000
link/ether 52:54:00:58:e7:10 brd ff:ff:ff:ff:ff:ff
4: virbr0-nic: <BROADCAST,MULTICAST> mtu 1500 qdisc pfifo_fast master virbr0 state DOWN mode DEFAULT group default qlen 1000
link/ether 52:54:00:58:e7:10 brd ff:ff:ff:ff:ff:ff

I listed the information on my screen, maybe you know what's going on with my device.

I don't know what's wrong with my device, it really make me so frustrated.

User avatar
TrevorH
Site Admin
Posts: 33191
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: wifi adapter not recognized

Post by TrevorH » 2021/05/11 17:29:05

$ lsmod | grep ath10k_pci,
A $ prompt usually means you are NOT root. To run lsmod it's not required to be root (I thought it was) but to run modprobe it most definitely is required that you are root (or using sudo).
ERROR: could not insert 'ath10k_pci': Required key not available
Are you using secure boot? Did anything get logged to /var/log/messages when you ran modprobe? Does it now appear in the output from lsmod?
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

waltson
Posts: 6
Joined: 2021/05/10 15:20:26

Re: wifi adapter not recognized

Post by waltson » 2021/05/11 21:51:47

I definetelly sure, I tried $ lsmod | grep ath10k_pci under root, I got the prompt as shown below,
[root@localhost /]# lsmod | grep ath10k_pci
[root@localhost /]#

And I also tried uder $ lsmod | grep ath10k_pci common enviroment, it was the same.
[waltson@localhost ~]$ lsmod | grep ath10k_pci
[waltson@localhost ~]$

I did not use the secure root, I use the upgraded kernel boot. I tried again with $ modprobe ath10k_pci, but I still got the error.

I logged to /var/log, it shows below:
[root@localhost /]# modprobe ath10k_pci
modprobe: ERROR: could not insert 'ath10k_pci': Required key not available
[root@localhost /]# cd /var/log/messages
bash: cd: /var/log/messages: Not a directory
[root@localhost /]# cd /var/log/
[root@localhost log]# ls
anaconda cups messages spooler
audit dmesg messages-20210511 spooler-20210511
boot.log dmesg.old ntpstats sssd
boot.log-20210505 firewalld pluto swtpm
boot.log-20210506 gdm ppp tallylog
boot.log-20210507 glusterfs qemu-ga tuned
boot.log-20210510 grubby rhsm wpa_supplicant.log
boot.log-20210511 grubby_prune_debug sa wtmp
btmp lastlog samba Xorg.0.log
chrony libvirt secure Xorg.0.log.old
cron maillog secure-20210511 Xorg.9.log
cron-20210511 maillog-20210511 speech-dispatcher yum.log

User avatar
TrevorH
Site Admin
Posts: 33191
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: wifi adapter not recognized

Post by TrevorH » 2021/05/11 22:09:39

/var/log/messages is a file. It contains your system log. Use less /var/log/messages to read it. Space to go forward a page, b to go backwards, /string to search for 'string', capital G to go to the end of the file, lowercase g to go to the top. Oh and q to quit.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Post Reply