From owner-freebsd-bugs@FreeBSD.ORG Wed May 31 14:50:16 2006 Return-Path: X-Original-To: freebsd-bugs@hub.freebsd.org Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C72D616AFAB for ; Wed, 31 May 2006 14:50:16 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id D1B8A43D53 for ; Wed, 31 May 2006 14:50:15 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k4VEoFMq052710 for ; Wed, 31 May 2006 14:50:15 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k4VEoF2d052709; Wed, 31 May 2006 14:50:15 GMT (envelope-from gnats) Resent-Date: Wed, 31 May 2006 14:50:15 GMT Resent-Message-Id: <200605311450.k4VEoF2d052709@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Kevin Oberman Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 236FE16A6DB for ; Wed, 31 May 2006 14:43:11 +0000 (UTC) (envelope-from oberman@slan.es.net) Received: from slan.es.net (slan-lvk.es.net [198.128.4.60]) by mx1.FreeBSD.org (Postfix) with ESMTP id E6DCD43D48 for ; Wed, 31 May 2006 14:43:10 +0000 (GMT) (envelope-from oberman@slan.es.net) Received: by slan.es.net (Postfix, from userid 9381) id 780475C50; Wed, 31 May 2006 07:43:10 -0700 (PDT) Message-Id: <20060531144310.780475C50@slan.es.net> Date: Wed, 31 May 2006 07:43:10 -0700 (PDT) From: Kevin Oberman To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: bin/98218: wpa_supplicant blacklist not working X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Kevin Oberman List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 May 2006 14:50:20 -0000 >Number: 98218 >Category: bin >Synopsis: wpa_supplicant blacklist not working >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed May 31 14:50:15 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Kevin Oberman >Release: FreeBSD 7.0-CURRENT i386 >Organization: ESnet-The Energy Sciences Network >Environment: System: FreeBSD slan.es.net 7.0-CURRENT FreeBSD 7.0-CURRENT #15: Tue May 23 14:19:22 PDT 2006 root@slan.es.net:/usr/obj/usr/src/sys/IBM-T43 i386 >Description: If multiple BSSes match an entry in the wpa_supplicant.conf file, it is possible that the BSS chosen will not associate, but instead of blacklisting the BSS and trying another, the wpa_supplicant continues to try to attach to the unusable BSS with a new attempt every 10 seconds. This was observed in a non-secured situation. That is there were multiple BSSes showing in the scan and the first had a very low signal strength. The supplicant would try to associate with that BSS, but could not. ifconfig always showed the interface with no carrier. I believe that the supplicant should have blacklisted that BSS and tried another on the list, but would keep trying the same one over and over. Restarting the supplicant would cause a new list of BSSes to be generated which was identical to the first except for order. If the first BSS on the list proved functional, association would take place and things progressed normally. If the first entry would not associate, the same thing, re-attempts to associate with the same BSS every 10 seconds would repeat. For the record, the configuration file in question was my generic wireless of: network={ ssid="" key_mgmt=NONE priority=0 } My wireless card is an Atheros 5212, although inspection of the code leads me to believe that this is not related to the card chosen. >How-To-Repeat: Attempt to use the wpa_supplicant in an environment where several APs are available, some of which have poor signals and will not associate. >Fix: Modify the supplicant to blacklist a BSS that fails to associate so that other available APs will be tried. >Release-Note: >Audit-Trail: >Unformatted: