From b6a1dea77d892dbe2d5cc409365e8038b0389d51 Mon Sep 17 00:00:00 2001 From: Oliver Neukum Date: Apr 18 2023 08:10:52 +0000 Subject: ath10k: Fix missing frame timestamp for beacon/probe-resp (git-fixes). --- diff --git a/patches.suse/ath10k-Fix-missing-frame-timestamp-for-beacon-probe-.patch b/patches.suse/ath10k-Fix-missing-frame-timestamp-for-beacon-probe-.patch new file mode 100644 index 0000000..b6281b0 --- /dev/null +++ b/patches.suse/ath10k-Fix-missing-frame-timestamp-for-beacon-probe-.patch @@ -0,0 +1,38 @@ +From e6dfbc3ba90cc2b619229be56b485f085a0a8e1c Mon Sep 17 00:00:00 2001 +From: Loic Poulain +Date: Tue, 28 Sep 2021 14:00:47 +0300 +Subject: [PATCH] ath10k: Fix missing frame timestamp for beacon/probe-resp +Git-commit: e6dfbc3ba90cc2b619229be56b485f085a0a8e1c +References: git-fixes +Patch-mainline: v5.16-rc1 + +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: 5e3dd157d7e7 ("ath10k: mac80211 driver for Qualcomm Atheros 802.11ac CQA98xx devices") +Signed-off-by: Loic Poulain +Signed-off-by: Kalle Valo +Link: https://lore.kernel.org/r/1629811733-7927-1-git-send-email-loic.poulain@linaro.org +Signed-off-by: Oliver Neukum +--- + drivers/net/wireless/ath/ath10k/wmi.c | 4 ++++ + 1 file changed, 4 insertions(+) + +--- a/drivers/net/wireless/ath/ath10k/wmi.c ++++ b/drivers/net/wireless/ath/ath10k/wmi.c +@@ -2477,6 +2477,10 @@ int ath10k_wmi_event_mgmt_rx(struct ath1 + if (ieee80211_is_beacon(hdr->frame_control)) + ath10k_mac_handle_beacon(ar, skb); + ++ if (ieee80211_is_beacon(hdr->frame_control) || ++ ieee80211_is_probe_resp(hdr->frame_control)) ++ status->boottime_ns = ktime_get_boot_ns(); ++ + ath10k_dbg(ar, ATH10K_DBG_MGMT, + "event mgmt rx skb %pK len %d ftype %02x stype %02x\n", + skb, skb->len, diff --git a/series.conf b/series.conf index 79c5e9a..66765dd 100644 --- a/series.conf +++ b/series.conf @@ -61719,6 +61719,7 @@ patches.suse/gve-DQO-avoid-unused-variable-warnings.patch patches.suse/gve-Use-kvcalloc-instead-of-kvzalloc.patch patches.suse/Bluetooth-sco-Fix-lock_sock-blockage-by-memcpy_from_.patch + patches.suse/ath10k-Fix-missing-frame-timestamp-for-beacon-probe-.patch patches.suse/msft-hv-2449-net-mana-Use-kcalloc-instead-of-kzalloc.patch patches.suse/msft-hv-2451-hv_netvsc-use-netif_is_bond_master-instead-of-open-c.patch patches.suse/gve-Switch-to-use-napi_complete_done.patch