Search Linux Wireless

Re: [PATCH V4] mac80211: Add support for SIOCGIWRATE ioctl to provide rate information

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

 



On Thursday 10 May 2007 13:47, Larry Finger wrote:
> +	if (sta->txrate >= 0 && sta->txrate <= local->oper_hw_mode->num_rates)
sta->txrate will never be negative unless there's a bug somewhere so that 
check should be removed.

'<=' isn't quite right. sta->txrate == local->oper_hw_mode->num_rates is not a 
valid index.

-Michael Wu

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