That’s the output it gave me. Copied and pasted the given command twice just to be sure wasn’t a mistake.
Above is not the command I posted.
lspci -nnk | grep -iA3 -E "network|Wi-Fi"
was the command I posted as can be seen by reading the post above.

Above is not the command I posted.
lspci -nnk | grep -iA3 -E "network|Wi-Fi"
was the command I posted as can be seen by reading the post above.
spaceboy@fedora ~> lspci -nnk | grep -iA3 -E “network|Wi-Fi”
spaceboy@fedora ~ [0|1]>
ok, tried it from bash shell as been using fish shell. That command returns nothing using bash.
That command should work well in bash.
With fish I cannot be certain the options all perform the same so use the man pages or known differences between bash and fish to define why the differing output.
lspci -nnk
is equivalent in bash to lspci -n -n -k
In bash egrep
is the same as grep -E
but can also be used as grep -e <term1> -e <term2>
. The -i
makes it case insensitive and the A3
tells it to return the matching line plus the 3 following lines. Some versions of grep are different with the options and how they work.

hat command should work well in bash.
With fish I cannot be certain the options all perform the same so use the man pages or known differences between bash and fish to define why the differing output.
lspci -nnk
is equivalent in bash tolspci -n -n -k
In bashegrep
is the same asgrep -E
but can also be used asgrep -e <term1> -e <term2>
. The-i
makes it case insensitive and theA3
tells it to return the matching line plus the 3 following lines. Some versions of grep are different with the options and how they work.
something like?:
lspci -n -n -k | grep -iA3 -E “network|Wi-Fi”
or
lspci -n -n -k | grep -E -iA3 “network|Wi-Fi”
Options that have arguments must be immediately followed by the argument. -A3
is one example. -E “network|Wi-Fi”
is another. Some are general such as -i

