Implemented PacketType AssociationRequest & Response

This commit is contained in:
2021-11-24 22:29:41 +01:00
parent 0d472e8cb3
commit fe5dec7860
2 changed files with 18 additions and 1 deletions

View File

@@ -10,6 +10,8 @@ const PacketType = {
BlockAcknowledgment: 'BlockAcknowledgment',
NoData: 'NoData',
Authentication: 'Authentication',
AssociationRequest: 'AssociationRequest',
AssociationResponse: 'AssociationResponse',
Unknown: 'Unknown'
}
@@ -51,6 +53,11 @@ class AuthenticationPacket extends Packet{
authenticationType;
}
class AssociationRequestPacket extends PacketWithSSID{}
class AssociationResponsePacket extends Packet{
associationIsSuccessful;
}
// Specify exports
module.exports = {
PacketType,
@@ -61,4 +68,6 @@ module.exports = {
ProbeResponsePacket,
AuthenticationType,
AuthenticationPacket,
AssociationRequestPacket,
AssociationResponsePacket,
};