From nobody@FreeBSD.org  Sun Jan 22 06:06:20 2012
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 2CEB2106564A
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 22 Jan 2012 06:06:20 +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 120178FC16
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 22 Jan 2012 06:06:20 +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 q0M66J4Q061572
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 22 Jan 2012 06:06:19 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.4/8.14.4/Submit) id q0M66Jex061571;
	Sun, 22 Jan 2012 06:06:19 GMT
	(envelope-from nobody)
Message-Id: <201201220606.q0M66Jex061571@red.freebsd.org>
Date: Sun, 22 Jan 2012 06:06:19 GMT
From: Matthias Apitz <guru@unixarea.de>
To: freebsd-gnats-submit@FreeBSD.org
Subject: iwi0: <Intel(R) PRO/Wireless 2200BG> UP/DOWN in WPA-PSK mode
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         164365
>Category:       kern
>Synopsis:       [iwi] iwi0: <Intel(R) PRO/Wireless 2200BG> UP/DOWN in WPA-PSK mode
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-wireless
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jan 22 06:10:10 UTC 2012
>Closed-Date:    
>Last-Modified:  Sun Jan 22 17:00:21 UTC 2012
>Originator:     Matthias Apitz
>Release:        9-CURRENT r214444
>Organization:
>Environment:
$ uname -a
FreeBSD perlach 9.0-CURRENT FreeBSD 9.0-CURRENT #1 r214444: Thu Oct 28 10:56:32 CEST 2010     guru@current.Sisis.de:/usr/home/guru/myThings/FreeBSD/9-CURRENT/obj/usr/home/guru/myThings/FreeBSD/9-CURRENT/src/sys/GENERIC  i386
>Description:
I've changed my AP at home from WEP to WPA2 and since this one of my                                
stations facing after some while (~90 minutes) the problem of UP and                                
DOWN; in /var/log/messages it looks like this:                                                      
                                                                                                    
Jan 21 22:00:09 Perlach wpa_supplicant[485]: CTRL-EVENT-DISCONNECTED - Disconnect event - remove keys                                                                                               
Jan 21 22:00:09 Perlach kernel: wlan0: link state changed to DOWN                                   
Jan 21 22:00:09 Perlach wpa_supplicant[485]: Trying to associate with 00:13:f7:0d:08:48 (SSID='tarara' freq=2442 MHz)                                                                      
Jan 21 22:00:09 Perlach wpa_supplicant[485]: Associated with 00:13:f7:0d:08:48                      
Jan 21 22:00:09 Perlach kernel: wlan0: link state changed to UP                                     
Jan 21 22:00:12 Perlach wpa_supplicant[485]: WPA: Key negotiation completed with 00:13:f7:0d:08:48 [PTK=CCMP GTK=CCMP]                                                                                
Jan 21 22:00:12 Perlach wpa_supplicant[485]: CTRL-EVENT-CONNECTED - Connection to 00:13:f7:0d:08:48 completed (reauth) [id=0 id_str=]                                                                  
Jan 21 22:00:18 Perlach wpa_supplicant[485]: CTRL-EVENT-DISCONNECTED - Disconnect event - remove keys                                                                                               
Jan 21 22:00:18 Perlach kernel: wlan0: link state changed to DOWN                                   
Jan 21 22:00:18 Perlach wpa_supplicant[485]: Trying to associate with 00:13:f7:0d:08:48 (SSID='tarara' freq=2442 MHz) 

The system runs 9-CURRENT from October 2010 (r214444) and did not show                              
this problem in WEP mode; wpa_supplicant lines are simple:                                          
                                                                                                    
ctrl_interface=/var/run/wpa_supplicant                                                              
ctrl_interface_group=wheel                                                                          
eapol_version=1                                                                                     
ap_scan=1                                                                                           
fast_reauth=1                                                                                       
                                                                                                    
network={                                                                                           
        ssid="tarara"                                                                               
        key_mgmt=WPA-PSK                                                                            
        psk="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"                                               
}

Killing the dhclient(8) processes and restart                                                       
                                                                                                    
# dhclient wlan0                                                                                    
                                                                                                    
helps to get out of this loop of UP/DOWN.

>How-To-Repeat:
Work and wait until problem occurs.
>Fix:


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->freebsd-wireless 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Sun Jan 22 06:27:21 UTC 2012 
Responsible-Changed-Why:  
Over to maintainer(s). 

http://www.freebsd.org/cgi/query-pr.cgi?pr=164365 

From: Matthias Apitz <guru@unixarea.de>
To: bug-followup@FreeBSD.org, Matthias Apitz <guru@unixarea.de>
Cc:  
Subject: Re: kern/164365: iwi0: <Intel(R) PRO/Wireless 2200BG> UP/DOWN in
 WPA-PSK mode
Date: Sun, 22 Jan 2012 17:17:47 +0100

 Today I faced another incident and while this UP/DOWN loop occurs
 I see in the messages of the other laptop connected to the same AP:
 
 Jan 22 14:32:20 tinyCurrent wpa_supplicant[1612]: WPA: Group rekeying completed with 00:13:f7:0d:08:48 [GTK=CCMP]
 Jan 22 14:32:52 tinyCurrent last message repeated 10 times
 Jan 22 14:34:55 tinyCurrent last message repeated 39 times
 Jan 22 14:36:16 tinyCurrent last message repeated 19 times
 Jan 22 14:36:18 tinyCurrent wpa_supplicant[1612]: WPA: AES unwrap failed - could not decrypt EAPOL-Key key data
 Jan 22 14:36:25 tinyCurrent wpa_supplicant[1612]: WPA: Group rekeying completed with 00:13:f7:0d:08:48 [GTK=CCMP]
 Jan 22 14:36:40 tinyCurrent last message repeated 4 times
 
 In the AP the interval of "Group Key Re_Keying" is disabled; I will
 change this now to 12 hours ....
 
 	matthias
>Unformatted:
