On Tuesday 29 May 2007 10:54, Larry Finger wrote: > From: Mohamed Abbas <mabbas@xxxxxxxxxxxxxxx> > So.. how much of this is still from mabbas now? > + /* value = -1, rate->fixed = 0 means auto only, so use all rates > + * value = X, rate->fixed = 1 means only rate X > + * value = X, rate->fixed = 0 means all rates <= X */ Only the second case actually works with this code. When a frame is being transmitted, the rate control runs this little bit of code (rc80211_simple.c, line 255): if (sdata->bss && sdata->bss->force_unicast_rateidx > -1) sta->txrate = sdata->bss->force_unicast_rateidx; This means: 1. If force_unicast_rateidx is set to 0 or higher, the tx rate will be fixed to just that one rate, and.. 2. sta->txrate is automatically set from force_unicast_rateidx as necessary. -Michael Wu
Attachment:
pgpOOPxJzzY5W.pgp
Description: PGP signature