2010/8/14 Alejandro Vargas <[email protected]>:
> El día 14 de agosto de 2010 07:19, Lucas Nogueron
> <[email protected]> escribió:
>> Trato de crear un VAP en un debian con kernel  2.6.26  pero .........
>>
>> r...@server:~>iw dev wmaster0 interface add vap0 type __ap
>> failed to create interface: -22
>
> A mi me da esto:
>
> [r...@localhost athenea]# iw dev wmaster0 interface add vap0 type __ap
> command failed: No such device (-19)
>
>
> Sin embargo, se me ocurrió esto:
>
> [r...@localhost athenea]# iw dev wlan0 interface add vap0 type __ap

Es que en teoria asi estaria creando un VAP a partir de otro VAP. Es
por ésto que existe la interface "wmaster0", es a partir de ésta que
se crea un VAP. Por lo que entiendo cuando se hace "modprobe ath5k"
automaticamente se crea un VAP llamado "wlan0" en modo "station". Y si
hicieras "modprobe ath_pci autocreate=ap" te crearia un "ath0" en modo
Master, siempre y cuando usases madwifi.

> [r...@localhost athenea]# iwconfig
> lo        no wireless extensions.
>
> eth0      no wireless extensions.
>
> wmaster0  no wireless extensions.
>
> wlan0     IEEE 802.11bg  ESSID:"NETGEAR"
>          Mode:Managed  Frequency:2.462 GHz  Access Point: 00:24:B2:3D:17:5E
>          Bit Rate=11 Mb/s   Tx-Power=20 dBm
>          Retry  long limit:7   RTS thr:off   Fragment thr:off
>          Encryption key:off
>          Power Management:off
>          Link Quality=23/70  Signal level=-87 dBm  Noise level=-94 dBm
>          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
>          Tx excessive retries:0  Invalid misc:0   Missed beacon:0
>
> vap0      IEEE 802.11bg  Mode:Master  Frequency:2.462 GHz  Tx-Power=20 dBm
>          Retry  long limit:7   RTS thr:off   Fragment thr:off
>          Encryption key:off
>          Power Management:off
>          Link Quality:0  Signal level:0  Noise level:0
>          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
>          Tx excessive retries:0  Invalid misc:0   Missed beacon:0
>
>
> O sea que ha funcionado, no? Es que nunca he armado un AP

Aparentemente a partir de un kernel 2.6.31 ath5k tiene soporte AP

http://wireless.kernel.org/en/users/Drivers/ath5k

> Cuando pongo esto:
>
> [r...@localhost athenea]# ifconfig vap0 10.1.1.1 netmask 255.255.255.0 up
>
> Me contesta:
>
> SIOCSIFFLAGS: El nombre no es único en la red
> SIOCSIFFLAGS: El nombre no es único en la red
>
> El módulo que tengo es ath5k, tal vez tenga que poner madwifi. Seguiré
> investigando.
>



-- 
Hay 10 tipos de personas, las que saben binario y las que no.

Luxas

Responder a