#### Beyond Linux® From Scratch (System V Edition) - Version 12.3

### Chapter 15. Networking Programs

- Prev

  Wget-1.25.0

- Next

  iw-6.9

- Up
- Home

# Configuring the Linux Kernel for Wireless

Before using any userspace tools for connecting to a wireless AP, the Linux kernel must be configured to drive the wireless NIC properly. Enable the following options in the kernel configuration as well as specific device drivers for your hardware and recompile the kernel if necessary:

    [*] Networking support --->                                                [NET]
      [*] Wireless --->                                                   [WIRELESS]
        <*/M>   cfg80211 - wireless configuration API                     [CFG80211]
        < /*/M>   Generic IEEE 802.11 Networking Stack (mac80211)         [MAC80211]

    Device Drivers --->
      [*] Network device support --->                                   [NETDEVICES]
        [*] Wireless LAN --->                                                 [WLAN]

Open the “Wireless LAN” submenu and select the options that support your hardware. lspci from pciutils-3.13.0 or lsusb from usbutils-018 can be used to view your hardware configuration. Note that many (though not all) options for the wireless NICs depend on `CONFIG_MAC80211`. After the correct drivers are loaded, the interface will appear in `/sys/class/net`, or in the output of the ip link command.

Many wireless NIC drivers require firmware. If you've enabled the correct driver in the kernel configuration but it fails to load (with messages like `Direct firmware load for `<filename`> failed with error -2`, it means that you need to install the firmware or the wireless NIC won't work. Read About Firmware for more details.

- Prev

  Wget-1.25.0

- Next

  iw-6.9

- Up
- Home