Search Linux Wireless

Re: [PATCH] mac80211: Fix sta->last_tx_rate setting with no-op rate control devices

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

 



On Thu, Apr 22, 2010 at 12:27 AM, Juuso Oikarinen
<juuso.oikarinen@xxxxxxxxx> wrote:
> The sta->last_tx_rate is traditionally updated just before transmitting a
> frame based on information from the rate control algorithm. However, for
> hardware drivers with IEEE80211_HW_HAS_RATE_CONTROL this is not performed,
> as the rate control algorithm is not executed, and because the used rate is
> not known before the frame has actually been transmitted.
>
> This causes atleast a fixed 1Mb/s to be reported to user space. A few other
> instances of code also rely on this information.
>
> Fix this by setting the sta->last_tx_rate in tx_status handling. There, look
> for last rates entry set by the driver, and use that as value for
> sta->last_tx_rate.
>
> Signed-off-by: Juuso Oikarinen <juuso.oikarinen@xxxxxxxxx>

But the actual rate used is not known, or is it? In those cases would
it not be better to inform userspace that the information is not
available?

  Luis
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[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