Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 05 Sep 2005 23:34:55 +0200
From:      Maarten Sanders <maarfree@xs4all.nl>
To:        FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   pccard, wi0, wep and DHCP
Message-ID:  <1125956095.771.14.camel@maarten>

next in thread | raw e-mail | index | archive | help
Hi,

If used to have my wives laptop configured with rc.conf containing:
'ifconfig_wi0="DHCP"' this works and brings up wi0. Since my town is
crowded with wardrivers I would like to use wep. Because my wife often
inserts the pcmcia card after booting I also like to have pccard
enabled. I can manually configure the card to use WEP. dhclient is
configured 'out of the box'.

What I did after some googling:

in /etc/rc.conf I added:
pccard_enable="YES"
pccard_flags="-z"
pccard_ifconfig="DHCP"
and I removed:
ifconfig_wi0="DHCP"

I created a file:
/etc/start_if.wi0
ifconfig wi0 nwkey 0xsomehex

The wi card is listed in /etc/default/pccard.conf :
"BENQ" "AWL100 PCMCIA ADAPTER"
        config  auto "wi" ?
        insert  /etc/pccard_ether $device start
        remove  /etc/pccard_ether $device stop
so I think /etc/pccard_ether should be executed on boot/insertion. Now
this works not as I expect. When I manually run:
/etc/pccard_ether wi0 start
/etc/start_if.wi0 is not interpretted and the WEP key is not set so
dhclient fails.

I guess I am missing a trivial point, but which?

Maarten




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