From owner-freebsd-current@FreeBSD.ORG Fri Oct 28 14:35:45 2005 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 618) id 68F4016A58F; Fri, 28 Oct 2005 14:35:45 +0000 (GMT) In-Reply-To: <43623292.9090802@bgp4.net> from Janet Sullivan at "Oct 28, 2005 07:15:46 am" To: ciscogeek@bgp4.net (Janet Sullivan) Date: Fri, 28 Oct 2005 14:35:45 +0000 (GMT) X-Mailer: ELM [version 2.4ME+ PL54 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Message-Id: <20051028143545.68F4016A58F@hub.freebsd.org> From: wpaul@FreeBSD.ORG (Bill Paul) Cc: freebsd-current@freebsd.org, freebsd-stable@freebsd.org Subject: Re: 6.0-RC1: ifconfig reporting bad info when using ndis0 & WPA 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, 28 Oct 2005 14:35:45 -0000 > Sorry for cross posting - with 6.0 so near, I wasn't sure which list to > send this too. I'm not subscribed to -current, so please cc me if the > conversation is moved there. > > I just cvsup'd RELENG_6_0 and upgraded by 6.0-RC1 install this morning, > eager to see if WPA with ndis0 would now work. The good news: it does. > The bad news: ifconfig doesn't report all the information correctly. > > Here is what ifconfig -a is reporting for ndis0: > > ndis0: flags=8843 mtu 1500 > inet6 fe80::20f:66ff:fefe:a1a7%ndis0 prefixlen 64 scopeid 0x3 > inet 192.168.23.13 netmask 0xffffff00 broadcast 192.168.23.255 > ether 00:0f:66:fe:a1:a7 > media: IEEE 802.11 Wireless Ethernet autoselect (OFDM/54Mbps) > status: associated > ssid BGP4 channel 1 bssid 00:0f:66:bc:9b:0a > authmode OPEN privacy OFF txpowmax 100 protmode CTS > > The problem is that the connection is actually on channel 11, not > channel 1, and its using WPA. > > Is this a known issue? When using wpa_supplicant in -D ndis mode, it modifies the interface configuration directly using ioctl()s to the NDIS driver (which is exactly what it does on Windows, only in Windows it's called DeviceIoControl() instead of ioctl). Consequently, net80211 isn't aware of all the state changes that it triggers. I think this can be remedied, but for now I thought people would be more interested in actually having WPA and WPA2 actually work, and wouldn't mind so much that ifconfig didn't always report precisely the right state info at all times. I can probably fix this, but it'll have to wait until after the release is cut before I can merge it into 6.x. Out of curiosity, what card do you have? -Bill -- ============================================================================= -Bill Paul (510) 749-2329 | Senior Engineer, Master of Unix-Fu wpaul@windriver.com | Wind River Systems ============================================================================= you're just BEGGING to face the moose =============================================================================