The newer models of the Raspberry Pi come with a built in Wi-Fi chip that allow them to connect to wireless networks. It is possible to obtain information about the Wi-Fi adapter, including the driver and its current version. In this tutorial, you will see how to check the Wi-Fi adapter, driver, and other pertinent Wi-Fi hardware information on a Raspberry Pi.
In this tutorial you will learn:
- How to check Wi-Fi adapter and driver info
- How to check current wireless connection stats
|Requirements, Conventions or Software Version Used
|Privileged access to your Linux system as root or via the
# – requires given linux commands to be executed with root privileges either directly as a root user or by use of
$ – requires given linux commands to be executed as a regular non-privileged user
Check Wi-Fi adapter info on Raspberry Pi
Below are a few different methods for gathering information about the Wi-Fi adapter, driver, and related data on a Raspberry Pi. These various methods will yield slightly different information, so you can choose whichever ones reveal what you are looking for.
- Using the
lshwcommand is probably the best way to reveal Wi-Fi adapter and driver information on the Raspberry Pi. Note that may need to install the program first, since it is not included by default. The commands below will install the program and then check the adapter and driver:
$ sudo apt install lshw $ sudo lshw -C network
As seen in the screenshot above, we can find the Wi-Fi adapter’s physical ID, logical name, serial number, capabilities, and configuration information such as broadcast setting, driver name, driver version, firmware version, IP address, multicast setting, and wireless spec type.
- Another easy way to see Wi-Fi adapter driver information is with the
$ ethtool -i wlan0
This command gave us the driver name, version, firmware version, bus info, and further info on various options that are supported or not.
- Another option is to use the hardinfo utility, which can also be installed via the package manager. This will not show hardware information or driver version, but will show data about your current wireless connection.
$ sudo apt install hardinfo
After you launch the program, you can find Wi-Fi related information under the Network > Interfaces > wlan0 menu.
iwconfigcommand can also be used to reveal information about the current Wi-Fi connection on your Raspberry Pi:
$ iwconfig wlan0
- In case you are using a USB Wi-Fi adapter (not a built in one), you can view your Wi-Fi adapter and driver information with the
$ sudo usb-devices
In this tutorial, we saw how to check the Wi-Fi adapter and driver information on a Raspberry Pi system. Knowing the driver name and version can help us determine if we are running an up to date version or not. Be sure to update the Raspberry Pi to have the latest driver versions, and also update the Raspberry Pi’s firmware to check for any possible firmware updates for your Wi-Fi adapter.