Connecting the built-in WiFi adapter to Kali Linux

Work in the environment Kali Linux Requires a stable and functional network connection, especially if you plan to conduct a wireless network security audit. Built-in WiFi modules are often ignored by the system by default due to a lack of proprietary drivers or specific kernel requirements. Properly configuring such hardware is the first and most important step before launching a scan or traffic analysis.

Unlike standard distributions, Kali Linux Focuses on security, which sometimes leads to conflicts with some commercial network cards. You'll need to not only install the driver but also ensure that the device supports monitoring and packet injection. Without these features, professional wireless network analysis becomes impossible.

The connection process varies depending on the chipset manufacturer of your device. Whether it is Realtek, Intel or AtherosEach vendor requires a unique approach to software installation. In this article, we'll cover universal activation and troubleshooting methods for the most common models.

Network equipment identification

The first step should always be accurately identifying your network controller. The system may see the physical device, but without the correct identifier, it won't know how to interact with it. Use the terminal to obtain detailed information about the connected hardware.

Enter the command lspci for built-in modules or lsusb For external adapters, you can see a list of connected devices. In the output, you need to find a line containing the words "Network controller" or "Wireless." Pay attention to the Vendor ID and Device ID, as these are used to select the correct driver.

Often integrated cards are based on chipsets Realtek or MediaTek, which may require manual compilation of kernel modules. If a card appears in the device list but doesn't have an assigned driver, the system will mark it as "Unclaimed." This is normal for fresh Kali installations.

  • 🔍 Use the command lspci -nnk | grep -iA3 net for detailed viewing of network interfaces.
  • 📝 Write down the chipset model indicated after the words "Kernel driver in use" or its absence.
  • 🆔 Check the device vendor using online PCI ID databases if the name is not clearly visible.

⚠️ Note: Some modern laptops use hybrid graphics systems or specific PCIe buses, which may block access to the WiFi module at the BIOS level. Make sure the device isn't disabled in the firmware settings.

📊 What chipset does your WiFi adapter have?
Realtek
Intel
Atheros
Broadcom
Don't know

Installing the required drivers

After identifying the hardware, you need to ensure that you have the latest kernel headers and compiler tools. Without a package linux-headers installation of many drivers, especially for cards Realtek, will be impossible. The system must be able to compile modules on the fly for the current kernel version.

First, update the repositories and install the basic development toolset. This is a critical step that beginners often miss when trying to run the driver installer directly. Lack of a compiler gcc or utilities make will result in build errors.

sudo apt update

sudo apt install -y linux-headers-$(uname -r) build-essential git

If your adapter requires proprietary firmware, such as the series Intel Wireless, you may need a package firmware-iwlwifi. For cards Realtek Often you have to clone the repository from GitHub and compile the driver manually, as support in the standard kernel may be limited.

☑️ Preparing to install drivers

Completed: 0 / 4

The table below lists popular chipsets and their corresponding packages or actions:

firmware-atheros
Chipset / Vendor Required Package / Action Support status
Intel AX200/210 firmware-iwlwifi Native
Realtek RTL8821CE Compilation from GitHub (rtl8821ce) Manual installation
Atheros AR9285 Native
Broadcom BCM43xx firmware-brcm80211 Requires firmware

Setting up the interface and operating modes

After successful driver installation, the network interface should appear in the list. However, by default, it may be in the "DOWN" state or have a default name different from the usual one. wlan0. Modern NetworkManager In Kali, it can manage the interface state, blocking manual changes.

Use the utility ip link to view the current status of all network devices. If the interface is visible but inactive, it must be brought up using the command ip link set dev interface_name upOnly after this can you begin scanning or connecting.

For security audits, it's critical to switch the card to monitor mode. The standard "Managed" mode only allows connection to access points, not monitoring. Switching is done via the utility. airmon-ng or manually through iw.

sudo airmon-ng start wlan0

When switching to monitor mode, the interface name often changes by adding the suffix "mon", for example, wlan0monThis should be taken into account when running scanning tools. If switching fails, background processes may be interfering.

  • 🛑 Stop services NetworkManager And wpa_supplicant before launch airmon-ng.
  • 📡 Check mode support with the command iw list in the "Supported interface modes" section.
  • 🔄 After finishing the work, return the interface to the managed mode with the command airmon-ng stop.

