#include "block-ack-type.h"#include "wifi-types.h"#include "ns3/fatal-error.h"#include "ns3/nstime.h"#include "ns3/ptr.h"#include <list>#include <map>#include <set>
Include dependency graph for wifi-utils.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Namespaces | |
| namespace | ns3 |
| Every class exported by the ns3 library is enclosed in the ns3 namespace. | |
Typedefs | |
| using | ns3::WifiTidLinkMapping = std::map<uint8_t, std::set<uint8_t>> |
| TID-indexed map of the link set to which the TID is mapped. | |
Enumerations | |
| enum class | ns3::WifiDirection : uint8_t { ns3::DOWNLINK = 0 , ns3::UPLINK = 1 , ns3::BOTH_DIRECTIONS = 2 } |
| Wifi direction. More... | |
Functions | |
| void | ns3::AddWifiMacTrailer (Ptr< Packet > packet) |
| Add FCS trailer to a packet. | |
| std::size_t | ns3::Count20MHzSubchannels (MHz_u channelWidth) |
| Return the number of 20 MHz subchannels covering the channel width. | |
| std::size_t | ns3::Count20MHzSubchannels (MHz_u lower, MHz_u upper) |
| Return the number of 20 MHz subchannels covering the channel width between a lower frequency and an upper frequency. | |
| Watt_u | ns3::DbmToW (dBm_u val) |
| Convert from dBm to Watts. | |
| double | ns3::DbToRatio (dB_u val) |
| Convert from dB to ratio. | |
| uint32_t | ns3::GetAckSize () |
| Return the total Ack size (including FCS trailer). | |
| uint32_t | ns3::GetBlockAckRequestSize (BlockAckReqType type) |
| Return the total BlockAckRequest size (including FCS trailer). | |
| uint32_t | ns3::GetBlockAckSize (BlockAckType type) |
| Return the total BlockAck size (including FCS trailer). | |
| uint32_t | ns3::GetCtsSize () |
| Return the total CTS size (including FCS trailer). | |
| Mac48Address | ns3::GetIndividuallyAddressedRecipient (Ptr< WifiMac > mac, const WifiMacHeader &hdr) |
| Get the MAC address of the individually addressed recipient to use for a given packet. | |
| uint32_t | ns3::GetMuBarSize (std::list< BlockAckReqType > types) |
| Return the total MU-BAR size (including FCS trailer). | |
| uint32_t | ns3::GetRtsSize () |
| Return the total RTS size (including FCS trailer). | |
| uint32_t | ns3::GetSize (Ptr< const Packet > packet, const WifiMacHeader *hdr, bool isAmpdu) |
| Return the total size of the packet after WifiMacHeader and FCS trailer have been added. | |
| MHz_u | ns3::HzToMHz (Hz_u val) |
| Convert from Hz to MHz. | |
| bool | ns3::IsGcr (Ptr< WifiMac > mac, const WifiMacHeader &hdr) |
| Return whether a given packet is transmitted using the GCR service. | |
| bool | ns3::IsGroupcast (const Mac48Address &adr) |
| Check whether a MAC destination address corresponds to a groupcast transmission. | |
| bool | ns3::IsInWindow (uint16_t seq, uint16_t winstart, uint16_t winsize) |
| Hz_u | ns3::MHzToHz (MHz_u val) |
| Convert from MHz to Hz. | |
| std::ostream & | ns3::operator<< (std::ostream &os, const WifiDirection &direction) |
| Stream insertion operator. | |
| dB_u | ns3::RatioToDb (double ratio) |
| Convert from ratio to dB. | |
| bool | ns3::TidToLinkMappingValidForNegType1 (const WifiTidLinkMapping &dlLinkMapping, const WifiTidLinkMapping &ulLinkMapping) |
| Check if the given TID-to-Link Mappings are valid for a negotiation type of 1. | |
| dBm_u | ns3::WToDbm (Watt_u val) |
| Convert from Watts to dBm. | |
Variables | |
| static constexpr uint16_t | ns3::SEQNO_SPACE_HALF_SIZE = SEQNO_SPACE_SIZE / 2 |
| Size of the half the space of sequence numbers (used to determine old packets) | |
| static constexpr uint16_t | ns3::SEQNO_SPACE_SIZE = 4096 |
| Size of the space of sequence numbers. | |
| static constexpr uint8_t | ns3::SINGLE_LINK_OP_ID = 0 |
| Link ID for single link operations (helps tracking places where correct link ID is to be used to support multi-link operations) | |
| static constexpr uint8_t | ns3::WIFI_LINKID_UNDEFINED = 0xff |
| Invalid link identifier. | |
| static constexpr uint8_t | ns3::WIFI_TID_UNDEFINED = 0xff |
| Invalid TID identifier. | |
| constexpr int | ns3::WIFI_TU_US = 1024 |
| Wi-Fi Time Unit value in microseconds (see IEEE 802.11-2020 sec. | |