Bug 95956

Summary: 128-bit
Product: Base System Reporter: Christopher Chin <cchin>
Component: binAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Unspecified   
Hardware: Any   
OS: Any   

Description Christopher Chin 2006-04-17 19:40:14 UTC
After a recent cvsup, buildworld, and new kernel, I can no longer 
effectively use 128bit wep with my wi0 driver.

This worked beautifully with my 5.4, and I'm pretty sure this worked
well after my upgrade to 6.0 and 6.1-PRERELEASE.


  bubble (cchin):/home/cchin# ifconfig wi0 wep wepkey 0x12345678901234567890abcdef 
  ifconfig: SIOCS80211: Invalid argument
  bubble (cchin):/home/cchin#


For reference, from 'dmesg':

  wi0: <Dell TrueMobile 1150 Series PC Card> at port 0xe000-0xe03f irq 9 function 0 config 1 on pccard2
  wi0: using Lucent Embedded WaveLAN/IEEE
  wi0: Lucent Firmware: Station (8.10.1)
  wi0: Ethernet address: 00:02:2d:6e:ad:46

How-To-Repeat: 'ifconfig wi0 wep wepkey 0x12345678901234567890abcdef'
'ifconfig wi0 wep wepkey 0x6162636465666768696A6B6C6D'
'ifconfig wi0 wep wepkey 0x6162636465666768696A6B6C6D00'
Comment 1 ru freebsd_committer freebsd_triage 2006-04-17 19:49:04 UTC
On Mon, Apr 17, 2006 at 06:38:55PM +0000, Christopher Chin wrote:
> After a recent cvsup, buildworld, and new kernel, I can no longer 
> effectively use 128bit wep with my wi0 driver.
> 
> This worked beautifully with my 5.4, and I'm pretty sure this worked
> well after my upgrade to 6.0 and 6.1-PRERELEASE.
> 
> 
>   bubble (cchin):/home/cchin# ifconfig wi0 wep wepkey 0x12345678901234567890abcdef 
>   ifconfig: SIOCS80211: Invalid argument
>   bubble (cchin):/home/cchin#
> 
From the ifconfig(8) manpage:

: A WEP key will be either 5 or 13 characters (40 or 104 bits)
: depending of the local network and the capabilities of the
: adaptor.


Cheers,
-- 
Ruslan Ermilov
ru@FreeBSD.org
FreeBSD committer
Comment 2 Mark Linimon freebsd_committer freebsd_triage 2006-04-17 20:49:11 UTC
State Changed
From-To: open->closed

The 108-bit key is understood to be the correct behavior.
Comment 3 Christopher Chin 2006-04-18 18:03:36 UTC
On Mon, 17 Apr 2006 (21:49 +0300), Ruslan Ermilov wrote:

> Date: Mon, 17 Apr 2006 21:49:04 +0300
> From: Ruslan Ermilov <ru@freebsd.org>
> To: Christopher Chin <cchin@ack.Berkeley.EDU>
> Cc: freebsd-gnats-submit@freebsd.org
> Subject: Re: bin/95956: 128-bit
> 
> On Mon, Apr 17, 2006 at 06:38:55PM +0000, Christopher Chin wrote:
>> After a recent cvsup, buildworld, and new kernel, I can no longer
>> effectively use 128bit wep with my wi0 driver.
>>
>> This worked beautifully with my 5.4, and I'm pretty sure this worked
>> well after my upgrade to 6.0 and 6.1-PRERELEASE.
>>
>>
>>   bubble (cchin):/home/cchin# ifconfig wi0 wep wepkey 0x12345678901234567890abcdef
>>   ifconfig: SIOCS80211: Invalid argument
>>   bubble (cchin):/home/cchin#
>>
>> From the ifconfig(8) manpage:
>
> : A WEP key will be either 5 or 13 characters (40 or 104 bits)
> : depending of the local network and the capabilities of the
> : adaptor.


Thanks, Ruslan.... however, I suppose that 5 or 13
characters refers to ASCII representations.  The number
of hex digits will differ.

  - Christopher

======================
Comment 4 Christopher Chin 2006-04-18 18:08:32 UTC
On Mon, 17 Apr 2006 (21:49 +0300), Ruslan Ermilov wrote:
> 
> On Mon, Apr 17, 2006 at 06:38:55PM +0000, Christopher Chin wrote:
>>
>>    [. . .]
>>
>>   bubble (cchin):/home/cchin# ifconfig wi0 wep wepkey 
>> 0x12345678901234567890abcdef
>>   ifconfig: SIOCS80211: Invalid argument
>>   bubble (cchin):/home/cchin#
>> 
> From the ifconfig(8) manpage:
> 
> : A WEP key will be either 5 or 13 characters (40 or 104 bits)
> : depending of the local network and the capabilities of the
> : adaptor.


Thanks, Ruslan.... however, I suppose that 5 or 13
characters refers to ASCII representations.  The number
of hex digits will differ.

  - Christopher

======================
Comment 5 Christopher Chin 2006-04-18 18:11:28 UTC
On Mon, 17 Apr 2006 (19:50 -0000), Mark Linimon wrote:
> 
> Synopsis: 128-bit
> 
> State-Changed-From-To: open->closed
> State-Changed-By: linimon
> State-Changed-When: Mon Apr 17 19:49:11 UTC 2006
> State-Changed-Why:
> The 108-bit key is understood to be the correct behavior.


Hmmm...  turns out that a better answer would have been
for me to (re-)read the 6-0 Release Notes...
particularly section 2.2.2.2. Network Interface Support.

Apparently: "Note in particular that WEP now requires
the wlan_wep module to be loaded (or compiled) into the
kernel."

All fine and good... but I'd be surprised if others
don't trip on this as well when 6.x gets more usage.

Oh...  Sorry about the lame subject line.  I hit the 
submit button before going back and "fixing" the Subject.

Thanks,
  - Christopher

======================