Subject: netbsd-3.99.7: iwi problems
To: None <port-i386@netbsd.org>
From: Berndt Josef Wulf <wulf@ping.net.au>
List: port-i386
Date: 07/02/2005 19:20:01
G'day,

after a successful upgrade to netbsd-3.99.7 kernel and userland the iwi0 WIFI 
interface refuses to establish a connection with the AP.

The system in question runs on a Inspiron 9300 laptop sporting a Intel 
Pro/Wireless LAN 220BG see boot messages below:

-- kernel 3.99.3

iwi0 at pci2 dev 3 function 0: Intel PRO/Wireless LAN 2200BG Mini-PCI Adapter 
(rev. 0x05)
iwi0: interrupting at irq 10
iwi0: 802.11 address 00:12:f0:8e:cb:3f
iwi0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps
iwi0: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 
36Mbps 48Mbps 54Mbps

When booting netbsd-3.99.7, the interface is detected but the boot message 
doesn't show the 11b/11g rates and attempts to configure the iwi0 device 
using dhclient/ifconfig fail to connect to the wireless network - see below:

-- kernel 3.99.7

iwi0 at pci2 dev 3 function 0: Intel PRO/Wireless LAN 2200BG Mini-PCI Adapter 
(rev. 0x05)
iwi0: interrupting at irq 10
iwi0: 802.11 address 00:12:f0:8e:cb:3f

-- dhclient

Listening on BPF/iwi0/00:12:f0:8e:cb:3f
Sending on   BPF/iwi0/00:12:f0:8e:cb:3f
Sending on   Socket/fallback
DHCPDISCOVER on iwi0 to 255.255.255.255 port 67 interval 4
DHCPDISCOVER on iwi0 to 255.255.255.255 port 67 interval 7
DHCPDISCOVER on iwi0 to 255.255.255.255 port 67 interval 11
DHCPDISCOVER on iwi0 to 255.255.255.255 port 67 interval 15
DHCPDISCOVER on iwi0 to 255.255.255.255 port 67 interval 11
DHCPDISCOVER on iwi0 to 255.255.255.255 port 67 intervajl 12
DHCPDISCOVER on iwi0 to 255.255.255.255 port 67 interval 1
DHCPOFFERS received.
o working leases in persistent database - sleeping.

The iwi-firmware-2.3 firmware is used in both cases.

The following commands are used to configure the device:
 
        /usr/sbin/iwictl -i iwi0 -d /usr/pkg/libdata/if_iwi -m bss
        /sbin/dhclient iwi0

No error messages appear during the configuration process, however, 
"iwi0: unknown association state 9"  are noted some time thereafter.

Has someone succeeded in getting the iwi0 interface running under 
netbsd-3.99.7? Any ideas?

Any help is very much appreciated.

cheerio Berndt