⚠️ Warning: Switching to monitor mode may interrupt your existing internet connection. If you need network access while scanning, use a second WiFi adapter or a virtual interface.

What to do if the interface does not appear?

If after installing the drivers the interface does not appear in ip link, check the output dmesg | grep firmwareOften the problem lies in the absence of the firmware file in the directory. /lib/firmwareDownload the missing file from the official repository. linux-firmware and place it in the appropriate folder, then run modprobe -r And modprobe for the driver module.

Troubleshooting RFKill Blocking Issues

One of the most common issues Kali Linux users encounter is software or hardware blocking of the wireless module. Security systems or BIOS settings can forcibly disable WiFi to save power or comply with regional restrictions.

For diagnostics, use the utility rfkill. Team rfkill list will show the status of all wireless devices. If you see the status "Soft blocked: yes," the blocking is software-based and can be easily removed. The status "Hard blocked: yes" indicates a physical switch on the laptop case or a BIOS setting.

To remove the software block, run the unblock command for all devices or a specific type. This should immediately activate the adapter if the driver is loaded correctly. In some cases, a network service restart is required.

sudo rfkill unblock wifi

sudo rfkill unblock all

If the blocking returns after a reboot, it may be written in the configuration files. NetworkManager or caused by an aggressive power-saving mode. Disabling power management for WiFi may resolve the connection stability issue.

NetworkManager Configuration and Manual Connection

In the Kali Linux graphical shell, the connection is handled by NetworkManagerIt's convenient for everyday work, but it can conflict with penetration testing tools. It's important to understand how to manage connections through the GUI and terminal to have full control.

To manually connect to the network without a graphical interface, use the utility nmtui or nmcliThese tools allow you to create connection profiles, configure static IP addresses, and manage DNS. This is especially useful on servers without a graphical shell.

If you work with wpa_supplicant directly, you'll need to create a configuration file with the password hash. However, in modern Kali, it's preferable to use the NetworkManager to save_credential_ and automatically reconnect.

  • 🖥️ Use it nmtui for quick WiFi setup text menu.
  • 🔑 For complex corporate networks (WPA2-Enterprise) use nm-connection-editor.
  • 📝 Connection logs can be found in /var/log/syslog, filtering by the word "wpa".

Common mistakes and how to fix them

Even with properly installed drivers, specific errors may still occur. For example, a kernel module may load but fail to initialize the device due to an IRQ conflict or resource constraints. Analyzing kernel logs is key to resolving such issues.

A common error is a mismatch between the kernel version and the driver version. After a major update Kali Linux Old modules may stop working. In this case, you need to recompile the driver against the new kernel headers.

It's also worth mentioning the issue with MAC address randomization. Some routers block devices with random MAC addresses. If you can't connect to a specific access point, try disabling randomization in the settings. NetworkManager.

⚠️ Note: Interfaces and configuration methods may change with the release of new versions of the distribution. Always check the command syntax. nmcli and the structure of the configs in the official project documentation if standard methods do not work.

FAQ: Frequently Asked Questions

Why doesn't my WiFi adapter see 5 GHz networks?

This may be due to the driver's regional settings. The default region may be set to a region where some channels are prohibited. Use the command iw reg set to set the correct country code (eg US or RU) to open access to all frequencies.

Is it possible to use the built-in WiFi for packet injection?

Technically, it's possible if the chipset supports monitor mode and injection. However, integrated cards often have weak antennas and are susceptible to interference inside the laptop case. For serious work, an external adapter with support is recommended. packet injection.

How do I reset all network settings to their original state?

The fastest way is to restart the NetworkManager service with the command systemctl restart NetworkManagerIf you changed configuration files manually, you may need to restore backups or reinstall the package. network-manager.

What should I do if the sound disappears after installing WiFi drivers?

Some drivers (especially for Realtek) may conflict with the audio subsystem due to PCIe interrupts. Try adding kernel module parameters to /etc/modprobe.d/ or update the laptop's BIOS, as the problem often lies in the resource allocation at the firmware level.