Aquí se transcribe un mail enviado a la lista de correo fb-gral por Luciano Andino el 21/9/05. Cuenta básicamente su configuración de un AP con un chipset Atheros en un Debian Linux.
Lista, estuve un buen tiempo fuera y no pude leer
todos los mails pero se que estaban con el tema de
armar un ap en linux, yo probé el driver atheros para
el chipset de esa marca.
Distribución: Debian Sarge
Kernel: 2.6.13.2
Atheros: No salió aun el stable, lo bajé del cvs.
Aun no hice muchas pruebas (en cuanto a desempeño),
pero tiro a la lista que hice para que ande:
Fuentes de información:
http://madwifi.sourceforge.net/dokuwiki/doku.php?id=debian&DokuWiki=a67762d7df549f47c71133dc7d6d600b
http://madwifi.sourceforge.net/dokuwiki/doku.php?id=how_do_i#how_can_i_use_my_card_as_an_access_point
Chip Atheros AR5213A norma a/b/g potencia hasta 65mW
$ uname -a (fuentes de kernel.org)
Linux debian 2.6.13.2 #2 Wed Sep 21 16:23:21 ART 2005
i686 GNU/Linux
# apt-get install wireless-tools (instalo las wireless tools)
$ cvs -z3 -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/madwifi co madwifi
$ cd madwifi
$ make
# make install
# depmod -ae
# modprobe ath_pci
$ lsmod
Module Size Used by
ath_pci 72220 0
ath_rate_sample 14344 1 ath_pci
wlan 128028 3 ath_pci,ath_rate_sample
ath_hal 148688 3 ath_pci,ath_rate_sample
# dmesg
ath_rate_sample: 1.2
ath_pci: 0.9.6.0 (EXPERIMENTAL)
ACPI: PCI Interrupt 0000:02:01.0[A] -> GSI 17 (level, low) -> IRQ 177
Build date: Sep 21 2005
Debugging version (IEEE80211)
ath0: 11a rates: 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
ath0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps
ath0: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
ath0: turboA rates: 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
ath0: turboG rates: 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
ath0: H/W encryption support: WEP AES AES_CCM TKIP
ath0: mac 5.9 phy 4.3 radio 3.6
ath0: Use hw queue 1 for WME_AC_BE traffic
ath0: Use hw queue 0 for WME_AC_BK traffic
ath0: Use hw queue 2 for WME_AC_VI traffic
ath0: Use hw queue 3 for WME_AC_VO traffic
ath0: Use hw queue 8 for CAB traffic
ath0: Use hw queue 9 for beacons
Debugging version (ATH)
ath0: Atheros 5212: mem=0xd9000000, irq=177
ath0: creating bss 0f:23:32:22:66:11
ath0: no IPv6 routers present
# /sbin/iwconfig ath0 (aun sin configurar)
ath0 IEEE 802.11 ESSID:""
Mode:Managed Frequency:2.412 GHz Access Point: 00:00:00:00:00:00
Bit Rate:0 kb/s Tx-Power:20 dBm Sensitivity=0/3
Retry:off RTS thr:off Fragment thr:off
Encryption key:off
Power Management:off
Link Quality=0/94 Signal level=-95 dBm Noise level=-95 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0
# /sbin/iwconfig ath0 mode master (la pongo como AP,
no me acuerdo como hice para ponerla en norma A)
# /sbin/iwconfig ath0
ath0 IEEE 802.11a ESSID:""
Mode:Master Frequency:5.18 GHz Access Point: 00:00:00:00:00:00
Bit Rate:0 kb/s Tx-Power:20 dBm Sensitivity=0/3
Retry:off RTS thr:off Fragment thr:off
Encryption key:off
Power Management:off
Link Quality=0/94 Signal level=-95 dBm Noise level=-95 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0
# /sbin/iwpriv ath0 (bastante no?)
ath0 Available private ioctl :
setoptie (8BE8) : set 256 byte & get 0
getoptie (8BE9) : set 0 & get 256 byte
setkey (8BE2) : set 60 byte & get 0
delkey (8BE4) : set 7 byte & get 0
setmlme (8BE6) : set 42 byte & get 0
addmac (8BEA) : set 1 addr & get 0
delmac (8BEC) : set 1 addr & get 0
chanlist (8BEE) : set 32 byte & get 0
wdsadd (8BF0) : set 1 addr & get 0
wdsdel (8BF2) : set 1 addr & get 0
setparam (8BE0) : set 2 int & get 0
getparam (8BE1) : set 1 int & get 1 int
turbo (0001) : set 1 int & get 0
get_turbo (0001) : set 0 & get 1 int
mode (0002) : set 1 int & get 0
get_mode (0002) : set 0 & get 1 int
authmode (0003) : set 1 int & get 0
get_authmode (0003) : set 0 & get 1 int
protmode (0004) : set 1 int & get 0
get_protmode (0004) : set 0 & get 1 int
mcastcipher (0005) : set 1 int & get 0
get_mcastcipher (0005) : set 0 & get 1 int
mcastkeylen (0006) : set 1 int & get 0
get_mcastkeylen (0006) : set 0 & get 1 int
ucastciphers (0007) : set 1 int & get 0
get_uciphers (0007) : set 0 & get 1 int
ucastcipher (0008) : set 1 int & get 0
get_ucastcipher (0008) : set 0 & get 1 int
ucastkeylen (0009) : set 1 int & get 0
get_ucastkeylen (0009) : set 0 & get 1 int
keymgtalgs (0015) : set 1 int & get 0
get_keymgtalgs (0015) : set 0 & get 1 int
rsncaps (0016) : set 1 int & get 0
get_rsncaps (0016) : set 0 & get 1 int
roaming (000C) : set 1 int & get 0
get_roaming (000C) : set 0 & get 1 int
privacy (000D) : set 1 int & get 0
get_privacy (000D) : set 0 & get 1 int
countermeasures (000E) : set 1 int & get 0
get_countermeas (000E) : set 0 & get 1 int
dropunencrypted (000F) : set 1 int & get 0
get_dropunencry (000F) : set 0 & get 1 int
wpa (000A) : set 1 int & get 0
get_wpa (000A) : set 0 & get 1 int
driver_caps (0010) : set 1 int & get 0
get_driver_caps (0010) : set 0 & get 1 int
maccmd (0011) : set 1 int & get 0
wme (0012) : set 1 int & get 0
get_wme (0012) : set 0 & get 1 int
hide_ssid (0013) : set 1 int & get 0
get_hide_ssid (0013) : set 0 & get 1 int
ap_bridge (0014) : set 1 int & get 0
get_ap_bridge (0014) : set 0 & get 1 int
inact (0017) : set 1 int & get 0
get_inact (0017) : set 0 & get 1 int
inact_auth (0018) : set 1 int & get 0
get_inact_auth (0018) : set 0 & get 1 int
inact_init (0019) : set 1 int & get 0
get_inact_init (0019) : set 0 & get 1 int
ibss (001A) : set 1 int & get 0
get_ibss (001A) : set 0 & get 1 int
pureg (001B) : set 1 int & get 0
get_pureg (001B) : set 0 & get 1 int
wdsonly (001C) : set 1 int & get 0
get_wdsonly (001C) : set 0 & get 1 int
reset (0063) : set 1 int & get 0
# /sbin/iwlist ath0 channel (para ver los canales disponibles)
Warning: Driver for device ath0 has been compiled with
version 18
of Wireless Extension, while this program supports up
to version 17.
Some things may be broken...
ath0 255 channels in total; available frequencies:
Channel 36 : 5.18 GHz
Channel 40 : 5.2 GHz
Channel 42 : 5.21 GHz
Channel 44 : 5.22 GHz
Channel 48 : 5.24 GHz
Channel 50 : 5.25 GHz
Channel 52 : 5.26 GHz
Channel 56 : 5.28 GHz
Channel 58 : 5.29 GHz
Channel 60 : 5.3 GHz
Channel 64 : 5.32 GHz
Channel 149 : 5.745 GHz
Channel 152 : 5.76 GHz
Channel 153 : 5.765 GHz
Channel 157 : 5.785 GHz
Channel 160 : 5.8 GHz
Channel 161 : 5.805 GHz
Channel 165 : 5.825 GHz
Current Frequency=5.18 GHz (Channel 36)
# /sbin/iwlist ath0 mode 3 (creo q esto lo cambia a
norma G, verificar)
debian:/home/luciano# /sbin/iwconfig ath0
ath0 IEEE 802.11g ESSID:""
Mode:Master Frequency:2.412 GHz Access Point: 00:00:00:00:00:00
Bit Rate:0 kb/s Tx-Power:20 dBm Sensitivity=0/3
Retry:off RTS thr:off Fragment thr:off
Encryption key:off
Power Management:off
Link Quality=0/94 Signal level=-95 dBm Noise level=-95 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0
debian:/home/luciano# /sbin/iwconfig ath0 rate 54M (le
doy la tasa max q quiero)
debian:/home/luciano# /sbin/iwconfig ath0
ath0 IEEE 802.11g ESSID:""
Mode:Master Frequency:2.412 GHz Access Point: 00:00:00:00:00:00
Bit Rate=54 Mb/s Tx-Power:20 dBm Sensitivity=0/3
Retry:off RTS thr:off Fragment thr:off
Encryption key:off
Power Management:off
Link Quality=0/94 Signal level=-95 dBm Noise level=-95 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0
# /sbin/ifconfig ath0 0.0.0.0
# /sbin/ifconfig ath0 down
# /sbin/ifconfig ath0 hw ether 0F:23:32:22:66:11 (no
se para que?)
# /sbin/iwconfig ath0
ath0 IEEE 802.11g ESSID:""
Mode:Master Frequency:2.412 GHz Access Point: 0F:23:32:22:66:11
Bit Rate=54 Mb/s Tx-Power:18 dBm Sensitivity=0/3
Retry:off RTS thr:off Fragment thr:off
Encryption key:off
Power Management:off
Link Quality=0/94 Signal level=-95 dBm Noise level=-95 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0
# /sbin/iwconfig ath0 essid "prueba"
# /sbin/ifconfig ath0 192.168.2.1 up
con una ntbk y una plaquita norma b me conecto y desde
el AP miro quien esta enlazado:
# /sbin/iwlist ath0 peers
ath0 Peers/Access-Points in range:
00:02:2D:8D:97:32 : Quality=42/94 Signal level=-53 dBm Noise level=-95 dBm