1 | <?xml version="1.0" encoding="UTF-8"?>
|
---|
2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
5 | %general-entities;
|
---|
6 | ]>
|
---|
7 |
|
---|
8 | <sect1 id="wireless-kernel" xreflabel="Configuring the Linux Kernel for Wireless">
|
---|
9 | <?dbhtml filename="wireless-kernel.html"?>
|
---|
10 |
|
---|
11 |
|
---|
12 | <title>Configuring the Linux Kernel for Wireless</title>
|
---|
13 |
|
---|
14 | <para>
|
---|
15 | Before using any userspace tools for connecting to a wireless AP,
|
---|
16 | the Linux kernel must be configured to drive the wireless NIC properly.
|
---|
17 | Enable the following options in the kernel configuration as well as
|
---|
18 | specific device drivers for your hardware and recompile the kernel if
|
---|
19 | necessary:
|
---|
20 | </para>
|
---|
21 |
|
---|
22 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
23 | href="wireless-kernel-kernel.xml"/>
|
---|
24 |
|
---|
25 | <para>
|
---|
26 | Open the <quote>Wireless LAN</quote> submenu and select the options that
|
---|
27 | support your hardware. <command>lspci</command> from
|
---|
28 | <xref linkend="pciutils"/> or <command>lsusb</command> from
|
---|
29 | <xref linkend="usbutils"/> can be used to
|
---|
30 | view your hardware configuration. Note that many (though not all)
|
---|
31 | options for the wireless NICs depend on
|
---|
32 | <parameter>CONFIG_MAC80211</parameter>. After the correct drivers are
|
---|
33 | loaded, the interface will appear in
|
---|
34 | <filename>/sys/class/net</filename>, or in the output of the
|
---|
35 | <command>ip link</command> command.
|
---|
36 | </para>
|
---|
37 |
|
---|
38 | <para>
|
---|
39 | Many wireless NIC drivers require firmware. If you've enabled the
|
---|
40 | correct driver in the kernel configuration but it fails to load (with
|
---|
41 | messages like <computeroutput>Direct firmware load for
|
---|
42 | <replaceable><filename</replaceable>> failed with error
|
---|
43 | -2</computeroutput>, it means that you need to install the firmware
|
---|
44 | or the wireless NIC won't work. Read <xref linkend='postlfs-firmware'/>
|
---|
45 | for more details.
|
---|
46 | </para>
|
---|
47 |
|
---|
48 | </sect1>
|
---|