From b20937bd1cedc34dff048e1179ecde2907b827bb Mon Sep 17 00:00:00 2001 From: Stefano Avallone Date: Fri, 10 Jun 2022 11:24:36 +0200 Subject: [PATCH] wifi: Add a constant for link ID in single link operations Helps identify places where correct link ID needs to be specified to support multi-link operations --- src/wifi/model/wifi-utils.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/wifi/model/wifi-utils.h b/src/wifi/model/wifi-utils.h index 05456af41..6fc649ea5 100644 --- a/src/wifi/model/wifi-utils.h +++ b/src/wifi/model/wifi-utils.h @@ -128,10 +128,15 @@ void AddWifiMacTrailer (Ptr packet); uint32_t GetSize (Ptr packet, const WifiMacHeader *hdr, bool isAmpdu); /// Size of the space of sequence numbers -const uint16_t SEQNO_SPACE_SIZE = 4096; +static constexpr uint16_t SEQNO_SPACE_SIZE = 4096; /// Size of the half the space of sequence numbers (used to determine old packets) -const uint16_t SEQNO_SPACE_HALF_SIZE = SEQNO_SPACE_SIZE / 2; +static constexpr uint16_t SEQNO_SPACE_HALF_SIZE = SEQNO_SPACE_SIZE / 2; + +/// Link ID for single link operations (helps tracking places where correct link +/// ID is to be used to support multi-link operations) +static constexpr uint8_t SINGLE_LINK_OP_ID = 0; + } // namespace ns3 #endif /* WIFI_UTILS_H */