wlan0 disappeared..pls help

satanpotato

New Member
Joined
Apr 4, 2023
Messages
3
Reaction score
0
Credits
36
i have tried multiple things but i just cant get my wlan0 back

┌──(raj㉿raj)-[~]
└─$ ifconfig
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 10.114.14.15 netmask 255.255.0.0 broadcast 10.114.255.255
inet6 fe80::b6a9:fcff:fe04:e0e prefixlen 64 scopeid 0x20<link>
ether b4:a9:fc:04:0e:0e txqueuelen 1000 (Ethernet)
RX packets 32967 bytes 30584098 (29.1 MiB)
RX errors 0 dropped 571 overruns 0 frame 0
TX packets 23362 bytes 4844379 (4.6 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 6 bytes 340 (340.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 6 bytes 340 (340.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0


┌──(raj㉿raj)-[~]
└─$ lspci -nn | grep -i net
03:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 15)
04:00.0 Network controller [0280]: Qualcomm Atheros QCA9377 802.11ac Wireless Network Adapter [168c:0042] (rev 31)

┌──(raj㉿raj)-[~]
└─$ inxi -Nn
Network:
Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
driver: r8169
IF: eth0 state: up speed: 1000 Mbps duplex: full mac: b4:a9:fc:04:0e:0e
Device-2: Qualcomm Atheros QCA9377 802.11ac Wireless Network Adapter
driver: ath10k_pci
 


Was wifi working before and what has changed? Udates? Which Distro are you using?
Kernel update?
 
My laptop had the same (system76 .. internal wifi card) and the card was just bad. Noticed because both wifi and bluetooth vanished. Found the card on amazon for like $30, replaced and back in business.

(edit - looks like yours is $9.99 one day delivery on amazon)

Edit #2 - i'd run through some stuff though before ordering. Like @kc1di asked, did you do any updates and it didn't work after? Maybe pop in a USB flash drive w/ a different OS on it and see if it's recognized. It looks like you're running Kali.
 
Was wifi working before and what has changed? Udates? Which Distro are you using?
Kernel update?
i had some problem with bluetooth(around yesterday, since i started using sonarqube), and pulseaudio i tried resolving that unsuccessfully, i did some changes in /etc/pulse/default.pa and /usr/bin/start-pulseaudio-x11. i uninstalled pulse audio and blueman and autoremoved before reinstall, a while later later i decided to restart my computer, i got this message for first time on boot "failed to load rtl_nic/rtl8168h-2.fw kali linux".
and wifi has not been working since.

it is kali linux.
 
My laptop had the same (system76 .. internal wifi card) and the card was just bad. Noticed because both wifi and bluetooth vanished. Found the card on amazon for like $30, replaced and back in business.

(edit - looks like yours is $9.99 one day delivery on amazon)

Edit #2 - i'd run through some stuff though before ordering. Like @kc1di asked, did you do any updates and it didn't work after? Maybe pop in a USB flash drive w/ a different OS on it and see if it's recognized. It looks like you're running Kali.
i will use this as my last resort, thankyou
 
I've had luck doing this sometimes.

It's a little advanced.
How to restart PCI devices.

Depending on your particular desktop environment and hardware, it may be possible to switch the PCI card off and back on using a GUI or hardware switch or button. But if none of those options exist or work, the following CLI method of restarting the PCI card might prove useful.

To restart a wireless card you will need its PCI domain, bus, device and function address. Run the lspci command, as shown below, and search its output to find your wireless card’s PCI address.

$ lspci
<snip>
3d:00.0 Network controller: Qualcomm Atheros QCA6174 802.11ac Wireless Network Adapter (rev 32)
In the above example, the PCI address of the Atheros card is 3d:00.0. If the address shown does not include a domain part (that is, the number at the start of the line contains only one colon character), then the computer has only one PCI domain and it is 0000.

The following commands, with the capital letters substituted with the device’s PCI address, can be used to restart a PCI device on a running system.

Code:
# echo "1" > /sys/bus/pci/devices/DDDD\:BB\:DD.F/remove
# sleep 1
# echo "1" > /sys/bus/pci/rescan
In the above example, the placeholders DDDD, BB, DD, and F are for the PCI device domain, bus, device, and function respectively.

Substituting the values from the example output of the lspci command shown above gives the command that would need to be run to restart the Atheros wireless card on this example system.

Code:
$ sudo /bin/sh -c "echo '1' > /sys/bus/pci/devices/0000\:3d\:00.0/remove"
$ sleep 1
$ sudo /bin/sh -c "echo '1' > /sys/bus/pci/rescan"

If required, the above commands could be automated by putting them in a script.

$ nano restart-wireless-card.sh

Code:
#!/bin/bash
echo "1" > /sys/bus/pci/devices/0000\:3d\:00.0/remove 
sleep 1 
echo "1" > /sys/bus/pci/rescan

Enable executable permissions with, for example, chmod +x restart-wireless-card.sh and run sudo ./restart-wireless-card.sh whenever you need to restart your PCI device.

Not all PCI devices can be restarted using this method. But the real-life example demonstrated above does work to get the WiFi card running again without requiring a full reboot of the PC.
 
Last edited:
Hey man I just had the same issue. I solved by
executing
1) sudo service NetworkManager restart
2) Ifconfig wlan0 up

Otherwise
1) sudo mordprobe -r ath10k_pci
2) sudo mordprobe -r ath10k_core
3) sudo mordprobe -r ath10k_core rawmode=0 cryptomode=0
4) sudo mordprobe ath10k_pci

Hope it helps.
 
  • Like
Reactions: Rob


Top