From owner-freebsd-bugs Tue Aug 20 19:30:12 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6D44737B400 for ; Tue, 20 Aug 2002 19:30:02 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id A9B8A43E77 for ; Tue, 20 Aug 2002 19:30:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.4/8.12.4) with ESMTP id g7L2U1JU048900 for ; Tue, 20 Aug 2002 19:30:01 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.4/8.12.4/Submit) id g7L2U1j7048899; Tue, 20 Aug 2002 19:30:01 -0700 (PDT) Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3D4A237B400 for ; Tue, 20 Aug 2002 19:24:56 -0700 (PDT) Received: from gnbfw.bond.wattle.id.au (CPE-203-45-32-179.vic.bigpond.net.au [203.45.32.179]) by mx1.FreeBSD.org (Postfix) with ESMTP id 94C4743E42 for ; Tue, 20 Aug 2002 19:24:54 -0700 (PDT) (envelope-from toor@gnbfw.bond.wattle.id.au) Received: from gnbfw.bond.wattle.id.au (smmsp@localhost.bond.wattle.id.au [127.0.0.1]) by gnbfw.bond.wattle.id.au (8.12.5/8.12.5) with ESMTP id g7L2Oq8r068298 for ; Wed, 21 Aug 2002 12:24:52 +1000 (EST) (envelope-from toor@gnbfw.bond.wattle.id.au) Received: (from root@localhost) by gnbfw.bond.wattle.id.au (8.12.5/8.12.5/Submit) id g7L2Oocv068297; Wed, 21 Aug 2002 12:24:50 +1000 (EST) Message-Id: <200208210224.g7L2Oocv068297@gnbfw.bond.wattle.id.au> Date: Wed, 21 Aug 2002 12:24:50 +1000 (EST) From: Gregory Bond To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: kern/41834: wi(4) hostap mode won't work with WEP Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 41834 >Category: kern >Synopsis: wi(4) hostap mode won't work with WEP >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Aug 20 19:30:00 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Gregory Bond >Release: FreeBSD 4.6-STABLE i386 >Organization: ITG Australia Ltd >Environment: System: FreeBSD gnbfw.bond.wattle.id.au 4.6-STABLE FreeBSD 4.6-STABLE #3: Sat Jul 20 16:45:58 EST 2002 root@gregbsd.bond.wattle.id.au:/usr/obj/usr/src/sys/FW i386 Ancient Pentium-100 box acting as a firewall. wi(4) running on a DLink 520 Client is a WinMe laptop with a DLink 650 wi0: mem 0xfbfe0000-0xfbfe0fff irq 11 at device 12.0 on pci0 wi0: 802.11 address: 00:05:5d:5b:c4:c8 wi0: using RF:PRISM2.5 MAC:ISL3874A(Mini-PCI) wi0: Intersil Firmware: Primary 1.00.05, Station 1.03.04 >Description: Using the wi(4) driver in ad-hoc mode, I can enable WEP on both ends and it works fine. In hostap mode, and without WEP, it works fine. In hostap mode with WEP enabled, the laptop cannot get an association. As soon as I turn WEP off on both ends, the laptop can get an association. I'm using Hex keys, and even simple unambiguous keys (like 0x11111...). I've tried 64 and 128 bit WEP. I've asked about this in the -stable list, and gotten a couple of "me too"s from people with other wireless cards, but no answers. So I don't think it's necessarily a case of user error. (Yes, I know WEP is not much chop but it's good enough to stop casual leeching of my cable link.) [Severity is Serious/medium because it is very unwise to run wireless without some sort of security.] As an aside, I can't go from hostap mode back to ad-hoc mode without a reboot, it gets ENXIO. Looking at if_wi.c, something like this appears to be deliberate (in wi_media_change(), line 2846ff), but I think the ENXIO is coming from sys/net/if_media.c:ifmedia_ioctl(), due to ifmedia_match() failing, which is very very odd..... >How-To-Repeat: # ifconfig wi0 inet netmask ssid wepkey (Put laptop in Ad-Hoc mode with same key) Note that the link works. # ifconfig wi0 wepkey mediaopt hostap (Put laptop in BSS mode) Note failure to get an association. # ifconfig wi0 -wep (And turn WEP off on the laptopo) Note the laptop is able to associate. # ifconfig wi0 mediaopt adhoc ifconfig: SIOCSIFMEDIA: Device not configured # >Fix: None known. Possible work-around is to use IPSEC or PPPoE for network security. I'm willing to play around with this box if anyone can give me some pointers or wants me to try some debugging. >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message