Wifi

This article WiFi (wireless) network device.]]

WiFi during installation
If a WiFi connection is needed while installing Gentoo, note that the Gentoo minimal install CD has a limited number of drivers available, and provides only (and not ) for configuring for WPA/WPA2/Enterprise connections.

If the minimal install CD does not contain the required drivers or the graphical frontend to is preferred, choose a different live CD such as the System Rescue CD. Be aware that some special steps may be required when using a non-Gentoo live CD.

Hardware detection
First detect the WiFi controllers. or are command-line tools that can be used for this task.

If a Linux (LiveCD/USB) is booted that makes a WiFi connection:

The driver will be identified on one of the lines starting with.

If the booted system does not make a WiFi connection, then obtain a full list of hardware identifiers from the current system. This list can be used to identify the proper driver later:

Copy the list of PCIID's that the command produces and paste it at https://kmuto.jp/debian/hcl/.

For USB devices, a similar approach can be taken. First obtain the list of detected USB devices on the system:

This command produces the PCI ID, manufacturer, make, model, and/or chipset of every USB device attached to the system. Of these, the chipset may be the most useful information. Searching the web for linuxwireless.org  is often the shortest way to find a USB NIC driver and firmware name.

Alternatively, can be used to obtain the necessary information:

This command produces a list of all drivers, regardless of the device being PCI or USB based.

Kernel
With the drivers identified, it is time to configure the Linux kernel.

WEXT
The "cfg80211 wireless extensions compatibility" option aka WEXT will support old and.

Device drivers
Next the right set of corresponding kernel options need to be enabled, based on the drivers and hardware detected previously. The recommendation is to build drivers as modules. Also be sure to enable AES cipher support in the kernel if the wireless network uses WPA or WPA2 encryption.

LED support
To enable LED triggers for different packet receive/transmit events, compile the kernel with the following options:

Firmware
In addition to the kernel driver, some chipsets also require firmware. If required, locate it on the following list and install it:

If the driver requires firmware but does not appear on the list, it will be necessary to download it manually and place it in.

Wireless supplicant
If the wireless network is set up with WPA or WPA2, then a wireless supplicant like wpa_supplicant or iwd needs to be used. For more information on configuring wireless networking in Gentoo Linux, please read the Wireless networking chapter in the Gentoo Handbook.

dmesg
Check the output of.

Be sure to replace
 * with the identifier (PCIID) from lspci,
 * with the network interface name and
 * with the name of the.

Troubleshooting

 * Forum thread: wireless lan can't get ip from access point which explains about 169.254.x.x (link local address) being a wrong IP address
 * Forum thread: iwlwifi fails to load after upgrade to 3.17.0
 * Forum thread: Where is my network !?
 * Forum thread: broadcom-sta with BCM4331 issue after world update
 * Forum thread: USB nano 0bda:b812 RTL88x2bu [AC1200 driver needed]

External resources

 * Wireless network configuration at ArchLinux