Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 09 Oct 2006 17:12:48 +0200
From:      Goran Lowkrantz <goran.lowkrantz@ismobile.com>
To:        freebsd-stable@freebsd.org
Cc:        "Andrew N. Below" <defan@zenon.net>
Subject:   Re: iwi, hidden SSID and wpa_supplicant problem
Message-ID:  <12FDC4F79EE14B8357A7010E@[172.16.2.106]>
In-Reply-To: <089501c6ebb0$31848e20$970da8c0@jam.zenon.net>
References:  <089501c6ebb0$31848e20$970da8c0@jam.zenon.net>

next in thread | previous in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
I have the same problem with an IBM R50 laptop and the iwi driver. From 
dmesg

iwi0: <Intel(R) PRO/Wireless 2915ABG> mem 0xc0214000-0xc0214fff irq 9 at 
device 2.0 on pci2

I have never been able to connect to a hidden SSID without giving the 
BSSID. If I give the BSSID I can get connection but it takes a long time 
and is not reliable as the driver looses connection and failes to 
re-connect after a while.

When connected to an AP that broadcasts the SSID I still lose connection 
after a couple of hours and have to stop and restart the connection.  Here 
is the sequiece from the console:

iwi0: link state changed to DOWN
iwi0: scan stuck
iwi0: link state changed to UP
iwi0: link state changed to DOWN
iwi0: link state changed to UP
iwi0: firmware error
iwi0: link state changed to DOWN
iwi0: scan stuck
iwi0: link state changed to UP
iwi0: link state changed to DOWN
iwi0: link state changed to UP
iwi0: firmware error
iwi0: link state changed to DOWN
iwi0: scan stuck
iwi0: could not allocate firmware DMA memory
# /etc/rc.d/netif stop iwi0
Stopping network:Stopping wpa_supplicant.
Waiting for PIDS: 324.
 iwi0.
# /etc/rc.d/netif start iwi0
Starting wpa_supplicant.
DHCPDISCOVER on iwi0 to 255.255.255.255 port 67 interval 7
iwi0: link state changed to UP
DHCPDISCOVER on iwi0 to 255.255.255.255 port 67 interval 7
DHCPDISCOVER on iwi0 to 255.255.255.255 port 67 interval 19
DHCPOFFER from 10.255.253.253
DHCPREQUEST on iwi0 to 255.255.255.255 port 67
DHCPACK from 10.255.253.253
bound to 10.255.253.200 -- renewal in 300 seconds.
iwi0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        inet6 fe80::216:6fff:fe8b:a21%iwi0 prefixlen 64 scopeid 0x2
        inet 10.255.253.200 netmask 0xffffff00 broadcast 10.255.253.255
        ether 00:16:6f:8b:0a:21
        media: IEEE 802.11 Wireless Ethernet autoselect (DS/2Mbps)
        status: associated
        ssid SSID channel 11 bssid xx:xx:xx:xx:xx:xx
        authmode WPA privacy ON deftxkey UNDEF TKIP 2:128-bit txpowmax 100
        bmiss 10 protmode CTS roaming MANUAL bintval 100

The first couple of times it recovers on it self but after receiving iwi0: 
could not allocate firmware DMA memory I always have to restart the 
connection manually.

The kernel is built with option INVARIANTS and option INVARIANT_SUPPORT.

> uname -a
FreeBSD viglaf 6.2-PRERELEASE FreeBSD 6.2-PRERELEASE #62: Thu Oct  5 
10:35:57 CEST 2006     root@viglaf:/usr/obj/usr/src/sys/VIGLAF  i386


> pkg_info -Ix iwi
iwi-firmware-kmod-3.0_1 Intel PRO/Wireless 2200 Firmware Kernel Module

dmesg attached.


/glz

--On Monday, October 09, 2006 18:35:40 +0400 "Andrew N. Below" 
<defan@zenon.net> wrote:

