From nobody@FreeBSD.org  Fri Dec  9 21:57:28 2011
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 934911065673
	for <freebsd-gnats-submit@FreeBSD.org>; Fri,  9 Dec 2011 21:57:28 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id 6A23E8FC0C
	for <freebsd-gnats-submit@FreeBSD.org>; Fri,  9 Dec 2011 21:57:28 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.4/8.14.4) with ESMTP id pB9LvRJV026833
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 9 Dec 2011 21:57:27 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.4/8.14.4/Submit) id pB9LvRfs026832;
	Fri, 9 Dec 2011 21:57:27 GMT
	(envelope-from nobody)
Message-Id: <201112092157.pB9LvRfs026832@red.freebsd.org>
Date: Fri, 9 Dec 2011 21:57:27 GMT
From: Trois Six <trois.six@free.fr>
To: freebsd-gnats-submit@FreeBSD.org
Subject: [iwn] fatal firmware error on 9.0-RC3
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         163154
>Category:       kern
>Synopsis:       [iwn] fatal firmware error on 9.0-RC3
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Dec 09 22:00:28 UTC 2011
>Closed-Date:    
>Last-Modified:  Sun Feb 19 09:30:01 UTC 2012
>Originator:     Trois Six
>Release:        9.0-RC3-amd64
>Organization:
>Environment:
FreeBSD TFR12PERR.telindus.intra 9.0-RC3 FreeBSD 9.0-RC3 #0: Sun Dec  4 08:56:36 UTC 2011     root@farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  amd64
>Description:
My network card : iwn0: <Intel(R) Centrino(R) Ultimate-N 6300> mem 0xd3300000-0xd3301fff irq 19 at device 0.0 on pci68

/etc/rc.conf contains the following:
wlans_iwn0="wlan0"
ifconfig_wlan0="WPA DHCP"

And /etc/wpa_supplicant.conf has the appropriate settings for some access points :
network={
	ssid="myssid"
	psk=myasciikey
}

When the system boots or when I start the interface with netif, I have a fatal firmware error and I can't use my card. I tried to disable the bgscan but it didn't change anything :

wlan0: Ethernet address: 00:24:d7:XX:XX:XX
iwn0: iwn_intr: fatal firmware error
firmware error log:
  error type      = "SYSASSERT" (0x00000005)
  program counter = 0x00003C2C
  source line     = 0x00000580
  error data      = 0x0000000100000000
  branch link     = 0x00003C2800003C28
  interrupt link  = 0x0000153200000000
  time            = 183809626
driver status:
  tx ring  0: qid=0  cur=0   queued=0  
  tx ring  1: qid=1  cur=0   queued=0  
  tx ring  2: qid=2  cur=0   queued=0  
  tx ring  3: qid=3  cur=2   queued=0  
  tx ring  4: qid=4  cur=64  queued=0  
  tx ring  5: qid=5  cur=0   queued=0  
  tx ring  6: qid=6  cur=0   queued=0  
  tx ring  7: qid=7  cur=0   queued=0  
  tx ring  8: qid=8  cur=0   queued=0  
  tx ring  9: qid=9  cur=0   queued=0  
  tx ring 10: qid=10 cur=0   queued=0  
  tx ring 11: qid=11 cur=0   queued=0  
  tx ring 12: qid=12 cur=0   queued=0  
  tx ring 13: qid=13 cur=0   queued=0  
  tx ring 14: qid=14 cur=0   queued=0  
  tx ring 15: qid=15 cur=0   queued=0  
  tx ring 16: qid=16 cur=0   queued=0  
  tx ring 17: qid=17 cur=0   queued=0  
  tx ring 18: qid=18 cur=0   queued=0  
  tx ring 19: qid=19 cur=0   queued=0  
  rx ring: cur=14

the link changes from DOWN to UP to DOWN.

I have seen that after every netif start I have two wpa_supplicant process ?
>How-To-Repeat:
At every boot or netif start
>Fix:


>Release-Note:
>Audit-Trail:

From: Alan Braslau <alan.braslau@cea.fr>
To: bug-followup@FreeBSD.org, trois.six@free.fr
Cc:  
Subject: Re: kern/163154: [iwn] fatal firmware error on 9.0-RC3
Date: Sun, 19 Feb 2012 09:58:47 +0100

 Bug confirmed under 9.0-RELEASE
 iwn0: <Intel(R) Ultimate N WiFi Link 5300> mem 0xf1ffe000-0xf1ffffff irq 17 at device 0.0 on pci12
 
 I get the exact same behavior and error messages as reported if I attempt to connect to a 5GHz ssid, however, this wireless functions correctly using a ssid over a 11g channel (2412 MHz).
 
 Alan
>Unformatted:
