WEP key errors
Does anyone know what is going wrong here. I have been trying to get WEP enabled on my linux AP. Here is what I have in my interfaces file.
#iface br0 inet static
address 10.0.0.11
netmask 255.255.255.0
network 10.0.0.0
broadcast 10.0.0.255
bridge_ports eth0 ath0
pre-up ifconfig eth0 0.0.0.0 up
pre-up ifconfig ath0 0.0.0.0 up
pre-up /sbin/iwpriv ath0 mode 1 #0=abg,1=a,2=b,3=g
pre-up /sbin/iwconfig ath0 mode master
pre-up /sbin/iwconfig key 123456789012345678901234567
pre-up /sbin/iwconfig ath0 essid test
pre-up /sbin/sysctl -w dev.ath0.diversity=1
pre-up brctl addbr br0
pre-up brctl addif br0 eth0
pre-up brctl addif br0 ath0
post-down ifconfig eth0 0.0.0.0 down
post-down ifconfig ath0 0.0.0.0 down
post-down brctl delif br0 eth0
post-down brctl delif br0 ath0
post-down brctl delbr br0
This is the error I get when I try to bring up the device
Error for wireless request "Set Encode" (8B2A) :
SET failed on device ath0 ; Invalid argument.
Failed to bring up ath0.
I have tried just bringing up the wireless card itself not in the bridge and it still gets the same error. I don't know what is going wrong here, this is supposed to be easy.
Thanks for any help.
Jon
P.S. I am running on Debian 3 and have an atheros 5213a card. Everything works fine with the access point, just can't get WEP enabled and running.
|