Date: Fri, 14 Jun 2013 01:22:39 -0700 From: Adrian Chadd <adrian@freebsd.org> To: Guillaume Bibaut <yom@iaelu.net> Cc: freebsd-arm@freebsd.org, freebsd-wireless@freebsd.org Subject: Re: arm/179532: wireless networking on ARM Message-ID: <CAJ-Vmon_n=C7QeDxKjKbM_hPLMot%2BUU1ry4kE%2B_TwS7QbypkUA@mail.gmail.com> In-Reply-To: <0F0FA54B-4970-41A7-9173-4EF28A61DFE5@iaelu.net> References: <201306130940.r5D9eiFx089862@oldred.freebsd.org> <CAJ-VmomxoYJ%2B73ro9hg4Ee%2BqseCV-Gy2SmV1fsOBO1EC1Hu6LA@mail.gmail.com> <CAJ-VmomctPwB=0MjV8DNO1UxxcJmzx%2BkyDy6p4=d%2BGPSAsu1yg@mail.gmail.com> <0F0FA54B-4970-41A7-9173-4EF28A61DFE5@iaelu.net>
next in thread | previous in thread | raw e-mail | index | archive | help
Yup, it's being handed an unaligned radiotap header address from the run dr= iver. Grr. Adrian On 14 June 2013 01:20, Guillaume Bibaut <yom@iaelu.net> wrote: > Here is the output : > > set_channel: c=3D0xc289b214, p=3D0xc2892fbb, rc=3D0xc2892fbb > > > picture : > > http://iaelu.net/~yom/efikamx/arm-eabi/photo6.JPG > > > -- > Guillaume > > > Le 14 juin 2013 =E0 07:32, Adrian Chadd <adrian@freebsd.org> a =E9crit : > > So that line does this: > > rc->freq =3D htole16(c->ic_freq); > > Please print out the value of p, c and rc before that is called. > > printf("%s: c=3D%p, p=3D%p, rc=3D%p\n", __func__, c, p, rc); > > I bet one of them is unaligned. > > And I bet that 'c' is aligned, but 'rc' and 'p' aren't aligned. > I bet they're unaligned because ic->ic_rxchan and/or ic->ic_txchan is > unaligned. > > Now, why _those_ are unaligned, I dunno. I bet the pointers passed > into ieee80211_radiotap_attach() (th and rh) are unaligned, and that > leads to this unalignment mess. > > The whole tx and rx tap structure allocation in if_runvar.h is a bit sick= . > Sigh. > > > > Adrian > > > On 13 June 2013 16:49, Adrian Chadd <adrian@freebsd.org> wrote: > > Ugh, > > Hi, > > An alignment fault? ugh. It works fine on MIPS; I wonder if it's > something odd to do with the specific driver in use. > > I'll look at the source and get back to everyone. > > Thanks! > > > > adrian > > _______________________________________________ > > freebsd-arm@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-arm > To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org" > >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAJ-Vmon_n=C7QeDxKjKbM_hPLMot%2BUU1ry4kE%2B_TwS7QbypkUA>