Search Linux Wireless

Re: [PATCH] mac80211: Implementation of SIOCSIWRATE

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux