diff options
Diffstat (limited to 'net/mac80211/mlme.c')
-rw-r--r-- | net/mac80211/mlme.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c index 6158db06a5b5..ded4b976bb48 100644 --- a/net/mac80211/mlme.c +++ b/net/mac80211/mlme.c | |||
@@ -2420,15 +2420,9 @@ static void ieee80211_beacon_connection_loss_work(struct work_struct *work) | |||
2420 | container_of(work, struct ieee80211_sub_if_data, | 2420 | container_of(work, struct ieee80211_sub_if_data, |
2421 | u.mgd.beacon_connection_loss_work); | 2421 | u.mgd.beacon_connection_loss_work); |
2422 | struct ieee80211_if_managed *ifmgd = &sdata->u.mgd; | 2422 | struct ieee80211_if_managed *ifmgd = &sdata->u.mgd; |
2423 | struct sta_info *sta; | ||
2424 | 2423 | ||
2425 | if (ifmgd->associated) { | 2424 | if (ifmgd->associated) |
2426 | rcu_read_lock(); | 2425 | ifmgd->beacon_loss_count++; |
2427 | sta = sta_info_get(sdata, ifmgd->bssid); | ||
2428 | if (sta) | ||
2429 | sta->beacon_loss_count++; | ||
2430 | rcu_read_unlock(); | ||
2431 | } | ||
2432 | 2426 | ||
2433 | if (ifmgd->connection_loss) { | 2427 | if (ifmgd->connection_loss) { |
2434 | sdata_info(sdata, "Connection to AP %pM lost\n", | 2428 | sdata_info(sdata, "Connection to AP %pM lost\n", |