From andreas@klemm.apsfilter.org  Wed Oct  5 04:25:08 2005
Return-Path: <andreas@klemm.apsfilter.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 874F816A41F
	for <FreeBSD-gnats-submit@freebsd.org>; Wed,  5 Oct 2005 04:25:08 +0000 (GMT)
	(envelope-from andreas@klemm.apsfilter.org)
Received: from srv1.cosmo-project.de (srv1.cosmo-project.de [213.83.6.106])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 0A68B43D46
	for <FreeBSD-gnats-submit@freebsd.org>; Wed,  5 Oct 2005 04:25:07 +0000 (GMT)
	(envelope-from andreas@klemm.apsfilter.org)
Received: from srv1.cosmo-project.de (localhost [IPv6:::1])
	by srv1.cosmo-project.de (8.12.10/8.12.10) with ESMTP id j954P5BS051401
	(version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO)
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 5 Oct 2005 06:25:05 +0200 (CEST)
	(envelope-from andreas@klemm.apsfilter.org)
Received: (from uucp@localhost)
	by srv1.cosmo-project.de (8.12.10/8.12.10/Submit) with UUCP id j954P5fo051400
	for FreeBSD-gnats-submit@freebsd.org; Wed, 5 Oct 2005 06:25:05 +0200 (CEST)
	(envelope-from andreas@klemm.apsfilter.org)
Received: from titan.klemm.apsfilter.org (localhost [127.0.0.1])
	by klemm.apsfilter.org (8.13.4/8.13.4) with ESMTP id j954O75Y022716
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 5 Oct 2005 06:24:07 +0200 (CEST)
	(envelope-from andreas@titan.klemm.apsfilter.org)
Received: (from andreas@localhost)
	by titan.klemm.apsfilter.org (8.13.4/8.13.4/Submit) id j954O68l022715;
	Wed, 5 Oct 2005 06:24:06 +0200 (CEST)
	(envelope-from andreas)
Message-Id: <200510050424.j954O68l022715@titan.klemm.apsfilter.org>
Date: Wed, 5 Oct 2005 06:24:06 +0200 (CEST)
From: Andreas Klemm <andreas@klemm.apsfilter.org>
Reply-To: Andreas Klemm <andreas@klemm.apsfilter.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: ifconfig: SIOCS80211: Invalid argument
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         86920
>Category:       kern
>Synopsis:       [ndis] ifconfig: SIOCS80211: Invalid argument [regression]
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-net
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Oct 05 04:30:18 GMT 2005
>Closed-Date:    Mon May 07 03:56:37 UTC 2012
>Last-Modified:  Mon May 07 03:56:37 UTC 2012
>Originator:     Andreas Klemm
>Release:        FreeBSD 6.0 BETA5 (-STABLE) i386
>Organization:
home
>Environment:

	FreeBSD 6.0 Beta 5, updated with cvsup on "stable" branch.

	FreeBSD aklemm.klemm.apsfilter.org 6.0-BETA5 FreeBSD 6.0-BETA5 #3: Tue Oct  4 06:55:14 CEST 2005

>Description:

Since Oct 3rd I cannot get my WLAN (ndis) to work.
I assume its because the weptxkey cannot be set anymore.

Am getting error message:
+ ifconfig ndis0 wepkey 2:xxxxxxxxxxxxx
ifconfig: SIOCS80211: Invalid argument
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^ !!!!!!!!!

The day before I was able to get my WLAN card working in
DELL D610 Laptop with the following statement:

ifconfig ndis0 wepmode on weptxkey 2 wepkey 2:xxxxxxxxxxxxx channel 11 \
        authmode shared ssid xxxxxxxxxxxxxx

>How-To-Repeat:

ifconfig ndis0 down
ifconfig ndis0 up
ifconfig ndis0 authmode shared
ifconfig ndis0 bssid any
ifconfig ndis0 channel any
ifconfig ndis0 wepmode on
ifconfig ndis0 weptxkey 2
ifconfig ndis0 wepkey 2:xxxxxxxxxxxxx
ifconfig: SIOCS80211: Invalid argument
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^ !!!!!!!!!
ifconfig ndis0 ssid xxxxxxxxxxxxxx
ifconfig ndis0 172.16.2.10/24

console messages:
        ndis0: failed to get bssid

ifconfig ndis0:
ndis0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        inet6 fe80::20b:7dff:fe15:605e%ndis0 prefixlen 64 scopeid 0x3
        inet 172.16.2.10 netmask 0xffffff00 broadcast 172.16.2.255
        ether 00:0b:7d:15:60:5e
        media: IEEE 802.11 Wireless Ethernet autoselect (OFDM/54Mbps)
        status: associated
        ssid "" channel 1
        authmode SHARED privacy ON deftxkey 2 powersavemode CAM
        powersavesleep 100 txpowmax 100 protmode CTS

root@aklemm[ttyp5]{207} ~/bin ifconfig ndis0 scan
SSID            BSSID              CHAN RATE  S:N   INT CAPS
xxxxxxxx        00:04:0e:1c:4c:90    1   54M 116:0   200 EP   ??? ??? ??? ???
???
xxxxxxxxxxxxxx  00:11:09:0c:17:e3   11   54M 166:0   100 EP   ??? ??? ??? ???
??? ??? WPA ???

Created ndis driver newly using ndisgen, to be sure, that the
driver is well. No change.

Another strange thing, the day before when wlan was still working:
ifconfig ndis0 still showed channel 1. Although I configured the card 
to use channel 11.

My Access Point is definitively set to channel 11.

>Fix:

no fix
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: gavin 
State-Changed-When: Tue Feb 19 17:04:46 UTC 2008 
State-Changed-Why:  
To submitter:  Firstly, I'm sorry that this PR has sat for so long without 
anyone looking at it.  Can you tell me, is this still a problem with newer 
versions of FreeBSD? 


Responsible-Changed-From-To: freebsd-i386->gavin 
Responsible-Changed-By: gavin 
Responsible-Changed-When: Tue Feb 19 17:04:46 UTC 2008 
Responsible-Changed-Why:  
Track 

http://www.freebsd.org/cgi/query-pr.cgi?pr=86920 
State-Changed-From-To: feedback->suspended 
State-Changed-By: gavin 
State-Changed-When: Tue Mar 18 18:06:42 UTC 2008 
State-Changed-Why:  
Mark as suspended for now, as submitter has no time to test right now. 
To submitter: if you can see if this is still an issue at some point, we 
can look into it, otherwise if nobody else can recreate it, we'll have to 
close this PR. 


Responsible-Changed-From-To: gavin->freebsd-net 
Responsible-Changed-By: gavin 
Responsible-Changed-When: Tue Mar 18 18:06:42 UTC 2008 
Responsible-Changed-Why:  
Over to -net 

http://www.freebsd.org/cgi/query-pr.cgi?pr=86920 
State-Changed-From-To: suspended->closed 
State-Changed-By: eadler 
State-Changed-When: Mon May 7 03:56:36 UTC 2012 
State-Changed-Why:  
feedback timeout; if this is still an issue please email me 

http://www.freebsd.org/cgi/query-pr.cgi?pr=86920 
>Unformatted:
