]> pilppa.com Git - linux-2.6-omap-h63xx.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)
commit1d60ab0574fae362b1cca0ef52181ef75fd46832
tree0623fff0e79c97fa8862b5657a19363c0734cfb4
parentec9b6add7d81f902f6094e71f595da4a362f3348
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