diff options
author | Stanislaw Gruszka <sgruszka@redhat.com> | 2013-06-04 14:19:10 +0200 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2013-06-12 14:24:22 -0400 |
commit | a8cf0194b7187fb65dfff28a1c5153d442e3836a (patch) | |
tree | c52edb997a58733ab83c581c59d3fc35dba2d424 /drivers/net/wireless/iwlegacy/3945-rs.c | |
parent | e0e29b683d6784ef59bbc914eac85a04b650e63c (diff) | |
download | blackbird-op-linux-a8cf0194b7187fb65dfff28a1c5153d442e3836a.tar.gz blackbird-op-linux-a8cf0194b7187fb65dfff28a1c5153d442e3836a.zip |
iwlegacy: fix rate control regression
Since driver does not use control.rates[0].count, we have never set that
variable. But currently, after rate control API rewrite, this is required
by mac80211. Otherwise legacy rates control does not work and we transmit
always at 1Mbit/s on pre 11n networks.
Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlegacy/3945-rs.c')
-rw-r--r-- | drivers/net/wireless/iwlegacy/3945-rs.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/wireless/iwlegacy/3945-rs.c b/drivers/net/wireless/iwlegacy/3945-rs.c index c9f197d9ca1e..fe31590a51b2 100644 --- a/drivers/net/wireless/iwlegacy/3945-rs.c +++ b/drivers/net/wireless/iwlegacy/3945-rs.c @@ -816,6 +816,7 @@ out: rs_sta->last_txrate_idx = idx; info->control.rates[0].idx = rs_sta->last_txrate_idx; } + info->control.rates[0].count = 1; D_RATE("leave: %d\n", idx); } |