From owner-svn-src-user@FreeBSD.ORG Mon Sep 12 15:01:33 2011 Return-Path: Delivered-To: svn-src-user@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 07046106566C; Mon, 12 Sep 2011 15:01:33 +0000 (UTC) (envelope-from adrian@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id EB8908FC13; Mon, 12 Sep 2011 15:01:32 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p8CF1WPZ030911; Mon, 12 Sep 2011 15:01:32 GMT (envelope-from adrian@svn.freebsd.org) Received: (from adrian@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p8CF1WDq030909; Mon, 12 Sep 2011 15:01:32 GMT (envelope-from adrian@svn.freebsd.org) Message-Id: <201109121501.p8CF1WDq030909@svn.freebsd.org> From: Adrian Chadd Date: Mon, 12 Sep 2011 15:01:32 +0000 (UTC) To: src-committers@freebsd.org, svn-src-user@freebsd.org X-SVN-Group: user MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r225512 - user/adrian/if_ath_tx/sys/dev/ath X-BeenThere: svn-src-user@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the experimental " user" src tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Sep 2011 15:01:33 -0000 Author: adrian Date: Mon Sep 12 15:01:32 2011 New Revision: 225512 URL: http://svn.freebsd.org/changeset/base/225512 Log: Fix some debugging - don't deference tap if it's NULL. This will occur on non-11n NICs, like the AR5212 I just tried this codebase on. Modified: user/adrian/if_ath_tx/sys/dev/ath/if_ath_tx.c Modified: user/adrian/if_ath_tx/sys/dev/ath/if_ath_tx.c ============================================================================== --- user/adrian/if_ath_tx/sys/dev/ath/if_ath_tx.c Mon Sep 12 14:39:03 2011 (r225511) +++ user/adrian/if_ath_tx/sys/dev/ath/if_ath_tx.c Mon Sep 12 15:01:32 2011 (r225512) @@ -2253,7 +2253,7 @@ ath_tx_tid_drain(struct ath_softc *sc, s __func__, ni, tid->tid, txq->axq_depth, txq->axq_aggr_depth, tid->sched, tid->paused, tid->hwq_depth, tid->incomp, tid->baw_head, - tid->baw_tail, tap->txa_start, + tid->baw_tail, tap == NULL ? -1 : tap->txa_start, ni->ni_txseqs[tid->tid]); t = 1; }