From: stsp Date: Mon, 22 Nov 2021 11:00:50 +0000 (+0000) Subject: Make iwm(4) update an Rx BA session's last_rx timestamp when a frame X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=b27417583a55a6a93979eab505d2a4624f300949;p=openbsd Make iwm(4) update an Rx BA session's last_rx timestamp when a frame is received which matches the session. Tested by myself and bket@ --- diff --git a/sys/dev/pci/if_iwm.c b/sys/dev/pci/if_iwm.c index 7fd6b5ce449..d3e9a6ee21b 100644 --- a/sys/dev/pci/if_iwm.c +++ b/sys/dev/pci/if_iwm.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_iwm.c,v 1.381 2021/11/22 10:23:42 stsp Exp $ */ +/* $OpenBSD: if_iwm.c,v 1.382 2021/11/22 11:00:50 stsp Exp $ */ /* * Copyright (c) 2014, 2016 genua gmbh @@ -5114,6 +5114,9 @@ iwm_rx_reorder(struct iwm_softc *sc, struct mbuf *m, int chanidx, if (rxba == NULL || tid != rxba->tid || rxba->sta_id != IWM_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;