wlcore: Set rx_status boottime_ns field on rx
authorLoic Poulain <loic.poulain@linaro.org>
Fri, 27 Jul 2018 16:30:23 +0000 (18:30 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 19 Sep 2018 20:43:41 +0000 (22:43 +0200)
commit0e890d1cf491ee34dc82f0841f1126e5bb750b7f
tree1b8656a0d4571d80ba72ff48f8e63ae734ed7728
parentbd21eb8aa705bb97a7eb33f2a2c6dc306dfa3916
wlcore: Set rx_status boottime_ns field on rx

[ Upstream commit 37a634f60fd6dfbda2c312657eec7ef0750546e7 ]

When receiving a beacon or probe response, we should update the
boottime_ns field which is the timestamp the frame was received at.
(cf mac80211.h)

This fixes a scanning issue with Android since it relies on this
timestamp to determine when the AP has been seen for the last time
(via the nl80211 BSS_LAST_SEEN_BOOTTIME parameter).

Signed-off-by: Loic Poulain <loic.poulain@linaro.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/wireless/ti/wlcore/rx.c