I recently configured the wireless on my X61 Tablet for Gentoo. I have a Intel 4965 AGN wireless card.
lspci | grep -i wireless 03:00.0 Network Controller: Intel Corporation PRO/Wireless 4965 AG or AGN Network Connection (rev 61)
Relevant kernel options (from gentoo-sources 2.6.28-r5 kernel)
Device Drivers ---> [*] Network device support ---> Wireless LAN ---> {*} Intel Wireless Wifi Core <M> Intel Wireless WiFi Next Gen AGN [*] Intel Wireless WiFi 4965AGN
Install wpa_supplicant and wireless-tools
emerge -av wpa_supplicant wireless-toolsCreate symlink so Gentoo will initialize the wlan0 at startup
cd /etc/init.d ln -s net.lo net.wlan0
/etc/conf.d/net
modules=( "wpa_supplicant" ) iwconfig_wlan0="mode managed" wpa_supplicant_wlan0="-Dwext"
/etc/wpa_supplicant/wpa_supplicant.conf
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=wheel network={ ssid="MySSID" scan_ssid=1 key_mgmt=WPA-PSK psk="password" priority=5 }
I was getting SCICSIFFLAG File Not Found errors when trying to bring up my wlan0 interface. A look at the dmesg log revealed that the iwlagn module was trying to access iwlwifi-4965-2.ucode, so I emerged iwl4965-ucode to fix that.
emerge -av iwl4965-ucodeReinitialize the interface to see if everything worked
/etc/init.d/net.wlan0 restart