Date: Sun, 1 Feb 2009 11:18:51 -0800 From: Andrew Thompson <thompsa@FreeBSD.org> To: Hans Petter Selasky <hselasky@c2i.net> Cc: freebsd-usb@freebsd.org Subject: Re: USB2 patches Message-ID: <20090201191851.GE32503@citylink.fud.org.nz> In-Reply-To: <200902012014.32190.hselasky@c2i.net> References: <20090131231957.GB31825@citylink.fud.org.nz> <200902011922.16810.hselasky@c2i.net> <20090201190820.GB32503@citylink.fud.org.nz> <200902012014.32190.hselasky@c2i.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Feb 01, 2009 at 08:14:29PM +0100, Hans Petter Selasky wrote: > Hi Andrew, > > On Sunday 01 February 2009, Andrew Thompson wrote: > > On Sun, Feb 01, 2009 at 07:22:15PM +0100, Hans Petter Selasky wrote: > > > > > The code should be, > > > > That's what I'm doing already ... I pre-copy all channel & bssid stuff into a > message structure ... Im saying you dont need to. When you get a channel change request, you fire off the channel task and the program the hardware with the current value from the ieee80211com channel pointer. > > xxx_set_channel() > > { > > ieee80211_channel c = wlan->curchan; > > > > hw_reg = array1[c]; > > write USB register; > > hw_reg = array2[c]; > > write USB register; > > } > > And don't forget "volatile" ... I dont understand this. c is a pointer to a valid net80211 channel which will never disappear. Andrew
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090201191851.GE32503>