Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 14 Mar 2009 15:28:42 GMT
From:      Olivier Cochard-Labbe <olivier@freenas.org>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   kern/132625: iwn drivers don't support setting country
Message-ID:  <200903141528.n2EFSgBM090476@www.freebsd.org>
Resent-Message-ID: <200903141530.n2EFU1wu079522@freefall.freebsd.org>

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

>Number:         132625
>Category:       kern
>Synopsis:       iwn drivers don't support setting country
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Mar 14 15:30:01 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     Olivier Cochard-Labbe
>Release:        current
>Organization:
>Environment:
FreeBSD d630.freenas.org 8.0-CURRENT FreeBSD 8.0-CURRENT #14: Thu Mar 12 14:17:22 CET 2009     root@d630.freenas.org:/usr/obj/usr/src/sys/DellD630  amd64
>Description:
Using this 2 configurations lines in rc.conf:

wlans_iwn0="wlan0"
ifconfig_wlan0="country FR WPA DHCP"

Prevent the iwn0 card to works and generate theses errors messages in logs:

iwn0: error, INTR=2000000<SW_ERROR> STATUS=0x0
iwn0: error, INTR=2000000<SW_ERROR> STATUS=0x0
iwn0: iwn_config: configure command failed, error 35
iwn0: iwn_init_locked: could not configure device, error 35
iwn0: iwn_config: configure command failed, error 35
iwn0: iwn_init_locked: could not configure device, error 35
iwn0: iwn_transfer_firmware: timeout waiting for first alive notice, error 35
iwn0: iwn_init_locked: could not load firmware, error 35

And from information in the freebsd-current mailing, setting other country value like "US" create the same problem.

You can peraps find more information on this thread:
http://lists.freebsd.org/pipermail/freebsd-current/2009-March/004521.html

>How-To-Repeat:
By setting a country value to an iwn card.
>Fix:
This problem can be fixed by do not seting the country value:
In my case it was replacing:
ifconfig_wlan0="country FR WPA DHCP"
by:
ifconfig_wlan0="WPA DHCP"

But, this workaround generate a second problem on my laptop: It crash my FreeBSD during startup (without generating a crash dump file), that is (manualy write down) :
Fatal trap 12: page fault while in kernel mode
cpuid = 1; apic id = 01
fault virtual address = 0x28
fault code = supervisor read data, page not present
instruction pointer = 0x8:0xffffffff8044b253
stack pointer = 0x10:0xffffffffe4002ca20
frame pointer = 0x10:0xffffffff.4002cb10
code segment = base 0x0, limit 0xfffff, type 0x1b
                    = DPL 0, pres 1, long 1, def32 0, gran 1
processor eflags = interrrupts enabled, resume , IOPL = 0
current process = 12 (swi4: clock)
[thread pid 12 tid 100007 ]
stopped at igmp_fasttimo+0x296: movl 0x28(%r14), %eax

I need to reboot in single mode and comment the iwn0 configuration
line in rc.conf for using my system again.
But once booted, In can manually configure the iwn0 card without crashing the kernel.
I think that this igmp crash with wifi is reported in this actual thread too:
http://lists.freebsd.org/pipermail/freebsd-current/2009-March/004530.html

Peraps that I meet a second kernel bug :-)

>Release-Note:
>Audit-Trail:
>Unformatted:



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