Date: Mon, 29 Aug 2011 08:52:29 +0800 From: Adrian Chadd <adrian@freebsd.org> To: Garrett Cooper <yanegomi@gmail.com> Cc: FreeBSD Current <freebsd-current@freebsd.org> Subject: Re: if_ath - should it be compiled without ath_hal support? Message-ID: <CAJ-VmonKYYpVE-nVvZywWedZ-cNKqowx8mr5GdT%2B2b5SOHq5=w@mail.gmail.com> In-Reply-To: <CAGH67wT_JT8zJ1T%2BOMsdOthmYdeKvePvKnt5DRQ%2BqW1h8NDgqw@mail.gmail.com> References: <CAGH67wRz6X=ZU0AZFM1G-fo=NKHNVV7SD547KD-BBp4VOofDaw@mail.gmail.com> <CAJ-VmonnTxoWMbRE-PqtoDH1_16OpwK0Jw9hZ6WVkQjnr-JTfw@mail.gmail.com> <CAGH67wSX3d8AM%2B-Qc_M2RfBL_VMyRPB7na_JmNxq2nfb4fL0Bg@mail.gmail.com> <CAJ-Vmo=F9d9_Tvt9eLWCRK3W4X17j3JDSUzQxGubMrdHg7JvLA@mail.gmail.com> <CAGH67wT_JT8zJ1T%2BOMsdOthmYdeKvePvKnt5DRQ%2BqW1h8NDgqw@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On 29 August 2011 08:42, Garrett Cooper <yanegomi@gmail.com> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAJ-VmonKYYpVE-nVvZywWedZ-cNKqowx8mr5GdT%2B2b5SOHq5=w>