something like?:
lspci -n -n -k | grep -iA3 -E “network|Wi-Fi”
or
lspci -n -n -k | grep -E -iA3 “network|Wi-Fi”
When a string of commands fails, you can break it down:
lspci -nnk > lpsci.out
lspc.out
is a text file. Look at the contents to verify that it contains a list PCI devices, including one mentioning either network
or WiFi
. Then try:
grep -iA3 -E "network|Wi-Fi" lspci.out
My colleagues have found Linux Command helpful. It is based on the bash shell, but sticks close to the POSIX standard.
Subsystem: ASUSTeK Computer Inc. Device [1043:85cb]
00:00.2 IOMMU [0806]: Advanced Micro Devices, Inc. [AMD] Family 15h (Models 30h-3fh) I/O Memory Management Unit [1022:1423]
Subsystem: ASUSTeK Computer Inc. Device [1043:85cb]
00:01.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Kaveri [Radeon R7 Graphics] [1002:1313]
Subsystem: ASUSTeK Computer Inc. Device [1043:85cb]
Kernel driver in use: radeon
Kernel modules: radeon, amdgpu
00:01.1 Audio device [0403]: Advanced Micro Devices, Inc. [AMD/ATI] Kaveri HDMI/DP Audio Controller [1002:1308]
Subsystem: ASUSTeK Computer Inc. Device [1043:85cb]
Kernel driver in use: snd_hda_intel
Kernel modules: snd_hda_intel
00:02.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Family 15h (Models 30h-3fh) Processor Root Port [1022:1424]
DeviceName: Onboard IGD
00:03.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Family 15h (Models 30h-3fh) Processor Root Port [1022:1424]
00:04.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Family 15h (Models 30h-3fh) Processor Root Port [1022:1424]
00:10.0 USB controller [0c03]: Advanced Micro Devices, Inc. [AMD] FCH USB XHCI Controller [1022:7814] (rev 09)
Subsystem: ASUSTeK Computer Inc. Device [1043:85ca]
Kernel driver in use: xhci_hcd
00:10.1 USB controller [0c03]: Advanced Micro Devices, Inc. [AMD] FCH USB XHCI Controller [1022:7814] (rev 09)
Subsystem: ASUSTeK Computer Inc. Device [1043:85ca]
Kernel driver in use: xhci_hcd
00:11.0 SATA controller [0106]: Advanced Micro Devices, Inc. [AMD] FCH SATA Controller [AHCI mode] [1022:7801] (rev 40)
Subsystem: ASUSTeK Computer Inc. Device [1043:85ca]
Kernel driver in use: ahci
00:12.0 USB controller [0c03]: Advanced Micro Devices, Inc. [AMD] FCH USB OHCI Controller [1022:7807] (rev 11)
Subsystem: ASUSTeK Computer Inc. Device [1043:85ca]
Kernel driver in use: ohci-pci
00:12.2 USB controller [0c03]: Advanced Micro Devices, Inc. [AMD] FCH USB EHCI Controller [1022:7808] (rev 11)
Subsystem: ASUSTeK Computer Inc. Device [1043:85ca]
Kernel driver in use: ehci-pci
00:13.0 USB controller [0c03]: Advanced Micro Devices, Inc. [AMD] FCH USB OHCI Controller [1022:7807] (rev 11)
Subsystem: ASUSTeK Computer Inc. Device [1043:85ca]
Kernel driver in use: ohci-pci
00:13.2 USB controller [0c03]: Advanced Micro Devices, Inc. [AMD] FCH USB EHCI Controller [1022:7808] (rev 11)
Subsystem: ASUSTeK Computer Inc. Device [1043:85ca]
Kernel driver in use: ehci-pci
00:14.0 SMBus [0c05]: Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller [1022:780b] (rev 16)
Subsystem: ASUSTeK Computer Inc. Device [1043:85ca]
Kernel driver in use: piix4_smbus
Kernel modules: i2c_piix4, sp5100_tco
00:14.2 Audio device [0403]: Advanced Micro Devices, Inc. [AMD] FCH Azalia Controller [1022:780d] (rev 01)
Subsystem: ASUSTeK Computer Inc. AM1I-A Motherboard [1043:8576]
Kernel driver in use: snd_hda_intel
Kernel modules: snd_hda_intel
00:14.3 ISA bridge [0601]: Advanced Micro Devices, Inc. [AMD] FCH LPC Bridge [1022:780e] (rev 11)
Subsystem: ASUSTeK Computer Inc. Device [1043:85ca]
00:14.4 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] FCH PCI Bridge [1022:780f] (rev 40)
00:15.0 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Hudson PCI to PCI bridge (PCIE port 0) [1022:43a0]
Subsystem: Advanced Micro Devices, Inc. [AMD] Device [1022:0000]
Kernel driver in use: pcieport
00:15.2 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Hudson PCI to PCI bridge (PCIE port 2) [1022:43a2]
Subsystem: Advanced Micro Devices, Inc. [AMD] Device [1022:0000]
Kernel driver in use: pcieport
00:18.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Family 15h (Models 30h-3fh) Processor Function 0 [1022:141a]
00:18.1 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Family 15h (Models 30h-3fh) Processor Function 1 [1022:141b]
00:18.2 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Family 15h (Models 30h-3fh) Processor Function 2 [1022:141c]
00:18.3 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Family 15h (Models 30h-3fh) Processor Function 3 [1022:141d]
Kernel driver in use: k10temp
Kernel modules: k10temp
00:18.4 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Family 15h (Models 30h-3fh) Processor Function 4 [1022:141e]
Kernel driver in use: fam15h_power
Kernel modules: fam15h_power
00:18.5 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Family 15h (Models 30h-3fh) Processor Function 5 [1022:141f]
03:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168/8211/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 11)
Subsystem: ASUSTeK Computer Inc. AM1I-A Motherboard [1043:859e]
Kernel driver in use: r8169
Kernel modules: r8169
That does show an ethernet controller but does not show a wifi controller (unless it was clipped in copying)
With what was posted earlier I would expect it to show up there.
Maybe this is either a dirty connection with that card or a failure of the card itself. (which also could explain the strange responses on the lspci -nnk command.)
In any case, intermittent connections to a network adapter can cause problems and should be now addressed at the hardware level.
lspci -nnk | grep -iA3 -E “network|Wi-Fi”
I get an error about “Wi-Fi: command not found”
changing that to single ticks works:
lspci -nnk | grep -iA3 -E 'network|Wi-Fi'
05:00.0 Network controller [0280]: Intel Corporation Wireless 3165 [8086:3165] (rev 79)
Subsystem: Intel Corporation Device [8086:4410]
Kernel driver in use: iwlwifi
Kernel modules: iwlwifi
This topic is about problems with a USB WiFi adapter:

I unplug my wireless adapter and plug back in and my whole system has frozen

The adapter in question is a TP_link tl-wn722n

lspci -nnk | grep -iA3 -E 'network|Wi-Fi' 05:00.0 Network controller [0280]: Intel Corporation Wireless 3165 [8086:3165] (rev 79) Subsystem: Intel Corporation Device [8086:4410] Kernel driver in use: iwlwifi Kernel modules: iwlwifi
This is a different WiFi chip and driver. Please start a new topic with details of your issue and the full inxi -Fzxx
report.
That’s a USB device, not PCI:

* USB devices (lsusb): Bus 001 Device 004: ID 2357:010c TP-Link TL-WN722N v2/v3 [Realtek RTL8188EUS]
Drivers for USB devices can be identified with:
lsusb -v -v -t
This is relevant if the OP decides to try an alternative driver.
Added f40, freeze, kde-plasma, suspend-resume and removed kde