Tags

Saturday, March 21, 2009

[howto] Gentoo Linux 2.6.27 WPA-PSK on Intel 4965AGN

Goal: Setting up wireless on Gentoo with WPA-PSK and Intel 4965AGN.
(Lenovo ThinkPad x61)
  1. Make sure the driver is compiled as a module in the kernel. Your config should look as follows:
    • Networking support -->Wireless -->
      {M} Improved wireless configuration API
      [*] nl80211 new netlink interface support
      [*] Wireless extensions
      [M] Generic IEEE 802.11 Networking Stack (mac80211)
      [M] IEEE 802.11 WEP encryption (802.1x)
      [M] IEEE 802.11i CCMP support
      [M] IEEE 802.11i TKIP encryption
      [M] Software MAC add-on to the IEEE 802.11 networking stack
    • Device Drivers --> Networ Device Support --> Wireless LAN
      -M- Intel Wireless Wifi Core
      [*] Iwlwifi RF kill support
      [*] Enable full debugging output in iwlagn driver
      [M] Intel Wireless WiFi Next Gen AGN
      [*] Enable Spectrum Measurement in iwlagn driver
      [*] Enable LEDS features in iwlagn driver
      [*] Intel Wireless WiFi 4965AGN
  2. Append "iwlagn" to /etc/modules.autoload.d/kernel-2.6
    # /etc/modules.autoload.d/kernel-2.6
    iwlagn
  3. Create a new file in /etc/modprobe.d/ with the following content:
    # /etc/modprobe.d/iwlagn
    options iwlagn fw_restart4965=1
    You can add "11n_disable=1" to the end of the line if your access point does not operate in the 802.11N mode.
  4. Emerge wpa_supplicant
    USE="ssl kernel_linux readline" emerge wpa_supplicant
  5. Edit /etc/conf.d/net:
    # /etc/conf.d/net
    # [...]
    modules=( "wpa_supplicant" )
    wpa_supplicant_wlan0="-Dwext"
    # [...]

  6. Linking /etc/init.d/net.wlan0 to net.lo
    root# ln -s /etc/init.d/net.lo /etc/init.d/net.wlan0
  7. Editing /etc/wpa_supplicant/wpa_supplicant.conf
    # http://troubleshoot.ooz.ie/
    ctrl_interface=/var/run/wpa_supplicant
    ap_scan=0
    network={
    ssid="YourNetwork"
    proto=WPA
    key_mgmt=WPA-PSK
    psk="YourPassphrase"
    priority=0
    }
    network={
    key_mgmt=NONE
    priority=-9999999
    }

  8. Add net.wlan0 to the default runlevel
    root# rc-update add net.wlan0 default
  9. This doc is also available at http://howto.ooz.ie/

No comments: