From dbd3a683f26cdecf71e8a950229c4beb7108b505 Mon Sep 17 00:00:00 2001 From: Stefano Avallone Date: Fri, 10 May 2024 15:48:18 +0200 Subject: [PATCH] wifi: Do not peek packets if a container queue does not have a mask for a given link If no mask exists for the given link, it means packets of that container queue cannot be sent on that link. --- src/wifi/model/qos-txop.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wifi/model/qos-txop.cc b/src/wifi/model/qos-txop.cc index a734893d5..8d91e8156 100644 --- a/src/wifi/model/qos-txop.cc +++ b/src/wifi/model/qos-txop.cc @@ -394,7 +394,7 @@ QosTxop::PeekNextMpdu(uint8_t linkId, uint8_t tid, Mac48Address recipient, PtrGetMacQueueScheduler()->GetQueueLinkMask(m_ac, queueId, linkId); - !mask || mask->none()) + mask && mask->none()) { return m_queue->PeekByQueueId(queueId, mpdu); }