From owner-cvs-src-old@FreeBSD.ORG Mon Dec 6 19:06:04 2010 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 129491065673 for ; Mon, 6 Dec 2010 19:06:04 +0000 (UTC) (envelope-from bschmidt@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 930168FC20 for ; Mon, 6 Dec 2010 19:06:03 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.4/8.14.4) with ESMTP id oB6J63ij026033 for ; Mon, 6 Dec 2010 19:06:03 GMT (envelope-from bschmidt@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.4/8.14.4/Submit) id oB6J63Bv026032 for cvs-src-old@freebsd.org; Mon, 6 Dec 2010 19:06:03 GMT (envelope-from bschmidt@repoman.freebsd.org) Message-Id: <201012061906.oB6J63Bv026032@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to bschmidt@repoman.freebsd.org using -f From: Bernhard Schmidt Date: Mon, 6 Dec 2010 19:05:44 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/dev/wpi if_wpi.c X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Dec 2010 19:06:04 -0000 bschmidt 2010-12-06 19:05:44 UTC FreeBSD src repository Modified files: sys/dev/wpi if_wpi.c Log: SVN rev 216238 on 2010-12-06 19:05:44Z by bschmidt Fix scanning after loosing a connection. The firmware assumes that as long as an association ID is set any scan is supposed to be a background scan. This implies that the firmware will switch back to the associated channel after a certain threshold, though, we are not notified about that. We currently catch this case by a timer which will reset the firmware after a 'scan timeout', though, upper layers are not notified about that and will simply hang until manual intervention. Fix this by resetting the firmware's knowledge about any association on RUN -> ASSOC and !INIT -> SCAN transitions. Tested by: Zhihao Yuan MFC after: 1 week Revision Changes Path 1.36 +19 -2 src/sys/dev/wpi/if_wpi.c