diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c index 46b62bb3677ccbad6b29446a82f2413e97b9ad29..423816f18b55701e6dd0d078b1b077d71a663d2f 100644 --- a/net/mac80211/mlme.c +++ b/net/mac80211/mlme.c @@ -2780,8 +2780,8 @@ static void ieee80211_rx_bss_info(struct ieee80211_sub_if_data *sdata, bss = ieee80211_bss_info_update(local, rx_status, mgmt, len, elems, channel); if (bss) { - ieee80211_rx_bss_put(local, bss); sdata->vif.bss_conf.beacon_rate = bss->beacon_rate; + ieee80211_rx_bss_put(local, bss); } }