rc80211-pid: fix rate adjustment
authorStefano Brivio <stefano.brivio@polimi.it>
Tue, 29 Jan 2008 19:29:16 +0000 (20:29 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 29 Feb 2008 20:19:33 +0000 (15:19 -0500)
commitb7c50de92e1b54fa4a9a2ee436b16ead3ee31767
tree6e387e37c2a58aba0a8db9ffb92dcd33aba8a76b
parent238814fd9a9624e3076c47ef0c003101927c7818
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.

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