summaryrefslogtreecommitdiffstats
path: root/net/mac80211/mlme.c
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2015-10-16 11:18:11 -0400
committerJohannes Berg <johannes.berg@intel.com>2015-10-21 04:08:21 -0400
commit976bd9efdae6a844079ba4a7898a38d229ef246c (patch)
treef077d5f3e587294c4d62a2dc98fe62cc06a03f45 /net/mac80211/mlme.c
parent763aa27a292113b6fd9f6ad8bf633edc9b13c98b (diff)
mac80211: move beacon_loss_count into ifmgd
There's little point in keeping (and even sending to userspace) the beacon_loss_count value per station, since it can only apply to the AP on a managed-mode connection. Move the value to ifmgd, advertise it only in managed mode, and remove it from ethtool as it's available through better interfaces. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211/mlme.c')
-rw-r--r--net/mac80211/mlme.c10
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",