Skip to contentSkip to conversation

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

PATCH Applied Helmut Schaa 2 participants 2 messages Nov 27, 2012 – Nov 28, 2012 mac80211

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 net/mac80211/mesh_plink.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
net/mac80211/mesh_plink.c +3 -1
index 234fe75..0327755 100644
@@ -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))
Signature · 1 line
1.7.7
maintainer Applied
#1 lore raw
Quoted 3 lines · Helmut Schaa

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