USB2 patches
Andrew Thompson
thompsa at FreeBSD.org
Sun Feb 1 11:18:56 PST 2009
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
More information about the freebsd-usb
mailing list