summaryrefslogtreecommitdiffstats
path: root/net/mac80211/mlme.c
diff options
context:
space:
mode:
authorPaul Stewart2011-12-09 20:01:49 +0100
committerJohn W. Linville2011-12-19 20:34:13 +0100
commita85e1d55974646a442d95911e3f7d7a891ea9ac5 (patch)
treeaa4dbeb64336c8e3ee2003a7963ec8ef38675101 /net/mac80211/mlme.c
parentmac80211: split addba retries in time (diff)
downloadkernel-qcow2-linux-a85e1d55974646a442d95911e3f7d7a891ea9ac5.tar.gz
kernel-qcow2-linux-a85e1d55974646a442d95911e3f7d7a891ea9ac5.tar.xz
kernel-qcow2-linux-a85e1d55974646a442d95911e3f7d7a891ea9ac5.zip
cfg80211: Return beacon loss count in station
If station info contains a beacon loss count, return it to userspace. Signed-off-by: Paul Stewart <pstew@chromium.org> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211/mlme.c')
-rw-r--r--net/mac80211/mlme.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c
index a984f1f60ddb..57989a046fca 100644
--- a/net/mac80211/mlme.c
+++ b/net/mac80211/mlme.c
@@ -1381,6 +1381,14 @@ void ieee80211_beacon_connection_loss_work(struct work_struct *work)
struct ieee80211_sub_if_data *sdata =
container_of(work, struct ieee80211_sub_if_data,
u.mgd.beacon_connection_loss_work);
+ struct ieee80211_if_managed *ifmgd = &sdata->u.mgd;
+ struct sta_info *sta;
+
+ if (ifmgd->associated) {
+ sta = sta_info_get(sdata, ifmgd->bssid);
+ if (sta)
+ sta->beacon_loss_count++;
+ }
if (sdata->local->hw.flags & IEEE80211_HW_CONNECTION_MONITOR)
__ieee80211_connection_loss(sdata);