From owner-freebsd-current@FreeBSD.ORG Fri Dec 5 01:46:47 2008 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DAFB01065672 for ; Fri, 5 Dec 2008 01:46:47 +0000 (UTC) (envelope-from a_best01@uni-muenster.de) Received: from zivm-out1.uni-muenster.de (ZIVM-OUT1.UNI-MUENSTER.DE [128.176.192.8]) by mx1.freebsd.org (Postfix) with ESMTP id 7008B8FC19 for ; Fri, 5 Dec 2008 01:46:47 +0000 (UTC) (envelope-from a_best01@uni-muenster.de) X-IronPort-AV: E=Sophos;i="4.33,717,1220220000"; d="scan'208";a="264499334" Received: from zivmaildisp1.uni-muenster.de (HELO ZIVMAILUSER05.UNI-MUENSTER.DE) ([128.176.188.85]) by zivm-relay1.uni-muenster.de with ESMTP; 05 Dec 2008 02:16:51 +0100 Received: by ZIVMAILUSER05.UNI-MUENSTER.DE (Postfix, from userid 149459) id 980921B07DC; Fri, 5 Dec 2008 02:16:51 +0100 (CET) Date: Fri, 05 Dec 2008 02:16:51 +0100 (CET) From: Alexander Best Sender: Organization: Westfaelische Wilhelms-Universitaet Muenster To: Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailman-Approved-At: Fri, 05 Dec 2008 03:21:58 +0000 Subject: ath cannot connect using WEP X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Dec 2008 01:46:47 -0000 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@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 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 metric 0 mtu 16384 inet 127.0.0.1 netmask 0xff000000 wlan0: flags=8c43 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