Skip to content

Commit

Permalink
mac80211: don't reinit rate control when mesh sta exists
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Helmut Schaa authored and Johannes Berg committed Nov 28, 2012
1 parent 478622e commit 59cf1d6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion net/mac80211/mesh_plink.c
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,8 @@ static struct sta_info *mesh_peer_init(struct ieee80211_sub_if_data *sdata,
sta->ch_width = chandef.width;
}

rate_control_rate_init(sta);
if (insert)
rate_control_rate_init(sta);
spin_unlock_bh(&sta->lock);

if (insert && sta_info_insert(sta))
Expand Down

0 comments on commit 59cf1d6

Please sign in to comment.