> Hi.
>
> I have an Asus V6V (V6800) laptop with Intel wireless adapter:
> iwi0: <Intel(R) PRO/Wireless 2200BG
>
> and FreeBSD installed:
>
> defanbook# uname -v
> FreeBSD 6.2-PRERELEASE #3: Mon Oct  9 17:40:59 UTC 2006
>
> I want to connect to access point (cisco 350) with
> hidden (not broadcasted) SSID using WPA/TKIP authentication
> but still got no success.
>
> Here is my wpa_supplicant.conf:
>
> =======================
> ctrl_interface=/var/run/wpa_supplicant
> ctrl_interface_group=0
> eapol_version=1
> ap_scan=1
> fast_reauth=1
>
> network={
>         ssid="MY-SSID"
>         scan_ssid=1
>         key_mgmt=WPA-PSK
>         proto=WPA
>         pairwise=TKIP
>         group=TKIP
>         psk="PASSPHRASE"
>         phase2="auth=MSCHAPV2"
> }
> =======================
>
> Here is wpa_supplicant output:
>
> defanbook# wpa_supplicant -ddKt -i iwi0 -c /etc/wpa_supplicant.conf
> Oct 09 18:24:41.247941: Initializing interface 'iwi0' conf
> '/etc/wpa_supplicant.conf' driver 'default' ctrl_interface 'N/A'
> Oct 09 18:24:41.248083: Configuration file '/etc/wpa_supplicant.conf' ->
> '/etc/wpa_supplicant.conf'
> Oct 09 18:24:41.248094: Reading configuration file
> '/etc/wpa_supplicant.conf'
> Oct 09 18:24:41.248129: ctrl_interface='/var/run/wpa_supplicant'
> Oct 09 18:24:41.248473: ctrl_interface_group=0
> Oct 09 18:24:41.248490: eapol_version=1
> Oct 09 18:24:41.248497: ap_scan=1
> Oct 09 18:24:41.248503: fast_reauth=1
> Oct 09 18:24:41.248510: Line: 7 - start of a new network block
> Oct 09 18:24:41.248520: ssid - hexdump_ascii(len=11):
> [..]
> Oct 09 18:24:41.248535: scan_ssid=1 (0x1)
> Oct 09 18:24:41.248552: key_mgmt: 0x2
> Oct 09 18:24:41.248559: proto: 0x1
> Oct 09 18:24:41.248567: pairwise: 0x8
> Oct 09 18:24:41.248573: group: 0x8
> Oct 09 18:24:41.248586: PSK (ASCII passphrase) - hexdump_ascii(len=9):
> [..]
> Oct 09 18:24:41.248601: phase2 - hexdump_ascii(len=13):
>      61 75 74 68 3d 4d 53 43 48 41 50 56 32            auth=MSCHAPV2
> Oct 09 18:24:41.269142: PSK (from passphrase) - hexdump(len=32): c4 47 52
> 5b 8c 7d 47 21 1a bc 2f 75 dd 1d 69 c6 aa c8 33 02 23 70 e1 0a e3 6d be
> 5b 1f 1f 92 d9
> Oct 09 18:24:41.269174: Priority group 0
> Oct 09 18:24:41.269181:    id=0 ssid='MY-SSID'
> Oct 09 18:24:41.269190: Initializing interface (2) 'iwi0'
> Oct 09 18:24:41.271574: EAPOL: SUPP_PAE entering state DISCONNECTED
> Oct 09 18:24:41.271584: EAPOL: KEY_RX entering state NO_KEY_RECEIVE
> Oct 09 18:24:41.271590: EAPOL: SUPP_BE entering state INITIALIZE
> Oct 09 18:24:41.271597: EAP: EAP entering state DISABLED
> Oct 09 18:24:41.271636: EAPOL: External notification - portEnabled=0
> Oct 09 18:24:41.271657: EAPOL: External notification - portValid=0
> Oct 09 18:24:41.271918: Own MAC address: 00:12:f0:3d:cd:58
> Oct 09 18:24:41.271929: wpa_driver_bsd_set_wpa: enabled=1
> Oct 09 18:24:41.271936: wpa_driver_bsd_set_wpa_internal: wpa=3 privacy=1
> Oct 09 18:24:41.271946: wpa_driver_bsd_del_key: keyidx=0
> Oct 09 18:24:41.271954: wpa_driver_bsd_del_key: keyidx=1
> Oct 09 18:24:41.271962: wpa_driver_bsd_del_key: keyidx=2
> Oct 09 18:24:41.271969: wpa_driver_bsd_del_key: keyidx=3
> Oct 09 18:24:41.271977: wpa_driver_bsd_set_countermeasures: enabled=0
> Oct 09 18:24:41.271984: wpa_driver_bsd_set_drop_unencrypted: enabled=1
> Oct 09 18:24:41.271994: Setting scan request: 0 sec 100000 usec
> Oct 09 18:24:41.272118: Added interface iwi0
> Oct 09 18:24:41.372226: State: DISCONNECTED -> SCANNING
> Oct 09 18:24:41.372235: Starting AP scan (specific SSID)
> Oct 09 18:24:41.372242: Scan SSID - hexdump_ascii(len=11):
> [MY-SSID]
> Oct 09 18:24:43.021948: Received 0 bytes of scan results (4 BSSes)
> Oct 09 18:24:43.021982: Scan results: 4
> Oct 09 18:24:43.021992: Selecting BSS from priority group 0
> Oct 09 18:24:43.021998: 0: 00:07:0e:b8:d8:ee ssid='' wpa_ie_len=26
> rsn_ie_len=0 caps=0x31
> Oct 09 18:24:43.022008:    skip - SSID mismatch
> Oct 09 18:24:43.022014: 1: 02:3f:2d:21:0e:c2 ssid='ANY' wpa_ie_len=0
> rsn_ie_len=0 caps=0x2
> Oct 09 18:24:43.022023:    skip - no WPA/RSN IE
> Oct 09 18:24:43.022029: 2: 00:60:b3:d4:0d:76 ssid='ADSL_Wireless'
> wpa_ie_len=0 rsn_ie_len=0 caps=0x61
> Oct 09 18:24:43.022038:    skip - no WPA/RSN IE
> Oct 09 18:24:43.022044: 3: 00:14:6c:55:24:4a ssid='' wpa_ie_len=0
> rsn_ie_len=0 caps=0x11
> Oct 09 18:24:43.022052:    skip - no WPA/RSN IE
> Oct 09 18:24:43.022058: No suitable AP found.
> Oct 09 18:24:43.022066: Setting scan request: 5 sec 0 usec
> Oct 09 18:24:48.023226: Starting AP scan (broadcast SSID)
> Oct 09 18:24:49.501060: Received 0 bytes of scan results (2 BSSes)
> Oct 09 18:24:49.501070: Scan results: 2
> Oct 09 18:24:49.501077: Selecting BSS from priority group 0
> Oct 09 18:24:49.501083: 0: 00:07:0e:b8:d8:ee ssid='' wpa_ie_len=26
> rsn_ie_len=0 caps=0x31
> Oct 09 18:24:49.501092:    skip - SSID mismatch
> Oct 09 18:24:49.501098: 1: 00:14:6c:55:24:4a ssid='' wpa_ie_len=0
> rsn_ie_len=0 caps=0x11
> Oct 09 18:24:49.501106:    skip - no WPA/RSN IE
> Oct 09 18:24:49.501112: No suitable AP found.
> Oct 09 18:24:49.501118: Setting scan request: 5 sec 0 usec
> ^COct 09 18:24:52.082178: CTRL-EVENT-TERMINATING - signal 2 received
> Oct 09 18:24:52.082190: Removing interface iwi0
> Oct 09 18:24:52.082197: State: SCANNING -> DISCONNECTED
> Oct 09 18:24:52.082204: No keys have been configured - skip key clearing
> Oct 09 18:24:52.082210: EAPOL: External notification - portEnabled=0
> Oct 09 18:24:52.082282: EAPOL: External notification - portValid=0
> Oct 09 18:24:52.082315: wpa_driver_bsd_set_wpa: enabled=0
> Oct 09 18:24:52.082321: wpa_driver_bsd_set_wpa_internal: wpa=0 privacy=0
> Oct 09 18:24:52.082333: wpa_driver_bsd_set_drop_unencrypted: enabled=0
> Oct 09 18:24:52.082341: wpa_driver_bsd_set_countermeasures: enabled=0
> Oct 09 18:24:52.082348: No keys have been configured - skip key clearing
> Oct 09 18:24:52.082463: wpa_driver_bsd_set_wpa_internal: wpa=0 privacy=0
> Oct 09 18:24:52.082851: Cancelling scan request
>
> As we can see, it just repeats specific and broadcast SSID scan
> in cycle, but always says "No suitable AP found" and "SSID mismatch".
> While this process is running I can see more and more
> "Number of frames with a bad CRC receive" with the iwicontrol utility.
>
> On another FreeBSD box with 6.1-release and same version of
> wpa_supplicant, but with another USB wireless device (ural) all works
> fine.
>
> Wireless connection in winxp on this laptop works fine too.
>
> Any ideas?
>
> --
> Andrew N. Below
> Zenon N.S.P.
>
> _______________________________________________
> freebsd-stable@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-stable
> To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org"



