From owner-freebsd-current@FreeBSD.ORG Mon Aug 29 00:52:30 2011 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F3145106566B for ; Mon, 29 Aug 2011 00:52:30 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-gx0-f182.google.com (mail-gx0-f182.google.com [209.85.161.182]) by mx1.freebsd.org (Postfix) with ESMTP id AEB268FC20 for ; Mon, 29 Aug 2011 00:52:30 +0000 (UTC) Received: by gxk28 with SMTP id 28so5282866gxk.13 for ; Sun, 28 Aug 2011 17:52:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=r9+WKgj4tJT8VqPH4KAL9idkNWO9/T2Eh6gYC48WzZM=; b=cZiYBJU4oEQPq6kCR2MwwfDv05lFAr2onJ0JMNTLiZ0M2C/4bMzfFj3d6L8U6JSESP 1Xg3+vX/o0Farv1nxtV08ITamdIP/hPwF6z/rPQfwmQ9KtADZgcVCVRsS3BTEX0Af7ss 5VFjrxSpFjWBJzC+SSayloPAAtkqC1TwhAd6I= MIME-Version: 1.0 Received: by 10.150.141.9 with SMTP id o9mr4224954ybd.258.1314579149852; Sun, 28 Aug 2011 17:52:29 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.150.145.21 with HTTP; Sun, 28 Aug 2011 17:52:29 -0700 (PDT) In-Reply-To: References: Date: Mon, 29 Aug 2011 08:52:29 +0800 X-Google-Sender-Auth: fcJ7iXQ56Ot7SHqDzS60nrk5NzE Message-ID: From: Adrian Chadd To: Garrett Cooper Content-Type: text/plain; charset=ISO-8859-1 Cc: FreeBSD Current Subject: Re: if_ath - should it be compiled without ath_hal support? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Aug 2011 00:52:31 -0000 On 29 August 2011 08:42, Garrett Cooper wrote: >> Which NIC is this for again? AR9285? > > Yup: Hm, the code which sets rs_antenna should set it to something valid (in ar5416/ar5416_recv.c) : rs->rs_antenna = MS(ads->ds_rxstatus3, AR_RxAntenna); and that's an 24 bit field. And that code needed to be called and have it return HAL_OK for it to be used. So somehow your antenna configuration at the time of the crash was .. strange. Let me see why exactly that would have such a configuration and I'll get back to you. (It may be that a simple array bounds check is enough.) Adrian Adrian