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:47:14 +0000 (22:47 +0200)
commit38fb233a47f5016f996c53ebb90f7525b5eaaddf
tree9e546382657a0b196ebbc902a0265b2683a0227f
parent7ffd72b91451f6247d03761ba4bb8adb66583596
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