From 333a51436376c57e96dab4f956079f2761c62d0f Mon Sep 17 00:00:00 2001 From: Ruakij Date: Wed, 24 Nov 2021 20:35:44 +0100 Subject: [PATCH] Added PacketType ContentionFreePeriod --- src/dto/Packet.js | 1 + src/streamHandler/PacketStreamFactory.js | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/dto/Packet.js b/src/dto/Packet.js index b40997f..d411f49 100644 --- a/src/dto/Packet.js +++ b/src/dto/Packet.js @@ -9,6 +9,7 @@ const PacketType = { Acknowledgment: 'Acknowledgment', BlockAcknowledgment: 'BlockAcknowledgment', NoData: 'NoData', + ContentionFreePeriod: 'ContentionFreePeriod', Unknown: 'Unknown' } diff --git a/src/streamHandler/PacketStreamFactory.js b/src/streamHandler/PacketStreamFactory.js index 4fc96a6..48e910f 100644 --- a/src/streamHandler/PacketStreamFactory.js +++ b/src/streamHandler/PacketStreamFactory.js @@ -12,7 +12,8 @@ const PACKET_TYPE_MAP = { "Request-To-Send": PacketType.RequestToSend, "Clear-To-Send": PacketType.ClearToSend, "Acknowledgment": PacketType.Acknowledgment, - "BA": PacketType.BlockAcknowledgment + "BA": PacketType.BlockAcknowledgment, + "CD": PacketType.ContentionFreePeriod }; const PACKET_TYPES_REGEX = Object.keys(PACKET_TYPE_MAP).join('|');