aboutsummaryrefslogtreecommitdiffstats
path: root/lib/test_xarray.c
diff options
context:
space:
mode:
authorAhmed Zaki <[email protected]>2019-10-31 12:12:43 +0000
committerJohannes Berg <[email protected]>2019-11-08 08:17:28 +0000
commit285531f9e6774e3be71da6673d475ff1a088d675 (patch)
treecb3c05420787cef15b264b35b6b8ea6936f181e3 /lib/test_xarray.c
parentnet/fq_impl: Switch to kvmalloc() for memory allocation (diff)
downloadkernel-285531f9e6774e3be71da6673d475ff1a088d675.tar.gz
kernel-285531f9e6774e3be71da6673d475ff1a088d675.zip
mac80211: fix station inactive_time shortly after boot
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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Johannes Berg <[email protected]>
Diffstat (limited to 'lib/test_xarray.c')
0 files changed, 0 insertions, 0 deletions