Skip to content

Commit ffed645

Browse files
Loic Poulaingregkh
authored andcommitted
ath10k: Fix missing frame timestamp for beacon/probe-resp
[ Upstream commit e6dfbc3 ] 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). Fixes: 5e3dd15 ("ath10k: mac80211 driver for Qualcomm Atheros 802.11ac CQA98xx devices") Signed-off-by: Loic Poulain <loic.poulain@linaro.org> Signed-off-by: Kalle Valo <kvalo@codeaurora.org> Link: https://lore.kernel.org/r/1629811733-7927-1-git-send-email-loic.poulain@linaro.org Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 08fb000 commit ffed645

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

  • drivers/net/wireless/ath/ath10k

drivers/net/wireless/ath/ath10k/wmi.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2610,6 +2610,10 @@ int ath10k_wmi_event_mgmt_rx(struct ath10k *ar, struct sk_buff *skb)
26102610
if (ieee80211_is_beacon(hdr->frame_control))
26112611
ath10k_mac_handle_beacon(ar, skb);
26122612

2613+
if (ieee80211_is_beacon(hdr->frame_control) ||
2614+
ieee80211_is_probe_resp(hdr->frame_control))
2615+
status->boottime_ns = ktime_get_boottime_ns();
2616+
26132617
ath10k_dbg(ar, ATH10K_DBG_MGMT,
26142618
"event mgmt rx skb %pK len %d ftype %02x stype %02x\n",
26152619
skb, skb->len,

0 commit comments

Comments
 (0)