From owner-cvs-src-old@FreeBSD.ORG Tue Oct 12 17:12:50 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 95D69106580E for ; Tue, 12 Oct 2010 17:12:50 +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 7AE6E8FC13 for ; Tue, 12 Oct 2010 17:12:50 +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 o9CHCoZJ000695 for ; Tue, 12 Oct 2010 17:12:50 GMT (envelope-from bschmidt@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.4/8.14.4/Submit) id o9CHCox5000694 for cvs-src-old@freebsd.org; Tue, 12 Oct 2010 17:12:50 GMT (envelope-from bschmidt@repoman.freebsd.org) Message-Id: <201010121712.o9CHCox5000694@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to bschmidt@repoman.freebsd.org using -f From: Bernhard Schmidt Date: Tue, 12 Oct 2010 17:12:35 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: RELENG_7 Subject: cvs commit: src/sys/dev/iwi if_iwi.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: Tue, 12 Oct 2010 17:12:50 -0000 bschmidt 2010-10-12 17:12:35 UTC FreeBSD src repository Modified files: (Branch: RELENG_7) sys/dev/iwi if_iwi.c Log: SVN rev 213734 on 2010-10-12 17:12:35Z by bschmidt When bringing the interface down we clear the command queue but do not reset the sc_cmd_cur and sc_cmd_next indices. If there are still pending commands while clearing the queue those two indices are off by at least one. This leads to no commands being sent to the firmware until the queue overruns. Fix this by also resetting the indices. This is a direct commit as the code does not exist in head. Revision Changes Path 1.57.2.3 +1 -0 src/sys/dev/iwi/if_iwi.c