On Wed, Feb 08, 2012 at 08:38:00PM +0100, Felix Fietkau wrote: > On 2012-02-08 8:25 PM, John W. Linville wrote: > > On Wed, Feb 08, 2012 at 07:17:11PM +0100, Felix Fietkau wrote: > >> Most rate control implementations assume .get_rate and .tx_status are only > >> called once the per-station data has been fully initialized. > >> minstrel_ht crashes if this assumption is violated. > >> > >> Signed-off-by: Felix Fietkau <nbd@xxxxxxxxxxx> > >> Tested-by: Arend van Spriel <arend@xxxxxxxxxxxx> > >> --- > >> net/mac80211/rate.h | 2 +- > >> 1 files changed, 1 insertions(+), 1 deletions(-) > >> > >> diff --git a/net/mac80211/rate.h b/net/mac80211/rate.h > >> index 5fc3135..fbb1efd 100644 > >> --- a/net/mac80211/rate.h > >> +++ b/net/mac80211/rate.h > >> @@ -37,7 +37,7 @@ static inline void rate_control_tx_status(struct ieee80211_local *local, > >> struct ieee80211_sta *ista = &sta->sta; > >> void *priv_sta = sta->rate_ctrl_priv; > >> > >> - if (!ref) > >> + if (!ref || !test_sta_flag(sta, WLAN_STA_RATE_CONTROL)) > >> return; > >> > >> ref->ops->tx_status(ref->priv, sband, ista, priv_sta, skb); > > > > Any reason not to apply this for 3.3? Or stable? > I think 3.3 doesn't have that sta flag, the issue was probably > introduced with the 3.4 changes. > I don't remember something like this appearing in earlier versions. Cool, thanks. -- John W. Linville Someday the world will need a hero, and you linville@xxxxxxxxxxxxx might be all we have. Be ready. -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html