Package org.pcap4j.packet
Class Dot112040BssCoexistenceElement
- java.lang.Object
-
- org.pcap4j.packet.Dot11InformationElement
-
- org.pcap4j.packet.Dot112040BssCoexistenceElement
-
- All Implemented Interfaces:
java.io.Serializable
public final class Dot112040BssCoexistenceElement extends Dot11InformationElement
IEEE802.11 20/40 BSS Coexistence element1 1 1 +-----------------+-----------------+-----------------+ | Element ID | Length |Information field| +-----------------+-----------------+-----------------+ Element ID: 72
The 20/40 BSS Coexistence element is used by STAs to exchange information that affects 20/40 BSS coexistence. The structure of the 20/40 BSS Coexistence Information field is as follows:B0 B1 B2 B3 B4 B5,6,7 +-------------+-------------+-------------+-------------+-------------+-------------+ |Information |Forty MHz |20 MHz BSS |OBSS Scanning|OBSS Scanning| Reserved | |Request |Intolerant |Width Request|Exemption |Exemption | | | | | |Request |Grant | | +-------------+-------------+-------------+-------------+-------------+-------------+
The Information Request field is used to indicate that a transmitting STA is requesting the recipient to transmit a 20/40 BSS Coexistence Management frame with the transmitting STA as the recipient. The Forty MHz Intolerant field is set to 1 to prohibit an AP that receives this information or reports of this information from operating a 20/40 MHz BSS. When equal to 0, it does not prohibit a receiving AP from operating a 20/40 MHz BSS. This field is used for inter-BSS communication. The definition of this field is the same as the definition of the Forty MHz Intolerant field in the HT Capabilities element. The 20 MHz BSS Width Request field is set to 1 to prohibit a receiving AP from operating its BSS as a 20/40 MHz BSS. Otherwise, it is set to 0. This field is used for intra-BSS communication. The OBSS Scanning Exemption Request field is set to 1 to indicate that the transmitting non-AP STA is requesting the BSS to allow the STA to be exempt from OBSS scanning. Otherwise, it is set to 0. The OBSS Scanning Exemption Request field is reserved when transmitted by an AP. The OBSS Scanning Exemption Request field is reserved when a 20/40 BSS Coexistence element is included in a group addressed frame. The OBSS Scanning Exemption Grant field is set to 1 by an AP to indicate that the receiving STA is exempted from performing OBSS Scanning. Otherwise, it is set to 0. The OBSS Scanning Exemption Grant field is reserved when transmitted by a non-AP STA. The OBSS Scanning Exemption Grant field is reserved when a 20/40 BSS Coexistence element is included in a group addressed frame.- Since:
- pcap4j 1.7.0
- Author:
- Kaito Yamada
- See Also:
- IEEE802.11, Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Dot112040BssCoexistenceElement.Builder
-
Method Summary
Modifier and Type Method Description boolean
equals(java.lang.Object obj)
boolean
getBit5()
boolean
getBit6()
boolean
getBit7()
Dot112040BssCoexistenceElement.Builder
getBuilder()
byte[]
getRawData()
int
hashCode()
boolean
is20MhzBssWidthRequested()
boolean
is40MhzIntolerant()
boolean
isInformationRequested()
boolean
isObssScanningExemptionGranted()
boolean
isObssScanningExemptionRequested()
int
length()
static Dot112040BssCoexistenceElement
newInstance(byte[] rawData, int offset, int length)
A static factory method.java.lang.String
toString()
java.lang.String
toString(java.lang.String indent)
-
Methods inherited from class org.pcap4j.packet.Dot11InformationElement
getElementId, getLength, getLengthAsInt
-
-
-
-
Method Detail
-
newInstance
public static Dot112040BssCoexistenceElement newInstance(byte[] rawData, int offset, int length) throws IllegalRawDataException
A static factory method. This method validates the arguments byByteArrays.validateBounds(byte[], int, int)
, which may throw exceptions undocumented here.- Parameters:
rawData
- rawDataoffset
- offsetlength
- length- Returns:
- a new Dot112040BssCoexistenceElement object.
- Throws:
IllegalRawDataException
- if parsing the raw data fails.
-
isInformationRequested
public boolean isInformationRequested()
- Returns:
- true if the Information Request field is set to 1; otherwise false.
-
is40MhzIntolerant
public boolean is40MhzIntolerant()
- Returns:
- true if the Forty MHz Intolerant field is set to 1; otherwise false.
-
is20MhzBssWidthRequested
public boolean is20MhzBssWidthRequested()
- Returns:
- true if the 20 MHz BSS Width Request field is set to 1; otherwise false.
-
isObssScanningExemptionRequested
public boolean isObssScanningExemptionRequested()
- Returns:
- true if the OBSS Scanning Exemption Request field is set to 1; otherwise false.
-
isObssScanningExemptionGranted
public boolean isObssScanningExemptionGranted()
- Returns:
- true if the OBSS Scanning Exemption Grant field is set to 1; otherwise false.
-
getBit5
public boolean getBit5()
- Returns:
- true if the bit 5 of the Information field is set to 1; otherwise false.
-
getBit6
public boolean getBit6()
- Returns:
- true if the bit 6 of the Information field is set to 1; otherwise false.
-
getBit7
public boolean getBit7()
- Returns:
- true if bit 7 of the Information field is set to 1; otherwise false.
-
length
public int length()
- Specified by:
length
in classDot11InformationElement
- Returns:
- the length
-
getRawData
public byte[] getRawData()
- Specified by:
getRawData
in classDot11InformationElement
- Returns:
- the raw data.
-
getBuilder
public Dot112040BssCoexistenceElement.Builder getBuilder()
- Returns:
- a new Builder object populated with this object's fields.
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classDot11InformationElement
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classDot11InformationElement
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
toString
public java.lang.String toString(java.lang.String indent)
- Parameters:
indent
- indent- Returns:
- the string representation of this object.
-
-