diff options
Diffstat (limited to 'net')
-rw-r--r-- | net/mac80211/mlme.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c index c9f7c13d2e7e..cffef44cec05 100644 --- a/net/mac80211/mlme.c +++ b/net/mac80211/mlme.c | |||
@@ -4340,6 +4340,13 @@ ieee80211_sta_scan_result(struct net_device *dev, | |||
4340 | current_ev = iwe_stream_add_point(info, current_ev, | 4340 | current_ev = iwe_stream_add_point(info, current_ev, |
4341 | end_buf, | 4341 | end_buf, |
4342 | &iwe, buf); | 4342 | &iwe, buf); |
4343 | memset(&iwe, 0, sizeof(iwe)); | ||
4344 | iwe.cmd = IWEVCUSTOM; | ||
4345 | sprintf(buf, " Last beacon: %dms ago", | ||
4346 | jiffies_to_msecs(jiffies - bss->last_update)); | ||
4347 | iwe.u.data.length = strlen(buf); | ||
4348 | current_ev = iwe_stream_add_point(info, current_ev, | ||
4349 | end_buf, &iwe, buf); | ||
4343 | kfree(buf); | 4350 | kfree(buf); |
4344 | } | 4351 | } |
4345 | } | 4352 | } |