diff mbox

mac80211: Don't reinit rate control when mesh sta exists

Message ID 1354035793-23498-1-git-send-email-helmut.schaa@googlemail.com (mailing list archive)
State Not Applicable, archived
Headers show

Commit Message

Helmut Schaa Nov. 27, 2012, 5:03 p.m. UTC
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>
---
 net/mac80211/mesh_plink.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

Comments

Johannes Berg Nov. 28, 2012, 1:03 p.m. UTC | #1
On Tue, 2012-11-27 at 18:03 +0100, Helmut Schaa wrote:
> This fixes some unintended resets of the rate control statistics
> when minstrel_ht is used resulting in non-optimal throughput on mesh
> links.

Applied.

johannes

--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/net/mac80211/mesh_plink.c b/net/mac80211/mesh_plink.c
index 234fe75..0327755 100644
--- a/net/mac80211/mesh_plink.c
+++ b/net/mac80211/mesh_plink.c
@@ -394,7 +394,9 @@  static struct sta_info *mesh_peer_init(struct ieee80211_sub_if_data *sdata,
 			ieee80211_ht_oper_to_channel_type(elems->ht_operation);
 	}
 
-	rate_control_rate_init(sta);
+	if (insert)
+		rate_control_rate_init(sta);
+
 	spin_unlock_bh(&sta->lock);
 
 	if (insert && sta_info_insert(sta))