- How can I check the information of currently installed WiFi drivers?
- 6 Answers 6
- Introduction
- 1. Check for Loaded Device Drivers
- 2. Choosing, Finding and Installing Drivers
- 2.1. Using Native Linux Drivers
- 2.2. Using ndiswrapper for Cards Without a Linux Driver
- 3. Check Driver
- 3.1. Multiple drivers loaded
- 3.2. Driver looks ok, device disabled
- How to find out which Wi-Fi driver is installed?
How can I check the information of currently installed WiFi drivers?
When I clicked on additional drivers on Ubuntu 12.04, I could not see any drivers.. How can I check what drivers are installed for WiFi on Ubuntu environment.
It’s not really possible (or useful) to enumerate all available device drivers in Linux (even when restricted to a particular device class). However, you can enumerate all available drivers that are capable of handling a particular device and, more importantly, the one currently claiming the device, i. e. the driver used to “drive” it.
6 Answers 6
The following commands are run in a terminal. Open one by Ctrl + Alt + T .
To check what drivers your wireless adapter is currently using, you may run the following command:
- lshw lists information on your hardware
- -C network filters the output to only show the network class.
In the output, look for the entry with description: Wireless interface .
Here’s the output from my Ubuntu:
alaa@aa-lu:~$ sudo lshw -C network [sudo] password for alaa: *-network description: Wireless interface product: RTL8723AE PCIe Wireless Network Adapter vendor: Realtek Semiconductor Co., Ltd. physical id: 0 bus info: pci@0000:08:00.0 logical name: wlan0 version: 00 serial: 24:ec:99:21:c9:29 width: 64 bits clock: 33MHz capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless configuration: broadcast=yes driver=rtl8723ae driverversion=3.8.0-27-generic firmware=N/A ip=192.168.1.74 latency=0 link=yes multicast=yes wireless=IEEE 802.11bgn resources: irq:17 ioport:3000(size=256) memory:c3000000-c3003fff
In the configuration line (line before last), you’ll see the driver currently being used by my card. I’ve highlighted it in the output.
Alternatively, you can use the command:
- lspci lists information on your PCI connected cards
- -nnk instructs lspci to output more information about these cards (including the driver being used)
- | pipes the output to the next command
- grep 0280 filters the output to show lines containing 0280 , which is the PCI class code for wireless PCI controllers in Ubuntu.
- -A2 shows two more lines of information.
Here’s the output from my Ubuntu:
08:00.0 Network controller [0280]: Realtek Semiconductor Co., Ltd. RTL8723AE PCIe Wireless Network Adapter [10ec:8723] Subsystem: Realtek Semiconductor Co., Ltd. Device [10ec:0724] Kernel driver in use: rtl8723ae
Once you determine the driver you’re using, you can use the following command to show more information about it:
To check what wireless drivers you currently have installed, but not necessarily being used by anything, you can do the following command:
find /lib/modules/$(uname -r)/kernel/drivers/net/wireless -name '*.ko'
The above command will list all drivers you have installed. This will probably be an exhaustive list, because these are preinstalled drivers on your Ubuntu to make it possible for people to use their wireless drivers as soon as they install Ubuntu.
Introduction
This part of the guide is designed to help you troubleshoot your wireless adpater’s driver issues. This page is part of the WirelessTroubleShootingGuide. You should have correctly identified your device as detailed in the Devices page of this guide. See also the comprehensive explanations of commands for troubleshooting your wireless.
1. Check for Loaded Device Drivers
First you should check if a driver automatically loaded. (Your device may be supported in Ubuntu with a native driver.) Use the lshw command. As explained under lshw, if there is a line saying configuration: . driver=. in the description of the wireless card, this indicates the driver is installed.
If you are not running the most recent kernel, update your system (System > Administration > Update Manager). Drivers, especially wireless, are constantly being added and modified.
2. Choosing, Finding and Installing Drivers
2.1. Using Native Linux Drivers
- Check in System > Administration > Hardware Drivers for a binary driver. For instance, many Broadcom cards will work with the Broadcom STA driver. Unfortunately, the driver is proprietary (the source code is not freely available), and so cannot be installed automatically as part of Ubuntu. If you are willing to accept this limitation, activate the driver.
- Search your card manufacturer’s website for a Linux driver.
2.2. Using ndiswrapper for Cards Without a Linux Driver
- You can check here to see if your card is supported by ndiswrapper.
- full information on ndiswrapper kept on this page including troubleshooting help specific to ndiswrapper.
- There may be a native driver that comes with Ubuntu which is conflicting with ndiswrapper. In such cases, if you want to use ndiswrapper, you can blacklist the native driver. See below for details.
3. Check Driver
- Run the command lsmod to see if driver is loaded. (look for the driver name that was listed in the output of lshw, «configuration» line).
- If you did not see the driver module in the list then use the modprobe command to load it.
- If you see two modules (usually ndiswrapper and a native Linux driver) blacklist one of them (see below).
- run the command sudo iwconfig. If you see output like in the example in the command section then the driver is at least identifying the device as a wireless device to the kernel.
- Opening networking in system>administration> and seeing the device in the list is how to identify through a gui if the driver is at least communicating with the kernel.
- run the command sudo iwlist scan to scan for a router. If an access point is identified this shows that the card is probably working properly as it can complete a wireless interface task. (note not all cards support scanning)
3.1. Multiple drivers loaded
For some cards (e.g., SMC2632W v1.02), an additional set of drivers is incorrectly loaded, effectively disabling wireless networking by generating two apparent wifi cards where there should only be one. Typically, you’ll see entries for both eth1 and wlan0_rename after running the iwconfig command, with your communication speed divided evenly between them. One of those drivers should not be loaded, and should be blacklisted. To do so, edit /etc/modprobe.d/blacklist and add the following lines:
where is, for example, «hostap» (the «hostap» driver apparently causes problems for several cards). Then save, reboot, and check your connection with iwconfig.
3.2. Driver looks ok, device disabled
Newer laptops come with battery saving features to disable the wireless radio. Usually this is switched by a FN+Fx key combo or a specific button for the purpose. It is possible the driver and connection is ok but the wireless device is disabled and can’t be used. Using the designated key(s) in linux sometimes does not work.
- rfkill list will show if there is a hardware or software block.
- lshw command you see *-network:1 DISABLED or wireless=radio off
- If you run the iwconfig command you see eth1 NOT READY!.
- Look at the LaptopTestingTeam page on the team wiki to see if your laptop is listed with any information.
- Do a google search using terms such as manufacture, model, linux, wireless, enable, button, radio. etc. When searching and finding similar pages that don’t help, use words that are used in those pages to help you search.
- Go to the ubuntu forums or ask ubuntu and ask, maybe someone else has the same laptop and knows the work around.
- Some laptops have a controller chip on the motherboard that is only accessible through a different OS. If you have turned off your wireless adapter in a different operating system, you may have to boot back into that OS and enable the card before it is accessible to Linux.
WifiDocs/WirelessTroubleShootingGuide/Drivers (последним исправлял пользователь lnee 2022-04-28 22:40:30)
The material on this wiki is available under a free license, see Copyright / License for details
You can contribute to this wiki, see Wiki Guide for details
How to find out which Wi-Fi driver is installed?
In other words, the /sys hierarchy for the device ( /sys/class/net/$interface/device ) contains a symbolic link to the /sys hierarchy for the driver. There you’ll also find a symbolic link to the /sys hierarchy for the module, if applicable. This applies to most devices, not just wireless interfaces.
Maybe there’s a better way, but I’ve used lshw -class network (as root) and it gives me this output:
*-network description: Ethernet interface product: 82566MM Gigabit Network Connection vendor: Intel Corporation physical id: 19 bus info: pci@0000:00:19.0 logical name: eth0 version: 03 serial: 00:a0:d1:a3:87:c8 size: 1GB/s capacity: 1GB/s width: 32 bits clock: 33MHz capabilities: pm msi bus_master cap_list ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation configuration: autonegotiation=on broadcast=yes driver=e1000e driverversion=1.0.2-k2 duplex=full firmware=0.3-0 ip=192.168.2.206 latency=0 link=yes multicast=yes port=twisted pair speed=1GB/s resources: irq:29 memory:fc300000-fc31ffff memory:fc325000-fc325fff ioport:1840(size=32) *-network description: Wireless interface product: PRO/Wireless 4965 AG or AGN [Kedron] Network Connection vendor: Intel Corporation physical id: 0 bus info: pci@0000:06:00.0 logical name: wlan0 version: 61 serial: 00:1d:e0:69:28:07 width: 64 bits clock: 33MHz capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless configuration: broadcast=yes driver=iwlagn ip=192.168.0.104 latency=0 multicast=yes wireless=IEEE 802.11abgn resources: irq:31 memory:c8000000-c8001fff *-network DISABLED description: Ethernet interface physical id: 3 logical name: vboxnet0 serial: 0a:00:27:00:00:00 capabilities: ethernet physical configuration: broadcast=yes multicast=yes
You can grep for driver from that output. In my case I use lsmod | grep iwlagn , giving me:
iwlagn 63559 0 iwlcore 67702 1 iwlagn mac80211 123574 2 iwlagn,iwlcore cfg80211 87657 3 iwlagn,iwlcore,mac80211
Don’t ask me what each of those mean 🙂