mac80211: Fix pid rate-setting algorithm to allow rate changes
authorLarry Finger <Larry.Finger@lwfinger.net>
Sun, 16 Nov 2008 23:09:25 +0000 (17:09 -0600)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 26 Nov 2008 14:47:20 +0000 (09:47 -0500)
commit1dc5a84166d83c892cbf192cad58ebdde95d3ac4
tree71ca466cd49ad453656145fc46619ae80d413821
parentd507748ac6de67369e76058a8a921cd22734f40a
mac80211: Fix pid rate-setting algorithm to allow rate changes

In commit 9ea2c74 named "mac80211/drivers: rewrite the rate control API",
the meaning of status.rates[i].count was changed from number of retries
to total number of tries. As a result, the pid rate-setting algorithm fails
because every packet appears to have needed a retransmit.

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Acked-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/rc80211_pid_algo.c