/* This file is part of PacketDotNet PacketDotNet is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. PacketDotNet is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with PacketDotNet. If not, see . */ /* * Copyright 2012 Alan Rushforth */ using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace PacketDotNet { namespace Ieee80211 { /// /// Specifies the reasons why a station may have been disassociated or deauthenticated by an access point. /// public enum ReasonCode { /// /// No reason was given. /// None = 0, /// /// The reason was not specified. /// Unspecified = 1, /// /// The previous authentication was no longer valid. /// AuthNoLongerValid = 2, /// /// The station is leaving (or has left) the IBSS or ESS. /// Leaving = 3, /// /// The station has been disassociated due to inactivity. /// Inactivity = 4, /// /// The access point is unable to handle anymore associated stations. /// OutOfResources = 5, /// /// The station needs to be authenticated. /// NeedAuthentication = 6, /// /// The station needs to be associated. /// NeedAssociation = 7, /// /// The station is leaving the BSS. /// LeavingToRoam = 8, /// /// Association is invalid because the station is not authenticated. /// AssociationInvalid = 9, /// /// The Power Capability information is unacceptable. /// BadPower = 10, /// /// The Supported Channels information is unacceptable. /// BadChannels = 11, /// /// An invalid information element has been provided. /// InvalidInformationElement = 13, /// /// The message integrity check failed. /// MessageIntegrityCheckFailure = 14, /// /// The 4way handshake has timed out. /// FourwayHandshakeTimeout = 15, /// /// The Group Key handshake has timed out. /// GroupKeyHandshakeTimeout = 16, /// /// An information element in the 4way handshake differs from in previous management frames. /// FourwayHandshakeInvalid = 17, /// /// The group cipher is invalid. /// GroupCipherInvalid = 18, /// /// The pairwise cipher is invalid. /// PairwiseCipherInvalid = 19, /// /// The Authentication Key Managment Protocol is invalid. /// AuthenticationKeyManagmentProtocolInvalid = 20, /// /// The provided RSN information element version is unsupported. /// RsnVersionUnsupported = 21, /// /// The provided RSN information element capabilities are invalid. /// RsnCapabilitiesInvalid = 22, /// /// There has been an IEEE 802.1X authentication failure. /// Ieee8021XFailure = 23, /// /// The cipher suite has been rejected due to the security policy. /// CipherRejected = 24, /// /// The station has been disassociated due to an unspecified QoS related reason. /// QosUnspecified = 32, /// /// The access point lacks sufficient bandwidth for the station. /// QosOutOfResources = 33, /// /// An excessive number of frames have failed to be acknowledged due to poor channel conditions. /// PoorChannelConditions = 34, /// /// The station is transmitting outside the limits of its TXOPs. /// InvalidTxop = 35, /// /// Disassociation was requested by the station as it is leaving the BSS. /// RequestedLeaving = 36, /// /// Disassociation was requested by the station as it is no longer wants to use the mechanism. /// RequestedNoUse = 37, /// /// Disassociation was requested by the station as it requires setup to use the mechanism. /// RequestedNeedsSetup = 38, /// /// Disassociation was requested by the station due to a timeout. /// RequestedDueToTimeout = 39, /// /// The station does not support the cipher suite. /// CipherUnsupported = 45 } } }