Message ID | 8006741.C7YlhOg3U7@bentobox (mailing list archive) |
---|---|
State | Not Applicable |
Delegated to: | Johannes Berg |
Headers | show |
--- a/net/mac80211/rc80211_minstrel_ht.c +++ b/net/mac80211/rc80211_minstrel_ht.c @@ -1126,7 +1126,8 @@ minstrel_ht_update_caps(void *priv, stru use_vht = 0; msp->is_ht = true; - memset(mi, 0, sizeof(*mi)); + /* don't reset the first entry of mi which is the sta pointer */ + memset(((u8 *)mi) + sizeof(mi->sta), 0, sizeof(*mi) - sizeof(mi->sta)); mi->sta = sta; mi->stats_update = jiffies;