Configuring an iwi wireless interface on FreeBSD 7.0

I had a few bumps trying to configure the iwi(4) wireless interface on my laptop. What I wanted to do was to let my iwi wireless interface an IP address thru a DHCP. The documentation for this configuration is quite scarce - as of this writing. So, I'm posting this and perhaps somebody with the same hardware might stumble upon this post would find some useful hints.

I'm assuming that you've got your interface running with all the necessary kernel modules, boot loader variables and what-not.

Givens:


SSID (nowires)
WEPKEY - hex (0x042Z923954)


Edit /etc/rc.conf and add the following:


ifconfig_iwi0="ssid nowires wepmode mixed weptxkey 1 wepkey 1:0x042Z923954 DHCP"


It took me a while to figure out that wepmode, weptxkey and the wepkey index are necessary - at least in the wireless network setup that I was using. I you read ifconfig(8) for more information about wireless interface options for WEP.

We'll, that's just about it... network connection without any wires.