FB 5.3 with wireless connection

Fabian Keil freebsd-listen at fabiankeil.de
Wed Mar 16 03:35:56 PST 2005


Albert Shih <shih at 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 at io# ifconfig wi0 wepkey xxxxxxxxxxxxxxxxxxxxxxxxxx up
> ifconfig: string too long
> root at 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


More information about the freebsd-questions mailing list