Intel PRO/Wireless 2200BG

Intel PRO/Wireless 2200BG

Post by Lars Stokh » Thu, 15 Dec 2005 03:02:14

First of all, I'm new to both FreeBSD and wireless networking.

I need to connect to a wireless network, of which I know the
name and a password. I guess I want FreeBSD to try to connect
automagically at startup, or if it's a fairly simple procedure
I can do it manually, when I need to.

I've installed the iwi-firmware port, and loaded the if_iwi
module into the kernel:

kldload if_iwi

That can be done automatically from /etc/rc.conf, right?


Can someone guide me through the rest of the process? I'm
really confused by
It doesn't explain anything, from a newbie perspective.

If the next step is to enable my radio transmitter, I can
already say that I can't do it, so I hope it's done when
needed: "On some laptops, turning the interface up with
ifconfig or dhclient can automatically switch the radio ON."

Intel PRO/Wireless 2200BG

Post by Patrick La » Thu, 15 Dec 2005 06:49:20

Lars Stokholm:

use /boot/loader.conf, if_iwi_load="YES". You may need some others
modules, on FreeBSD 6.0 I load


The next step is to load the Intel firmware with the tool "iwicontrol"

/usr/sbin/iwicontrol -i iwi0 -d /usr/local/share/iwi-firmware

You can use devd (/etc/devd.conf) to load the firmware with a rule like
attach 100 {
device-name "iwi0";
action "/usr/sbin/iwicontrol -i iwi0 -d /usr/local/share/iwi-firmware";

Then use ifconfig to configure the interface. If you want to use WPA see
wpa_supplicant (under 6.0 only).


Intel PRO/Wireless 2200BG

Post by Lars Stokh » Thu, 15 Dec 2005 14:27:33

What's the difference between that and my approach? I didn't
say, but iwi_enable in rc.conf actually works.

Is there any way to tell whether you need them or not? :)

Oh yeah, I forgot about that. I don't remember how, but I came
to the conclusion that it was already loaded. Does that sound

I'll try to remember why I concluded that.

(That command doesn't work for me. The firmware lies in
/boot/firmware/ on my system.)

How do I do that?

I guess I can figure that out...

Intel PRO/Wireless 2200BG

Post by Lars Stokh » Thu, 15 Dec 2005 15:32:57

Doesn't matter. I was wrong. dmesg says "Please load firmware".

Intel PRO/Wireless 2200BG

Post by Lars Stokh » Fri, 16 Dec 2005 21:27:41

I found out a lot of the other stuff by myself, I think, but
this is really nagging me:

stokholm# cat /etc/wpa_supplicant.conf

stokholm# wpa_supplicant -i iwi0 -c /etc/wpa_supplicant.conf
Line 6: Invalid configuration line 'network={'.
Line 7: Invalid configuration line 'ssid=...
Line 8: Invalid configuration line 'key_mgmt=WPA-PSK'.
Line 9: Invalid configuration line 'psk=...
Line 10: Invalid configuration line '}'.
Failed to read configuration file '/etc/wpa_supplicant.conf'.

What's wrong?

Intel PRO/Wireless 2200BG

Post by Patrick La » Sat, 17 Dec 2005 21:45:45

Lars Stokholm:


Hmm, i've got the same configuration and it works. May be there are some
trailing spaces or something like this ?

# allow frontend (e.g., wpa_cli) to be used by all users in 'wheel'