Search Linux Wireless

Re: [PATCH V2] mac80211: Implementation of SIOCSIWRATE

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

 



On Thursday 07 June 2007 21:02, Larry Finger wrote:
> If sta->supp_rates is not changed, how do you lock in a single rate as
> would be expected from an 'iwconfig ethX rate 11M'? Won't the following
> code in the rate_control_rate_dec routine of rc80211_simple just decrease
> the rate if it wants to?
>
>          while (i > 0) {
>                  i--;
>                  if (sta->supp_rates & BIT(i) &&
>                      mode->rates[i].flags & IEEE80211_RATE_SUPPORTED) {
>                          sta->txrate = i;
>                          break;
>                  }
>          }
>
No, because the code right above it checks for force_unicast_rateidx and exits 
if it's set.

-Michael Wu

Attachment: pgpqk4uRiZ5bB.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