From ba873ce1d8ec75b5e07308e20d2e5f3065924b6b Mon Sep 17 00:00:00 2001 From: stsp Date: Mon, 22 Nov 2021 11:01:12 +0000 Subject: [PATCH] Make iwx(4) update an Rx BA session's last_rx timestamp when a frame is received which matches the session. Same change as just made in iwm(4). --- sys/dev/pci/if_iwx.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sys/dev/pci/if_iwx.c b/sys/dev/pci/if_iwx.c index b7072c166ed..d20e233a57d 100644 --- a/sys/dev/pci/if_iwx.c +++ b/sys/dev/pci/if_iwx.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_iwx.c,v 1.123 2021/11/22 10:54:36 stsp Exp $ */ +/* $OpenBSD: if_iwx.c,v 1.124 2021/11/22 11:01:12 stsp Exp $ */ /* * Copyright (c) 2014, 2016 genua gmbh @@ -4202,6 +4202,9 @@ iwx_rx_reorder(struct iwx_softc *sc, struct mbuf *m, int chanidx, if (rxba == NULL || tid != rxba->tid || rxba->sta_id != IWX_STATION_ID) return 0; + if (rxba->timeout != 0) + getmicrouptime(&rxba->last_rx); + /* Bypass A-MPDU re-ordering in net80211. */ rxi->rxi_flags |= IEEE80211_RXI_AMPDU_DONE; -- 2.20.1