ath cannot connect using WEP

From: Alexander Best <alexbestms_at_math.uni-muenster.de>
Date: Fri, 05 Dec 2008 02:16:51 +0100 (CET)
hello everybody,

i'm having problems with the ath driver in connection with WEP encryption
under CURRENT. i've already posted a PR
(http://www.freebsd.org/cgi/query-pr.cgi?pr=129022), but maybe somebody else
is experiencing the very same problems i'm having.

if i disable WEP encryption in my routers web interface i'm able to connect
without any problems.

this is my wlan device:

ath0_at_pci0:5:1:0: class=0x020000 card=0x5a001385 chip=0x0013168c rev=0x01
hdr=0x00
vendor = 'Atheros Communications Inc.'
device = 'AR5212, AR5213 802.11a/b/g Wireless Adapter'
class = network
subclass = ethernet

my rc.conf contains the following wlan related entries:

wlans_ath0=wlan0
ifconfig_wlan0="inet 192.168.1.10 ssid XXXXXX wepmode on authmode shared
wepkey 1:0xXXXXXXXXXXXXXXXXXXXXXXXXXX wepkey 2:- wepkey 3:- wepkey 4:-
deftxkey 1 channel 11"

this is the output from ifconfig:

ath0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 2290
ether XX:XX:XX:XX:XX:XX
media: IEEE 802.11 Wireless Ethernet autoselect mode 11g
status: associated
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
inet 127.0.0.1 netmask 0xff000000
wlan0: flags=8c43<UP,BROADCAST,RUNNING,OACTIVE,SIMPLEX,MULTICAST> metric 0 mtu
1500
ether XX:XX:XX:XX:XX:XX
inet 192.168.1.10 netmask 0xffffff00 broadcast 192.168.1.255
media: IEEE 802.11 Wireless Ethernet autoselect (autoselect)
status: no carrier
ssid XXXXXX channel 11 (2462 Mhz 11g)
country US ecm authmode SHARED privacy ON deftxkey 1 wepkey 1:104-bit
txpower 18.5 bmiss 7 scanvalid 60 bgscan bgscanintvl 300
bgscanidle 250 roam:rssi 7 roam:rate 5 protmode CTS wme burst ff
dturbo

enabling wlan debugging using wlandebug scan+auth+assoc revealed the following
errors:

Nov 20 19:24:58 moshnroll kernel: wlan0: notify scan done
Nov 20 19:24:58 moshnroll kernel: wlan0: [XX:XX:XX:XX:XX:XX] recv auth frame
with algorithm 1 seq 2
Nov 20 19:24:58 moshnroll kernel: wlan0: [XX:XX:XX:XX:XX:XX] request encrypt
frame (ieee80211_send_mgmt)
Nov 20 19:24:58 moshnroll kernel: wlan0: [XX:XX:XX:XX:XX:XX] encrypting frame
(ieee80211_mgmt_output)
Nov 20 19:25:00 moshnroll kernel: wlan0: [XX:XX:XX:XX:XX:XX]
ieee80211_scan_assoc_fail: reason 1
Nov 20 19:25:00 moshnroll kernel: wlan0: [XX:XX:XX:XX:XX:XX] sta_assoc_fail:
reason 1 fails 2

i've also enabled ath debugging output, but couldn't find any errors. but
please ask me if you think the ath debug output should reveal something. all i
need are the command line options for athdebug.

i had a look at the sources and it seems the net80211 warning is being issued
by one of these statements:

http://fxr.watson.org/fxr/source/net80211/ieee80211_sta.c#L174
or
http://fxr.watson.org/fxr/source/net80211/ieee80211_sta.c#L270

however the problem seems to be caused somewhere in the ath driver i guess.

i've also tried to use wpa_supplicant, but without any luck. i got the
following error:

ioctl[SIOCS80211, op 103, len 128]: Device not configured
Failed to initiate AP scan.

this seems to be a bug in wpa_supplicant, because scanning for APs isn't the
problem. if i apply this patch:

http://docs.freebsd.org/cgi/getmsg.cgi?fetch=146030+0+/usr/local/www/db/text/2008/freebsd-current/20080525.freebsd-current

the warning dissapears, but i'm getting timeouts during the associate phase.

please tell me if you need more details and/or any debug output. i haven't
tried any kind of WPA encryption yet. my router is not broadcasting its ssid,
but during AP scanning my router and it's ssid are being discovered. before
switching to CURRENT a week ago i was using 7-STABLE where i had absolutely no
problems at all using WEP encryption.

thanks in advance.
alex
Received on Fri Dec 05 2008 - 00:46:47 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:38 UTC