Podcast 46 Wireless Networking (SOLVED)

Wireless networking in Linux is getting easier all the time, as more cards are being supported. Some distro's provide nice GUI applications and your wireless may "just" work. If you want to know how it works under the hood, or you are having problems, I recruited my friend, Sylvain (d2_racing), the wireless guru from the Gentoo forums to explain it all to us. If you have any questions, you can reach me at david at linuxcrazy dot com, or on freenode irc, channel #linuxcrazy.
wireless

Links
Gentoo Forums
http://forums.gentoo.org/viewforum-f-18.html

Forums Gentoo Quebec
http://www.gentoo-quebec.org/forum/

Comprookie2000 Forum
http://www.abbottdavid.com/forum/index.php/board,11.0.html

Comprookie2000 T61
http://dwabbott.com/ibmT61/

irc network freenode channel #linuxcrazy

Download

ogg

mp3

Sylvain's Notes
# emerge -av wireless-tool
# emerge -av net-wireless/wpa_supplicant

After that you can safely run this :

# ifconfig -a
# iwconfig
# iwlist scan
# dmesg | grep -i iwl

For the intel wireless card, you need the ucode, so there's the command for each specify ucode :

# emerge -av iwl3945-ucode
# emerge -av iwl4965-ucode
# emerge -av iwl5000-ucode

For the Atheros, you need to make sure that you use the ath5k module inside the kernel.

For the /etc/conf.d/net, you need to have this inside it :

#WPA_SUPPLICANT
modules=( "wpa_supplicant" )
wpa_supplicant_wlan0_="-Dwext"
config_wlan0=( "dhcp" )

And for the /etc/wpa_supplicant/wpa_supplicant.conf you can have this inside it :

ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=wheel
ap_scan=0
#update_config=1

This is for a WPA2 encryption method :

network={
ssid="gentoonet"
psk="mykey"
proto=WPA2
key_mgmt=WPA-PSK
pairwise=CCMP
group=CCMP
priority=20
}

This is for a WEP encryption method :

network={
ssid="your_SSID"
key_mgmt=NONE
wep_key0="Your_Key_In_Hexa"
wep_tx_keyidx=0
priority=15
}

This is for a WPA encryption method :
network={
ssid="example"
proto=WPA
key_mgmt=WPA-PSK
pairwise=CCMP TKIP
group=CCMP TKIP WEP104 WEP40
psk=your_hex_key_with_no_quote
priority=10

}

This is for a non-encrypted network :

network={
ssid="votre_SSID"
key_mgmt=NONE
priority=05
}

Here's the documentation that I use :
http://www.gentoo-quebec.org/index.php?page=docs&v=206
http://www.gentoo-quebec.org/index.php?page=docs&v=600
http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=4&chap=4

For the kernel configuration, you need this :

(*) Wireless
(M) Improved wireless configuration API
(*) nl80211 new netlink interface support
(M) Generic IEEE 802.11 Networking Stack (mac80211)
(M) Generic IEEE 802.11 Networking Stack
(M) IEEE 802.11 WEP encryption (802.1x)
(M) IEEE 802.11i CCMP support
(M) IEEE 802.11i TKIP encryption

(M) RF switch subsystem support
(M) Input layer to RF switch connector

(*) Wireless LAN
(*) Wireless LAN (IEEE 802.11)
(M) Intel Wireless Wifi Core
(*) IWLWIFI RF kill support
(M) Intel PRO/Wireless 3945ABG/BG Network Connection
(*) Enable Spectrum Measurement in iwl3945 drivers
(*) Enable LEDS features in iwl3945 driver
(*) Enable full debugging output in iwl3945 driver

(*) Cryptographic algorithm manager
(M) SHA1 digest algorithm
(M) SHA256 digest algorithm
(M) ECB support
(M) CBC support
(M) PCBC support
(*) AES cipher algorithms
(*) AES cipher algorithms (i586)
(*) ARC4 cipher algorithm
(*) Michael MIC keyed digest algorithm

(comprookie2000's kernel .config 2.6.28)

3945ABG (rev 02)
CONFIG_WLAN_80211=y
CONFIG_IWLWIFI=y
CONFIG_IWLCORE=y
CONFIG_IWL3945=m
CONFIG_IWL3945_RFKILL=y
CONFIG_IWL3945_SPECTRUM_MEASUREMENT=y
CONFIG_IWL3945_LEDS=y
CONFIG_IWL3945_DEBUG=y