-/* $OpenBSD: if_iwm.c,v 1.385 2021/12/20 15:08:10 stsp Exp $ */
+/* $OpenBSD: if_iwm.c,v 1.386 2022/01/04 15:53:57 stsp Exp $ */
/*
* Copyright (c) 2014, 2016 genua gmbh <info@genua.de>
return 0;
rxba = &sc->sc_rxba_data[baid];
- if (rxba == NULL || tid != rxba->tid || rxba->sta_id != IWM_STATION_ID)
+ if (rxba->baid == IWM_RX_REORDER_DATA_INVALID_BAID ||
+ tid != rxba->tid || rxba->sta_id != IWM_STATION_ID)
return 0;
if (rxba->timeout != 0)
-/* $OpenBSD: if_iwx.c,v 1.128 2021/12/03 14:32:08 stsp Exp $ */
+/* $OpenBSD: if_iwx.c,v 1.129 2022/01/04 15:53:57 stsp Exp $ */
/*
* Copyright (c) 2014, 2016 genua gmbh <info@genua.de>
return;
rxba = &sc->sc_rxba_data[baid];
- if (rxba == NULL || rxba->baid == IWX_RX_REORDER_DATA_INVALID_BAID)
+ if (rxba->baid == IWX_RX_REORDER_DATA_INVALID_BAID)
return;
tid = le32toh(release->sta_tid) & IWX_BAR_FRAME_RELEASE_TID_MASK;
return 0;
rxba = &sc->sc_rxba_data[baid];
- if (rxba == NULL || tid != rxba->tid || rxba->sta_id != IWX_STATION_ID)
+ if (rxba->baid == IWX_RX_REORDER_DATA_INVALID_BAID ||
+ tid != rxba->tid || rxba->sta_id != IWX_STATION_ID)
return 0;
if (rxba->timeout != 0)