Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 16 Mar 2005 12:35:26 +0100
From:      Fabian Keil <freebsd-listen@fabiankeil.de>
To:        shih@math.jussieu.fr
Cc:        freebsd-questions@freebsd.org
Subject:   Re: FB 5.3 with wireless connection
Message-ID:  <20050316123526.259df11e@localhost>
In-Reply-To: <20050316105837.GA27361@math.jussieu.fr>
References:  <20050316105837.GA27361@math.jussieu.fr>

next in thread | previous in thread | raw e-mail | index | archive | help
Albert Shih <shih@math.jussieu.fr> wrote:

> With a FB 5.3-P5 how can I configure a wifi card with 128 bits key wep ?
> 
> My wifi card is 
> 
> wi0: <Dell TrueMobile 1150 Series PC Card> at port 0xe000-0xe03f irq 5 function 0 config 1 on pccard1
> 
> When I use
> 
> root@io# ifconfig wi0 wepkey xxxxxxxxxxxxxxxxxxxxxxxxxx up
> ifconfig: string too long
> root@io# ifconfig wi0 weptxkey xxxxxxxxxxxxxxxxxxxxxxxxxx up
> ifconfig: SIOCS80211: Invalid argument

The recommended way is to specify the wepkey in hexadecimal digits.
ifconfig wi0 wepkey 0x1deadc0dedeadc0dedeadc0de1

man ifconfig:
>      wepkey key|index:key
>              For IEEE 802.11 wireless interfaces, set the selected WEP key.
>              If an index is not given, key 1 is set.  A WEP key will be either
>              5 or 13 characters (40 or 104 bits) depending of the local net-
>              work and the capabilities of the adaptor.  It may be specified
>              either as a plain string or as a string of hexadecimal digits
>              proceeded by `0x'.  For maximum portability, hex keys are recom-
>              mended; the mapping of text keys to WEP encryption is usually
>              driver-specific.  In particular, the Windows drivers do this map-
>              ping differently to FreeBSD.  A key may be cleared by setting it
>              to `-'.  If WEP is supported then there are at least four keys.
>              Some adaptors support more than four keys.  If that is the case,
>              then the first four keys (1-4) will be the standard temporary
>              keys and any others will be adaptor specific keys such as perma-
>              nent keys stored in NVRAM.

Regards
Fabian
-- 
http://www.fabiankeil.de



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050316123526.259df11e>