Skip to content

Commit e6dfbc3

Browse files
Loic PoulainKalle Valo
Loic Poulain
authored and
Kalle Valo
committed
ath10k: Fix missing frame timestamp for beacon/probe-resp
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 <[email protected]> Signed-off-by: Kalle Valo <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent e263bda commit e6dfbc3

File tree

1 file changed

+4
-0
lines changed
  • drivers/net/wireless/ath/ath10k

1 file changed

+4
-0
lines changed

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)