From nobody@FreeBSD.org  Sat Mar 14 15:28:43 2009
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 99589106566C
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 14 Mar 2009 15:28:43 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 6D2CA8FC08
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 14 Mar 2009 15:28:43 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id n2EFSg83090477
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 14 Mar 2009 15:28:42 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id n2EFSgBM090476;
	Sat, 14 Mar 2009 15:28:42 GMT
	(envelope-from nobody)
Message-Id: <200903141528.n2EFSgBM090476@www.freebsd.org>
Date: Sat, 14 Mar 2009 15:28:42 GMT
From: Olivier Cochard-Labbe <olivier@freenas.org>
To: freebsd-gnats-submit@FreeBSD.org
Subject: iwn drivers don't support setting country
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         132625
>Category:       kern
>Synopsis:       [iwn] iwn drivers don't support setting country
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bschmidt
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Mar 14 15:30:01 UTC 2009
>Closed-Date:    Tue Aug 03 06:48:48 UTC 2010
>Last-Modified:  Tue Aug 03 06:48:48 UTC 2010
>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:
Responsible-Changed-From-To: freebsd-bugs->freebsd-net 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Sat Mar 14 15:33:13 UTC 2009 
Responsible-Changed-Why:  
Over to maintainer(s). 

http://www.freebsd.org/cgi/query-pr.cgi?pr=132625 
State-Changed-From-To: open->feedback 
State-Changed-By: rpaulo 
State-Changed-When: Sat Oct 24 10:49:46 UTC 2009 
State-Changed-Why:  
Please try the iwn driver in FreeBSD HEAD. 


Responsible-Changed-From-To: freebsd-net->rpaulo 
Responsible-Changed-By: rpaulo 
Responsible-Changed-When: Sat Oct 24 10:49:46 UTC 2009 
Responsible-Changed-Why:  
Please try the iwn driver in FreeBSD HEAD. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=132625 
Responsible-Changed-From-To: rpaulo->bschmidt 
Responsible-Changed-By: bschmidt 
Responsible-Changed-When: Mon Feb 8 18:09:23 UTC 2010 
Responsible-Changed-Why:  
Over to me. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=132625 
State-Changed-From-To: feedback->closed 
State-Changed-By: bschmidt 
State-Changed-When: Tue Aug 3 06:48:13 UTC 2010 
State-Changed-Why:  
feedback timeout 

http://www.freebsd.org/cgi/query-pr.cgi?pr=132625 
>Unformatted:
