Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 59cf1d65 authored by Helmut Schaa's avatar Helmut Schaa Committed by Johannes Berg
Browse files

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: default avatarEmanuel Taube <emanuel.taube@gmail.com>
Signed-off-by: default avatarHelmut Schaa <helmut.schaa@googlemail.com>
Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
parent 478622e8
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -391,6 +391,7 @@ static struct sta_info *mesh_peer_init(struct ieee80211_sub_if_data *sdata,
		sta->ch_width = chandef.width;
	}

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