Config Ipw3945/ipw4965

===========================================================================
=== How-To seting up ipw3945 & ipw4965 Intel Wireles on Slackware Linux ===
===========================================================================

Article on wiki!

Tabla de contenidos.
* Descargando el source.
* Compilando el modulo mac80211 & Reiniciando el Sistema.
* Compilando el driver ipw3945/ipw4965 y instalando el firmware.
* Ultimos apuntes.

:: Descargando el source ::

Creamos un directorio de trabajo ipw en nuestro directorio personal donde bajaremos todo lo nesesario para hacer
funcionar nuestra wireles.

'mkdir ipw; cd ipw;
'git clone http://www.intellinuxwireless.org/repos/iwlwifi.git'
'git clone http://intellinuxwireless.org/repos/mac80211.git'
'wget http://intellinuxwireless.org/iwlwifi/downloads/iwlwifi-3945-ucode-2.14.1.5.tgz'

'tar xvzf iwlwifi-3945-ucode-2.14.1.5.tgz'
'cd iwlwifi-3945-ucode-2.14.1.5/'
'cp iwlwifi-3945-1.ucode /lib/firmware/'

:: Compilando el modulo mac80211 y modulos corespondientes ::

Ahora nos dirigimos a directorio del source del nucleo y hacemos 'make menuconfig'.
Dentro de los menus de configuracion del nucle nos dirigimos a
'Networking' -> 'Generic IEEE 802.11 Networking Stack(dscape) (NEW)' y lo seleccionamos como modulo.

Si ya teniamos el nucleo compilado, no mas nos hace falta hacer 'make -j3; make modules_install; y reiniciamos el
equipo. En caso contrario recompilamos el nucleo parcheado y lo instalamos.

:: Compilando el driver ipw3945/ipw4965 ::

Ahora toca compilar los drivers(modulos) de nuestra wireles:

'cd ipw; cd iwlwifi'
'make'

'./load'

Y aqui pueden ver mi dmesg:

iwl3945: Intel(R) PRO/Wireless 3945ABG/BG Network Connection driver for Linux, 1.2.23kds
iwl3945: Copyright(c) 2003-2007 Intel Corporation
ACPI: PCI Interrupt 0000:05:00.0[A] -> GSI 19 (level, low) -> IRQ 19
PCI: Setting latency timer of device 0000:05:00.0 to 64
iwl3945: Detected Intel PRO/Wireless 3945ABG Network Connection
wmaster0: Selected rate control algorithm 'iwl-3945-rs'
iwl4965: Intel(R) Wireless WiFi Link 4965AGN driver for Linux, 1.2.23kds
iwl4965: Copyright(c) 2003-2007 Intel Corporation
ACPI: PCI Interrupt 0000:05:00.0[A] -> GSI 19 (level, low) -> IRQ 19
iwl3945: Tunable channels: 13 802.11bg, 23 802.11a channels
wlan0: Initial auth_alg=0
wlan0: authenticate with AP 00:16:38:c4:a5:ac
wlan0: RX authentication from 00:16:38:c4:a5:ac (alg=0 transaction=2 status=0)
wlan0: authenticated

:: Instalando drivers ipw3945(deprecated) para modo monitor. ::

Descargamos el source nesesario:

'mkdir ipwold; cd ipwold'
'wget http://ftp.belnet.be/packages/slackware/slackware-12.0/extra/source/intel-wlan-ipw3945/regulatory-daemon/ipw3945d-1.7.22.tgz'
'wget http://ftp.belnet.be/packages/slackware/slackware-12.0/extra/source/intel-wlan-ipw3945/microcode/ipw3945-ucode-1.14.2.tgz'
'wget http://ftp.belnet.be/packages/slackware/slackware-12.0/extra/source/intel-wlan-ipw3945/kernel-module/ipw3945-1.2.1.tar.gz'
'wget http://ftp.belnet.be/packages/slackware/slackware-12.0/extra/source/intel-wlan-ipw3945/ieee80211-subsystem/ieee80211-1.2.17.tar.gz'

Compilamos y instalamos:

'tar xvzf ipw3945d-1.7.22.tgz; cp ipw3945d-1.7.22/x86/ipw3945d /sbin/'
'tar xvzf ipw3945-ucode-1.14.2.tgz; cp ipw3945-ucode-1.14.2/ipw3945.ucode /lib/firmware/'
'tar xvzf ieee80211-1.2.17.tar.gz; cd ieee80211-1.2.17; make install' (le contestamos que Y a todo)
'tar xvzf ipw3945-1.2.1.tar.gz; cd ipw3945-1.2.1;'

Editamos el Makefile y descomentamos las siguientes opciones:

CONFIG_IPW3945_MONITOR=y
CONFIG_IEEE80211_RADIOTAP=y
CONFIG_IPW3945_PROMISCUOUS=y

y lugo:

'make IEEE80211_IGNORE_DUPLICATE=y'

Cargamos el modulo y vemos el funcionamiento:
'./load'

Mi Dmesg:

ieee80211_crypt: unregistered algorithm 'NULL'
ieee80211_crypt: registered
algorithm 'NULL'
ieee80211: 802.11 data/management/control stack, 1.2.17
ieee80211: Copyright (C) 2004-2005 Intel Corporation
ipw3945: Intel(R) PRO/Wireless 3945 Network Connection driver for Linux, 1.2.1d
ipw3945: Copyright(c) 2003-2006 Intel Corporation
ACPI: PCI Interrupt 0000:05:00.0[A] -> GSI 19 (level, low) -> IRQ 19
PCI: Setting latency timer of device 0000:05:00.0 to 64
ipw3945: Detected Intel PRO/Wireless 3945ABG Network Connection
ipw3945: Detected geography ABG (13 802.11bg channels, 23 802.11a channels)

Autores: Andsux / Scottiepipas