-- 
................................................... the future isMobile

  Goran Lowkrantz <goran.lowkrantz@ismobile.com>
  System Architect, isMobile, Aurorum 2, S-977 75 Lule¥, Sweden
  Phone: +46(0)920-75559
  Mobile: +46(0)70-587 87 82 Fax: +46(0)70-615 87 82

http://www.ismobile.com ...............................................

[-- Attachment #2 --]
Copyright (c) 1992-2006 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
	The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 6.2-PRERELEASE #62: Thu Oct  5 10:35:57 CEST 2006
    root@viglaf:/usr/obj/usr/src/sys/VIGLAF
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: Intel(R) Pentium(R) M processor 1500MHz (1498.73-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0x695  Stepping = 5
  Features=0xa7e9f9bf<FPU,VME,DE,PSE,TSC,MSR,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,TM,PBE>
  Features2=0x180<EST,TM2>
real memory  = 1609957376 (1535 MB)
avail memory = 1563938816 (1491 MB)
wlan: mac acl policy registered
kbd1 at kbdmux0
acpi0: <IBM TP-1R> on motherboard
acpi_ec0: <Embedded Controller: GPE 0x1c, ECDT> port 0x62,0x66 on acpi0
acpi0: Power Button (fixed)
Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000
acpi_timer0: <24-bit timer at 3.579545MHz> port 0x1008-0x100b on acpi0
cpu0: <ACPI CPU> on acpi0
est0: <Enhanced SpeedStep Frequency Control> on cpu0
p4tcc0: <CPU Frequency Thermal Control> on cpu0
acpi_lid0: <Control Method Lid Switch> on acpi0
acpi_button0: <Sleep Button> on acpi0
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
agp0: <Intel 82855 host to AGP bridge> mem 0xd0000000-0xdfffffff at device 0.0 on pci0
pcib1: <ACPI PCI-PCI bridge> at device 1.0 on pci0
pci1: <ACPI PCI bus> on pcib1
drm0: <ATI Radeon Lf RV250 Mobility 9000 M9 / FireMV 2400 PCI> port 0x3000-0x30ff mem 0xe0000000-0xe7ffffff,0xc0100000-0xc010ffff irq 11 at device 0.0 on pci1
info: [drm] AGP at 0xd0000000 256MB
info: [drm] Initialized radeon 1.24.0 20060225
uhci0: <Intel 82801DB (ICH4) USB controller USB-A> port 0x1800-0x181f irq 11 at device 29.0 on pci0
uhci0: [GIANT-LOCKED]
usb0: <Intel 82801DB (ICH4) USB controller USB-A> on uhci0
usb0: USB revision 1.0
uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhci1: <Intel 82801DB (ICH4) USB controller USB-B> port 0x1820-0x183f irq 11 at device 29.1 on pci0
uhci1: [GIANT-LOCKED]
usb1: <Intel 82801DB (ICH4) USB controller USB-B> on uhci1
usb1: USB revision 1.0
uhub1: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
uhci2: <Intel 82801DB (ICH4) USB controller USB-C> port 0x1840-0x185f irq 9 at device 29.2 on pci0
uhci2: [GIANT-LOCKED]
usb2: <Intel 82801DB (ICH4) USB controller USB-C> on uhci2
usb2: USB revision 1.0
uhub2: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub2: 2 ports with 2 removable, self powered
ehci0: <Intel 82801DB/L/M (ICH4) USB 2.0 controller> mem 0xc0000000-0xc00003ff irq 11 at device 29.7 on pci0
ehci0: [GIANT-LOCKED]
usb3: EHCI version 1.0
usb3: companion controllers, 2 ports each: usb0 usb1 usb2
usb3: <Intel 82801DB/L/M (ICH4) USB 2.0 controller> on ehci0
usb3: USB revision 2.0
uhub3: Intel EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
uhub3: 6 ports with 6 removable, self powered
uhub4: vendor 0x04b3 product 0x4481, class 9/0, rev 2.00/0.00, addr 2
uhub4: multiple transaction translators
uhub4: 4 ports with 4 removable, self powered
pcib2: <ACPI PCI-PCI bridge> at device 30.0 on pci0
pci2: <ACPI PCI bus> on pcib2
cbb0: <PCI-CardBus Bridge> mem 0xb0000000-0xb0000fff irq 11 at device 0.0 on pci2
cardbus0: <CardBus bus> on cbb0
pccard0: <16-bit PCCard bus> on cbb0
fwohci0: <1394 Open Host Controller Interface> mem 0xc0215000-0xc02157ff,0xc0210000-0xc0213fff irq 9 at device 0.2 on pci2
fwohci0: OHCI version 1.10 (ROM=0)
fwohci0: No. of Isochronous channels is 4.
fwohci0: EUI64 00:06:1b:03:20:04:b0:33
fwohci0: Phy 1394a available S400, 2 ports.
fwohci0: Link S400, max_rec 2048 bytes.
firewire0: <IEEE1394(FireWire) bus> on fwohci0
sbp0: <SBP-2/SCSI over FireWire> on firewire0
fwohci0: Initiate bus reset
fwohci0: node_id=0xc800ffc0, gen=1, CYCLEMASTER mode
firewire0: 1 nodes, maxhop <= 0, cable IRM = 0 (me)
firewire0: bus manager 0 (me)
em0: <Intel(R) PRO/1000 Network Connection Version - 6.1.4> port 0x8000-0x803f mem 0xc0220000-0xc023ffff,0xc0200000-0xc020ffff irq 11 at device 1.0 on pci2
em0: Ethernet address: 00:0d:60:89:36:e8
iwi0: <Intel(R) PRO/Wireless 2915ABG> mem 0xc0214000-0xc0214fff irq 9 at device 2.0 on pci2
iwi0: Ethernet address: 00:16:6f:8b:0a:21
pcib3: <ACPI PCI-PCI bridge> at device 3.0 on pci2
pci9: <ACPI PCI bus> on pcib3
atapci0: <CMD 648 UDMA66 controller> port 0x9020-0x9027,0x9014-0x9017,0x9018-0x901f,0x9010-0x9013,0x9000-0x900f irq 5 at device 1.0 on pci9
ata2: <ATA channel 0> on atapci0
ata3: <ATA channel 1> on atapci0
cbb1: <TI1420 PCI-CardBus Bridge> mem 0xb2000000-0xb2000fff irq 9 at device 2.0 on pci9
cardbus1: <CardBus bus> on cbb1
pccard1: <16-bit PCCard bus> on cbb1
cbb2: <TI1420 PCI-CardBus Bridge> mem 0xb3000000-0xb3000fff irq 9 at device 2.1 on pci9
cardbus2: <CardBus bus> on cbb2
pccard2: <16-bit PCCard bus> on cbb2
isab0: <PCI-ISA bridge> at device 31.0 on pci0
isa0: <ISA bus> on isab0
atapci1: <Intel ICH4 UDMA100 controller> port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0x1860-0x186f at device 31.1 on pci0
ata0: <ATA channel 0> on atapci1
ata1: <ATA channel 1> on atapci1
ichsmb0: <Intel 82801DC (ICH4) SMBus controller> port 0x1880-0x189f irq 5 at device 31.3 on pci0
ichsmb0: [GIANT-LOCKED]
smbus0: <System Management Bus> on ichsmb0
smb0: <SMBus generic I/O> on smbus0
pcm0: <Intel ICH4 (82801DB)> port 0x1c00-0x1cff,0x18c0-0x18ff mem 0xc0000c00-0xc0000dff,0xc0000800-0xc00008ff irq 5 at device 31.5 on pci0
pcm0: <Analog Devices AD1981B AC97 Codec>
pci0: <simple comms, generic modem> at device 31.6 (no driver attached)
acpi_tz0: <Thermal Zone> on acpi0
atkbdc0: <Keyboard controller (i8042)> port 0x60,0x64 irq 1 on acpi0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
psm0: <PS/2 Mouse> flags 0x2000 irq 12 on atkbdc0
psm0: [GIANT-LOCKED]
psm0: model MouseMan+, device ID 0
fdc0: <floppy drive controller (FDE)> port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on acpi0
fdc0: [FAST]
sio0: configured irq 4 not in bitmap of probed irqs 0
sio0: port may not be enabled
sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0
sio0: type 8250 or not responding
sio1: configured irq 3 not in bitmap of probed irqs 0
sio1: port may not be enabled
battery0: <ACPI Control Method Battery> on acpi0
acpi_acad0: <AC Adapter> on acpi0
acpi_ibm0: <IBM ThinkPad ACPI Extras> on acpi0
sio1: configured irq 3 not in bitmap of probed irqs 0
sio1: port may not be enabled
smapi0: Unable to allocate memory resource.
pmtimer0 on isa0
orm0: <ISA Option ROMs> at iomem 0xc0000-0xcffff,0xd0000-0xd0fff,0xd1000-0xd1fff,0xdc000-0xdffff,0xe0000-0xeffff on isa0
ppc0: parallel port not found.
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
Timecounter "TSC" frequency 1498734416 Hz quality 800
Timecounters tick every 1.000 msec
ipfw2 (+ipv6) initialized, divert loadable, rule-based forwarding disabled, default to deny, logging disabled
ata4: <SanDisk SDP> at port 0x4000-0x400f irq 11 function 0 config 1 on pccard0
ad0: 76319MB <Seagate ST980825A 3.04> at ata0-master UDMA100
acd0: CDRW <DW-225/2.2A> at ata1-master UDMA33
ad8: 245MB <SanDisk SDCFB-256 Rev 0.00> at ata4-master PIO4
cd0 at ata1 bus 0 target 0 lun 0
cd0: <TEAC DW-225 2.2A> Removable CD-ROM SCSI-0 device 
cd0: 33.000MB/s transfers
cd0: Attempt to query device size failed: NOT READY, Medium not present
Trying to mount root from ufs:/dev/ad0s1a

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