diff --git a/net/mac80211/sta_info.c b/net/mac80211/sta_info.c index d12aed9c1756..fdf00cbf49d8 100644 --- a/net/mac80211/sta_info.c +++ b/net/mac80211/sta_info.c @@ -2821,7 +2821,7 @@ static u32 sta_estimate_expected_throughput(struct sta_info *sta, u32 duration; u8 band; - conf = rcu_dereference(bss_conf->chanctx_conf); + conf = sdata_dereference(bss_conf->chanctx_conf, sta->sdata); if (!conf) return 0; band = conf->def.chan->band;