diff options
author | Helmut Schaa <helmut.schaa@googlemail.com> | 2012-11-27 12:03:13 -0500 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2012-11-28 08:03:18 -0500 |
commit | 59cf1d65f7d69739a29a16fe678ebc4e1215e9c0 (patch) | |
tree | 3e5f44d27270731d5f9fdcb1305bc1ef74a9da33 /net | |
parent | 478622e81c735ecd83d45ee6be3fd45d500aaa3b (diff) |
mac80211: don't reinit rate control when mesh sta exists
This fixes some unintended resets of the rate control statistics
when minstrel_ht is used resulting in non-optimal throughput on mesh
links.
Tested-by: Emanuel Taube <emanuel.taube@gmail.com>
Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net')
-rw-r--r-- | net/mac80211/mesh_plink.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/mac80211/mesh_plink.c b/net/mac80211/mesh_plink.c index ca52dfdd5375..4b274e9c91a5 100644 --- a/net/mac80211/mesh_plink.c +++ b/net/mac80211/mesh_plink.c | |||
@@ -391,7 +391,8 @@ static struct sta_info *mesh_peer_init(struct ieee80211_sub_if_data *sdata, | |||
391 | sta->ch_width = chandef.width; | 391 | sta->ch_width = chandef.width; |
392 | } | 392 | } |
393 | 393 | ||
394 | rate_control_rate_init(sta); | 394 | if (insert) |
395 | rate_control_rate_init(sta); | ||
395 | spin_unlock_bh(&sta->lock); | 396 | spin_unlock_bh(&sta->lock); |
396 | 397 | ||
397 | if (insert && sta_info_insert(sta)) | 398 | if (insert && sta_info_insert(sta)) |