Files
linux/net/mac80211
Ahmed Zaki 51a564498c mac80211: fix station inactive_time shortly after boot
[ Upstream commit 285531f9e6 ]

In the first 5 minutes after boot (time of INITIAL_JIFFIES),
ieee80211_sta_last_active() returns zero if last_ack is zero. This
leads to "inactive time" showing jiffies_to_msecs(jiffies).

 # iw wlan0 station get fc:ec:da:64:a6:dd
 Station fc:ec:da:64:a6:dd (on wlan0)
	inactive time:	4294894049 ms
	.
	.
	connected time:	70 seconds

Fix by returning last_rx if last_ack == 0.

Signed-off-by: Ahmed Zaki <anzaki@gmail.com>
Link: https://lore.kernel.org/r/20191031121243.27694-1-anzaki@gmail.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2019-12-05 09:19:46 +01:00
..
2018-06-18 22:40:32 +02:00
2019-09-06 10:22:21 +02:00
2018-06-12 16:19:22 -07:00
2018-06-18 22:40:32 +02:00
2018-06-18 22:40:32 +02:00
2018-02-22 21:13:03 +01:00
2014-04-09 14:49:43 +02:00
2019-11-20 18:45:56 +01:00
2018-06-18 22:40:32 +02:00
2019-05-16 19:41:20 +02:00
2018-06-18 22:40:32 +02:00