From owner-freebsd-current@FreeBSD.ORG Sat Dec 11 01:19:56 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0DDBF16A4CE for ; Sat, 11 Dec 2004 01:19:56 +0000 (GMT) Received: from pne-smtpout1-sn2.hy.skanova.net (pne-smtpout1-sn2.hy.skanova.net [81.228.8.83]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9A59643D58 for ; Sat, 11 Dec 2004 01:19:55 +0000 (GMT) (envelope-from pawel.worach@telia.com) Received: from [127.0.0.1] (81.225.14.129) by pne-smtpout1-sn2.hy.skanova.net (7.1.026.6) (authenticated as u86211448) id 4199C6960000B697; Sat, 11 Dec 2004 02:19:44 +0100 Message-ID: <41BA4B22.5070403@telia.com> Date: Sat, 11 Dec 2004 02:19:30 +0100 From: Pawel Worach User-Agent: Mozilla Thunderbird 1.0 (X11/20041210) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Sam Leffler References: <200412081109.43840.sam@errno.com> <20041209.100008.21874313.rushani@bl.mmtr.or.jp> <200412081744.27539.sam@errno.com> <20041209.225041.63112571.rushani@bl.mmtr.or.jp> <41B9454F.9080903@errno.com> In-Reply-To: <41B9454F.9080903@errno.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-current@freebsd.org Subject: Re: WEP does not work? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 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: Sat, 11 Dec 2004 01:19:56 -0000 Sam Leffler wrote: > I'll try to look tomorrow. I have a patch for fixing wep with ndis that > I need to review and this is probably the same thing. I have the same problem on a ThinkPad T41. Device is: ath_hal: 0.9.14.9 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413) ath0: mem 0xc0210000-0xc021ffff irq 11 at device 2.0 on pci2 ath0: Ethernet address: 00:05:4e:4b:76:13 ath0: mac 5.6 phy 4.1 5ghz radio 1.7 2ghz radio 2.3 Sysctls: dev.ath.0.countrycode: 0 dev.ath.0.regdomain: 97 I tried setting hw.ath.countrycode to 752 (sweden) but the driver complained on boot that it was invalid. It was zero with the old kernel too. The card works fine in ad-hoc mode without wep, if I enable wep it breaks. The funny thing is that on the other end I can see ARP requests but no replies are sent when wep is on (other end is a ~3 weeks old current with a cisco aironet 350 card). "status" claims "associated", everything looks the way it should be. # ifconfig ath0 list chan Channel 1 : 2412 Mhz 11g Channel 48 : 5240* Mhz 11a Channel 2 : 2417 Mhz 11g Channel 52 : 5260* Mhz 11a Channel 3 : 2422 Mhz 11g Channel 56 : 5280* Mhz 11a Channel 4 : 2427 Mhz 11g Channel 60 : 5300* Mhz 11a Channel 5 : 2432 Mhz 11g Channel 64 : 5320* Mhz 11a Channel 6 : 2437 Mhz 11g Channel 100 : 5500* Mhz 11a Channel 7 : 2442 Mhz 11g Channel 104 : 5520* Mhz 11a Channel 8 : 2447 Mhz 11g Channel 108 : 5540* Mhz 11a Channel 9 : 2452 Mhz 11g Channel 112 : 5560* Mhz 11a Channel 10 : 2457 Mhz 11g Channel 116 : 5580* Mhz 11a Channel 11 : 2462 Mhz 11g Channel 120 : 5600* Mhz 11a Channel 12 : 2467* Mhz 11g Channel 124 : 5620* Mhz 11a Channel 13 : 2472* Mhz 11g Channel 128 : 5640* Mhz 11a Channel 14 : 2484* Mhz 11b Channel 132 : 5660* Mhz 11a Channel 34 : 5170* Mhz 11a Channel 136 : 5680* Mhz 11a Channel 36 : 5180* Mhz 11a Channel 140 : 5700* Mhz 11a Channel 38 : 5190* Mhz 11a Channel 149 : 5745* Mhz 11a Channel 40 : 5200* Mhz 11a Channel 153 : 5765* Mhz 11a Channel 42 : 5210* Mhz 11a Channel 157 : 5785* Mhz 11a Channel 44 : 5220* Mhz 11a Channel 161 : 5805* Mhz 11a Channel 46 : 5230* Mhz 11a Channel 165 : 5825* Mhz 11a Ad-Hoc mode without wep: # ifconfig -v ath0 ath0: flags=8843 mtu 1500 inet 192.168.1.200 netmask 0xffffff00 broadcast 192.168.1.255 inet6 fe80::205:4eff:fe4b:7613%ath0 prefixlen 64 scopeid 0x2 ether 00:05:4e:4b:76:13 media: IEEE 802.11 Wireless Ethernet autoselect (autoselect ) status: associated ssid cookie channel 7 (2442) bssid da:00:a4:01:3b:02 authmode OPEN privacy OFF deftxkey UNDEF powersavemode OFF powersavesleep 100 txpowmax 34 txpower 60 rtsthreshold 2312 protmode CTS wme roaming AUTO bintval 100 AC_BE cwmin 4 cwmax 10 aifs 3 txopLimit 0 -acm ack cwmin 4 cwmax 10 aifs 3 txopLimit 0 -acm AC_BK cwmin 4 cwmax 10 aifs 7 txopLimit 0 -acm ack cwmin 4 cwmax 10 aifs 7 txopLimit 0 -acm AC_VI cwmin 3 cwmax 4 aifs 2 txopLimit 94 -acm ack cwmin 3 cwmax 4 aifs 2 txopLimit 94 -acm AC_VO cwmin 2 cwmax 3 aifs 2 txopLimit 47 -acm ack cwmin 2 cwmax 3 aifs 2 txopLimit 47 -acm I also get a couple of these from time to time, could be related to reconfiguration. ath0: device timeout ath0: device timeout ath0: device timeout Another minor thing I noted, when you play around with 'ifconfig ath0 wepmode' it looks like the wepkeys are displayed sometimes and sometimes not afterwards, it seems very random. It it required to set wepkey and wepmode in the same command? -- Pawel