|
|
@ -1,20 +1,20 @@
|
|
|
|
const PacketType = {
|
|
|
|
const PacketType = {
|
|
|
|
Beacon: 'Beacon',
|
|
|
|
Beacon: "Beacon",
|
|
|
|
ProbeRequest: 'ProbeRequest',
|
|
|
|
ProbeRequest: "ProbeRequest",
|
|
|
|
ProbeResponse: 'ProbeResponse',
|
|
|
|
ProbeResponse: "ProbeResponse",
|
|
|
|
Data: 'Data',
|
|
|
|
Data: "Data",
|
|
|
|
RequestToSend: 'RequestToSend',
|
|
|
|
RequestToSend: "RequestToSend",
|
|
|
|
ClearToSend: 'ClearToSend',
|
|
|
|
ClearToSend: "ClearToSend",
|
|
|
|
Acknowledgment: 'Acknowledgment',
|
|
|
|
Acknowledgment: "Acknowledgment",
|
|
|
|
BlockAcknowledgment: 'BlockAcknowledgment',
|
|
|
|
BlockAcknowledgment: "BlockAcknowledgment",
|
|
|
|
NoData: 'NoData',
|
|
|
|
NoData: "NoData",
|
|
|
|
Authentication: 'Authentication',
|
|
|
|
Authentication: "Authentication",
|
|
|
|
AssociationRequest: 'AssociationRequest',
|
|
|
|
AssociationRequest: "AssociationRequest",
|
|
|
|
AssociationResponse: 'AssociationResponse',
|
|
|
|
AssociationResponse: "AssociationResponse",
|
|
|
|
Disassociation: 'Disassociation',
|
|
|
|
Disassociation: "Disassociation",
|
|
|
|
Handshake: 'Handshake',
|
|
|
|
Handshake: "Handshake",
|
|
|
|
Unknown: 'Unknown'
|
|
|
|
Unknown: "Unknown"
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
const FlagType = {
|
|
|
|
const FlagType = {
|
|
|
|
MoreFragments: "MoreFragments",
|
|
|
|
MoreFragments: "MoreFragments",
|
|
|
@ -23,7 +23,7 @@ const FlagType = {
|
|
|
|
MoreData: "MoreData",
|
|
|
|
MoreData: "MoreData",
|
|
|
|
Protected: "Protected",
|
|
|
|
Protected: "Protected",
|
|
|
|
Order: "Order"
|
|
|
|
Order: "Order"
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
class Packet{
|
|
|
|
class Packet{
|
|
|
|
timestampMicros;
|
|
|
|
timestampMicros;
|
|
|
@ -58,9 +58,9 @@ class ProbeRequestPacket extends PacketWithSSID{}
|
|
|
|
class ProbeResponsePacket extends PacketWithSSID{}
|
|
|
|
class ProbeResponsePacket extends PacketWithSSID{}
|
|
|
|
|
|
|
|
|
|
|
|
const AuthenticationType = {
|
|
|
|
const AuthenticationType = {
|
|
|
|
OpenSystem_1: 'OpenSystem_1',
|
|
|
|
OpenSystem_1: "OpenSystem_1",
|
|
|
|
OpenSystem_2: 'OpenSystem_2',
|
|
|
|
OpenSystem_2: "OpenSystem_2",
|
|
|
|
Unknown: 'Unknown',
|
|
|
|
Unknown: "Unknown",
|
|
|
|
}
|
|
|
|
}
|
|
|
|
class AuthenticationPacket extends Packet{
|
|
|
|
class AuthenticationPacket extends Packet{
|
|
|
|
authenticationType;
|
|
|
|
authenticationType;
|
|
|
@ -77,10 +77,10 @@ class DisassociationPacket extends Packet{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const HandshakeStage = {
|
|
|
|
const HandshakeStage = {
|
|
|
|
1: '1',
|
|
|
|
1: "1",
|
|
|
|
2: '2',
|
|
|
|
2: "2",
|
|
|
|
3: '3',
|
|
|
|
3: "3",
|
|
|
|
4: '4'
|
|
|
|
4: "4"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
class HandshakePacket extends Packet{
|
|
|
|
class HandshakePacket extends Packet{
|
|
|
|
handshakeStage;
|
|
|
|
handshakeStage;
|
|
|
|