]> git.baikalelectronics.ru Git - kernel.git/commit
rt2x00: provide mac80211 a suitable max_rates value
authorHelmut Schaa <helmut.schaa@googlemail.com>
Mon, 14 Jun 2010 20:12:01 +0000 (22:12 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 15 Jun 2010 20:00:50 +0000 (16:00 -0400)
commit27e9aa72a9dd7b3a725c10f0068df187375f6c7c
tree55493f5c9f9c1f8c3c527cf1336463769859cfa3
parent483a15f18c610f961936b162b5839656cef65a4a
rt2x00: provide mac80211 a suitable max_rates value

Set up max_rates and max_rate_tries with suitable values even if we do not
support the whole functionality.

As rt2800 has a global fallback table we cannot specify more then one tx rate
per frame but since the hw will try several different rates (based on the
fallback table) we should still initialize max_rates to the maximum number of
rates we are going to try. Otherwise mac80211 will truncate our reported tx
rates and the rc algortihm will end up with incorrect data choosing unsuitable
rates for tx.

This improves throughput on rt2800 devices considerable.

Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com>
Acked-by: Gertjan van Wingerde <gwingerde@gmail.com>
Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/rt2x00/rt2800lib.c