]> git.baikalelectronics.ru Git - kernel.git/commit
rc80211-pid: fix rate adjustment
authorStefano Brivio <stefano.brivio@polimi.it>
Sun, 2 Mar 2008 10:33:10 +0000 (11:33 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 4 Mar 2008 23:36:35 +0000 (18:36 -0500)
commit051b115aa9f83837857ba5d8e058a0584759a3a2
tree0623fff0e79c97fa8862b5657a19363c0734cfb4
parent51c5ec6ef22048ba5a0a916e9bf5af766857f8d3
rc80211-pid: fix rate adjustment

Merge rate_control_pid_shift_adjust() to rate_control_pid_adjust_rate()
in order to make the learning algorithm aware of constraints on rates. Also
add some comments and rename variables.

This fixes a bug which prevented 802.11b/g non-AP STAs from working with
802.11b only AP STAs.

This patch was originally destined for 2.6.26, and is being backported
to fix a user reported problem in post-2.6.24 kernels.

Signed-off-by: Stefano Brivio <stefano.brivio@polimi.it>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/rc80211_pid_algo.c