A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
wifi-remote-station-manager.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2005,2006,2007 INRIA
3 *
4 * SPDX-License-Identifier: GPL-2.0-only
5 *
6 * Author: Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
7 */
8
9#ifndef WIFI_REMOTE_STATION_MANAGER_H
10#define WIFI_REMOTE_STATION_MANAGER_H
11
12#include "qos-utils.h"
13#include "wifi-mode.h"
15#include "wifi-utils.h"
16
17#include "ns3/data-rate.h"
18#include "ns3/eht-capabilities.h"
19#include "ns3/he-6ghz-band-capabilities.h"
20#include "ns3/he-capabilities.h"
21#include "ns3/ht-capabilities.h"
22#include "ns3/mac48-address.h"
23#include "ns3/multi-link-element.h"
24#include "ns3/object.h"
25#include "ns3/traced-callback.h"
26#include "ns3/vht-capabilities.h"
27
28#include <array>
29#include <memory>
30#include <optional>
31#include <unordered_map>
32
33namespace ns3
34{
35
36class WifiPhy;
37class WifiMac;
38class WifiMacHeader;
39class Packet;
40class WifiMpdu;
41class WifiTxVector;
42class WifiTxParameters;
43
44struct WifiRemoteStationState;
45struct RxSignalInfo;
46
47/**
48 * \brief hold per-remote-station state.
49 *
50 * The state in this class is used to keep track
51 * of association status if we are in an infrastructure
52 * network and to perform the selection of TX parameters
53 * on a per-packet basis.
54 *
55 * This class is typically subclassed and extended by
56 * rate control implementations
57 */
59{
60 virtual ~WifiRemoteStation(){};
61 WifiRemoteStationState* m_state; //!< Remote station state
62 std::pair<dBm_u, Time>
63 m_rssiAndUpdateTimePair; //!< RSSI of the most recent packet received from
64 //!< the remote station along with update time
65};
66
67/**
68 * A struct that holds information about each remote station.
69 */
71{
72 /**
73 * State of the station
74 */
75 enum
76 {
83
84 /**
85 * This member is the list of WifiMode objects that comprise the
86 * OperationalRateSet parameter for this remote station. This list
87 * is constructed through calls to
88 * WifiRemoteStationManager::AddSupportedMode(), and an API that
89 * allows external access to it is available through
90 * WifiRemoteStationManager::GetNSupported() and
91 * WifiRemoteStationManager::GetSupported().
92 */
93 WifiModeList m_operationalRateSet; //!< operational rate set
94 WifiModeList m_operationalMcsSet; //!< operational MCS set
95 Mac48Address m_address; //!< Mac48Address of the remote station
96 uint16_t m_aid; /**< AID of the remote station (unused if this object
97 is installed on a non-AP station) */
98 WifiRemoteStationInfo m_info; //!< remote station info
99 bool m_dsssSupported; //!< Flag if DSSS is supported by the remote station
100 bool m_erpOfdmSupported; //!< Flag if ERP OFDM is supported by the remote station
101 bool m_ofdmSupported; //!< Flag if OFDM is supported by the remote station
102 Ptr<const HtCapabilities> m_htCapabilities; //!< remote station HT capabilities
103 Ptr<const VhtCapabilities> m_vhtCapabilities; //!< remote station VHT capabilities
104 Ptr<const HeCapabilities> m_heCapabilities; //!< remote station HE capabilities
106 m_he6GhzBandCapabilities; //!< remote station HE 6GHz band capabilities
107 Ptr<const EhtCapabilities> m_ehtCapabilities; //!< remote station EHT capabilities
108 /// remote station Multi-Link Element Common Info
109 std::shared_ptr<CommonInfoBasicMle> m_mleCommonInfo;
110 bool m_emlsrEnabled; //!< whether EMLSR mode is enabled on this link
111
112 MHz_u m_channelWidth; //!< Channel width supported by the remote station
113 Time m_guardInterval; //!< HE Guard interval durationsupported by the remote station
114 uint8_t m_ness; //!< Number of extended spatial streams of the remote station
115 bool m_aggregation; //!< Flag if MPDU aggregation is used by the remote station
116 bool m_shortPreamble; //!< Flag if short PHY preamble is supported by the remote station
117 bool m_shortSlotTime; //!< Flag if short ERP slot time is supported by the remote station
118 bool m_qosSupported; //!< Flag if QoS is supported by the station
119 bool m_isInPsMode; //!< Flag if the STA is currently in PS mode
120};
121
122/**
123 * \ingroup wifi
124 * \brief hold a list of per-remote-station state.
125 *
126 * \sa ns3::WifiRemoteStation.
127 */
129{
130 public:
131 /**
132 * \brief Get the type ID.
133 * \return the object TypeId
134 */
135 static TypeId GetTypeId();
136
138 ~WifiRemoteStationManager() override;
139
140 /// ProtectionMode enumeration
146
147 /**
148 * A map of WifiRemoteStations with Mac48Address as key
149 */
150 using Stations = std::unordered_map<Mac48Address, WifiRemoteStation*, WifiAddressHash>;
151 /**
152 * A map of WifiRemoteStationStates with Mac48Address as key
153 */
155 std::unordered_map<Mac48Address, std::shared_ptr<WifiRemoteStationState>, WifiAddressHash>;
156
157 /**
158 * Set up PHY associated with this device since it is the object that
159 * knows the full set of transmit rates that are supported.
160 *
161 * \param phy the PHY of this device
162 */
163 virtual void SetupPhy(const Ptr<WifiPhy> phy);
164 /**
165 * Set up MAC associated with this device since it is the object that
166 * knows the full set of timing parameters (e.g. IFS).
167 *
168 * \param mac the MAC of this device
169 */
170 virtual void SetupMac(const Ptr<WifiMac> mac);
171
172 /**
173 * Assign a fixed random variable stream number to the random variables
174 * used by this model. Return the number of streams (possibly zero) that
175 * have been assigned.
176 *
177 * \param stream first stream index to use
178 * \return the number of stream indices assigned by this model
179 */
180 virtual int64_t AssignStreams(int64_t stream);
181
182 /**
183 * Sets the maximum STA short retry count (SSRC).
184 *
185 * \param maxSsrc the maximum SSRC
186 */
187 void SetMaxSsrc(uint32_t maxSsrc);
188 /**
189 * Sets the maximum STA long retry count (SLRC).
190 *
191 * \param maxSlrc the maximum SLRC
192 */
193 void SetMaxSlrc(uint32_t maxSlrc);
194 /**
195 * Sets the RTS threshold.
196 *
197 * \param threshold the RTS threshold
198 */
199 void SetRtsCtsThreshold(uint32_t threshold);
200
201 /**
202 * Return the fragmentation threshold.
203 *
204 * \return the fragmentation threshold
205 */
207 /**
208 * Sets a fragmentation threshold. The method calls a private method
209 * DoSetFragmentationThreshold that checks the validity of the value given.
210 *
211 * \param threshold the fragmentation threshold
212 */
213 void SetFragmentationThreshold(uint32_t threshold);
214
215 /**
216 * Record the AID of a remote station. Should only be called by APs.
217 *
218 * \param remoteAddress the MAC address of the remote station
219 * \param aid the Association ID
220 */
221 void SetAssociationId(Mac48Address remoteAddress, uint16_t aid);
222 /**
223 * Records QoS support of the remote station.
224 *
225 * \param from the address of the station being recorded
226 * \param qosSupported whether the station supports QoS
227 */
228 void SetQosSupport(Mac48Address from, bool qosSupported);
229 /**
230 * \param from the address of the station being recorded
231 * \param emlsrEnabled whether EMLSR mode is enabled for the station on this link
232 */
233 void SetEmlsrEnabled(const Mac48Address& from, bool emlsrEnabled);
234 /**
235 * Records HT capabilities of the remote station.
236 *
237 * \param from the address of the station being recorded
238 * \param htCapabilities the HT capabilities of the station
239 */
240 void AddStationHtCapabilities(Mac48Address from, HtCapabilities htCapabilities);
241 /**
242 * Records VHT capabilities of the remote station.
243 *
244 * \param from the address of the station being recorded
245 * \param vhtCapabilities the VHT capabilities of the station
246 */
247 void AddStationVhtCapabilities(Mac48Address from, VhtCapabilities vhtCapabilities);
248 /**
249 * Records HE capabilities of the remote station.
250 *
251 * \param from the address of the station being recorded
252 * \param heCapabilities the HE capabilities of the station
253 */
254 void AddStationHeCapabilities(Mac48Address from, HeCapabilities heCapabilities);
255 /**
256 * Records HE 6 GHz Band Capabilities of a remote station
257 *
258 * \param from the address of the remote station
259 * \param he6GhzCapabilities the HE 6 GHz Band Capabilities of the remote station
260 */
262 const He6GhzBandCapabilities& he6GhzCapabilities);
263 /**
264 * Records EHT capabilities of the remote station.
265 *
266 * \param from the address of the station being recorded
267 * \param ehtCapabilities the EHT capabilities of the station
268 */
269 void AddStationEhtCapabilities(Mac48Address from, EhtCapabilities ehtCapabilities);
270 /**
271 * Records the Common Info field advertised by the given remote station in a Multi-Link
272 * Element. It includes the MLD address of the remote station.
273 *
274 * \param from the address of the station being recorded
275 * \param mleCommonInfo the MLE Common Info advertised by the station
276 */
278 const std::shared_ptr<CommonInfoBasicMle>& mleCommonInfo);
279 /**
280 * Return the HT capabilities sent by the remote station.
281 *
282 * \param from the address of the remote station
283 * \return the HT capabilities sent by the remote station
284 */
286 /**
287 * Return the VHT capabilities sent by the remote station.
288 *
289 * \param from the address of the remote station
290 * \return the VHT capabilities sent by the remote station
291 */
293 /**
294 * Return the HE capabilities sent by the remote station.
295 *
296 * \param from the address of the remote station
297 * \return the HE capabilities sent by the remote station
298 */
300 /**
301 * Return the HE 6 GHz Band Capabilities sent by a remote station.
302 *
303 * \param from the address of the remote station
304 * \return the HE 6 GHz Band capabilities sent by the remote station
305 */
307 /**
308 * Return the EHT capabilities sent by the remote station.
309 *
310 * \param from the address of the remote station
311 * \return the EHT capabilities sent by the remote station
312 */
314 /**
315 * \param from the (MLD or link) address of the remote non-AP MLD
316 * \return the EML Capabilities advertised by the remote non-AP MLD
317 */
318 std::optional<std::reference_wrapper<CommonInfoBasicMle::EmlCapabilities>>
320 /**
321 * \param from the (MLD or link) address of the remote non-AP MLD
322 * \return the MLD Capabilities advertised by the remote non-AP MLD
323 */
324 std::optional<std::reference_wrapper<CommonInfoBasicMle::MldCapabilities>>
326 /**
327 * Return whether the device has HT capability support enabled on the link this manager is
328 * associated with. Note that this means that this function returns false if this is a
329 * 6 GHz link.
330 *
331 * \return true if HT capability support is enabled, false otherwise
332 */
333 bool GetHtSupported() const;
334 /**
335 * Return whether the device has VHT capability support enabled on the link this manager is
336 * associated with. Note that this means that this function returns false if this is a
337 * 2.4 or 6 GHz link.
338 *
339 * \return true if VHT capability support is enabled, false otherwise
340 */
341 bool GetVhtSupported() const;
342 /**
343 * Return whether the device has HE capability support enabled.
344 *
345 * \return true if HE capability support is enabled, false otherwise
346 */
347 bool GetHeSupported() const;
348 /**
349 * Return whether the device has EHT capability support enabled.
350 *
351 * \return true if EHT capability support is enabled, false otherwise
352 */
353 bool GetEhtSupported() const;
354 /**
355 * Return whether the device has LDPC support enabled.
356 *
357 * \return true if LDPC support is enabled, false otherwise
358 */
359 bool GetLdpcSupported() const;
360 /**
361 * Return whether the device has SGI support enabled.
362 *
363 * \return true if SGI support is enabled, false otherwise
364 */
366 /**
367 * Return the supported HE guard interval duration.
368 *
369 * \return the supported HE guard interval duration
370 */
371 Time GetGuardInterval() const;
372 /**
373 * Enable or disable protection for non-ERP stations.
374 *
375 * \param enable enable or disable protection for non-ERP stations
376 */
377 void SetUseNonErpProtection(bool enable);
378 /**
379 * Return whether the device supports protection of non-ERP stations.
380 *
381 * \return true if protection for non-ERP stations is enabled,
382 * false otherwise
383 */
384 bool GetUseNonErpProtection() const;
385 /**
386 * Enable or disable protection for non-HT stations.
387 *
388 * \param enable enable or disable protection for non-HT stations
389 */
390 void SetUseNonHtProtection(bool enable);
391 /**
392 * Return whether the device supports protection of non-HT stations.
393 *
394 * \return true if protection for non-HT stations is enabled,
395 * false otherwise
396 */
397 bool GetUseNonHtProtection() const;
398 /**
399 * Enable or disable short PHY preambles.
400 *
401 * \param enable enable or disable short PHY preambles
402 */
403 void SetShortPreambleEnabled(bool enable);
404 /**
405 * Return whether the device uses short PHY preambles.
406 *
407 * \return true if short PHY preambles are enabled,
408 * false otherwise
409 */
410 bool GetShortPreambleEnabled() const;
411 /**
412 * Enable or disable short slot time.
413 *
414 * \param enable enable or disable short slot time
415 */
416 void SetShortSlotTimeEnabled(bool enable);
417 /**
418 * Return whether the device uses short slot time.
419 *
420 * \return true if short slot time is enabled,
421 * false otherwise
422 */
423 bool GetShortSlotTimeEnabled() const;
424
425 /**
426 * Reset the station, invoked in a STA upon dis-association or in an AP upon reboot.
427 */
428 void Reset();
429
430 /**
431 * Invoked in a STA upon association to store the set of rates which belong to the
432 * BSSBasicRateSet of the associated AP and which are supported locally.
433 * Invoked in an AP to configure the BSSBasicRateSet.
434 *
435 * \param mode the WifiMode to be added to the basic mode set
436 */
437 void AddBasicMode(WifiMode mode);
438 /**
439 * Return the default transmission mode.
440 *
441 * \return WifiMode the default transmission mode
442 */
443 WifiMode GetDefaultMode() const;
444 /**
445 * Return the number of basic modes we support.
446 *
447 * \return the number of basic modes we support
448 */
449 uint8_t GetNBasicModes() const;
450 /**
451 * Return a basic mode from the set of basic modes.
452 *
453 * \param i index of the basic mode in the basic mode set
454 *
455 * \return the basic mode at the given index
456 */
457 WifiMode GetBasicMode(uint8_t i) const;
458 /**
459 * Return the number of non-ERP basic modes we support.
460 *
461 * \return the number of basic modes we support
462 */
464 /**
465 * Return a basic mode from the set of basic modes that is not an ERP mode.
466 *
467 * \param i index of the basic mode in the basic mode set
468 *
469 * \return the basic mode at the given index
470 */
471 WifiMode GetNonErpBasicMode(uint8_t i) const;
472 /**
473 * Return whether the station supports LDPC or not.
474 *
475 * \param address the address of the station
476 *
477 * \return true if LDPC is supported by the station,
478 * false otherwise
479 */
480 bool GetLdpcSupported(Mac48Address address) const;
481 /**
482 * Return whether the station supports short PHY preamble or not.
483 *
484 * \param address the address of the station
485 *
486 * \return true if short PHY preamble is supported by the station,
487 * false otherwise
488 */
489 bool GetShortPreambleSupported(Mac48Address address) const;
490 /**
491 * Return whether the station supports short ERP slot time or not.
492 *
493 * \param address the address of the station
494 *
495 * \return true if short ERP slot time is supported by the station,
496 * false otherwise
497 */
498 bool GetShortSlotTimeSupported(Mac48Address address) const;
499 /**
500 * Return whether the given station is QoS capable.
501 *
502 * \param address the address of the station
503 *
504 * \return true if the station has QoS capabilities,
505 * false otherwise
506 */
507 bool GetQosSupported(Mac48Address address) const;
508 /**
509 * Get the AID of a remote station. Should only be called by APs.
510 *
511 * \param remoteAddress the MAC address of the remote station
512 * \return the Association ID if the station is associated, SU_STA_ID otherwise
513 */
514 uint16_t GetAssociationId(Mac48Address remoteAddress) const;
515 /**
516 * Add a given Modulation and Coding Scheme (MCS) index to
517 * the set of basic MCS.
518 *
519 * \param mcs the WifiMode to be added to the basic MCS set
520 */
521 void AddBasicMcs(WifiMode mcs);
522 /**
523 * Return the default Modulation and Coding Scheme (MCS) index.
524 *
525 * \return the default WifiMode
526 */
527 WifiMode GetDefaultMcs() const;
528 /**
529 * Return the default MCS to use to transmit frames to the given station.
530 *
531 * \param st the given station
532 * \return the default MCS to use to transmit frames to the given station
533 */
535 /**
536 * Return the number of basic MCS index.
537 *
538 * \return the number of basic MCS index
539 */
540 uint8_t GetNBasicMcs() const;
541 /**
542 * Return the MCS at the given <i>list</i> index.
543 *
544 * \param i the position in the list
545 *
546 * \return the basic MCS at the given list index
547 */
548 WifiMode GetBasicMcs(uint8_t i) const;
549 /**
550 * Record the MCS index supported by the station.
551 *
552 * \param address the address of the station
553 * \param mcs the WifiMode supported by the station
554 */
555 void AddSupportedMcs(Mac48Address address, WifiMode mcs);
556 /**
557 * Return the channel width supported by the station.
558 *
559 * \param address the address of the station
560 *
561 * \return the channel width supported by the station
562 */
564 /**
565 * Return whether the station supports HT/VHT short guard interval.
566 *
567 * \param address the address of the station
568 *
569 * \return true if the station supports HT/VHT short guard interval,
570 * false otherwise
571 */
573 /**
574 * Return the number of spatial streams supported by the station.
575 *
576 * \param address the address of the station
577 *
578 * \return the number of spatial streams supported by the station
579 */
580 uint8_t GetNumberOfSupportedStreams(Mac48Address address) const;
581 /**
582 * Return the number of MCS supported by the station.
583 *
584 * \param address the address of the station
585 *
586 * \return the number of MCS supported by the station
587 */
588 uint8_t GetNMcsSupported(Mac48Address address) const;
589 /**
590 * Return whether the station supports DSSS or not.
591 *
592 * \param address the address of the station
593 *
594 * \return true if DSSS is supported by the station,
595 * false otherwise
596 */
597 bool GetDsssSupported(const Mac48Address& address) const;
598 /**
599 * Return whether the station supports ERP OFDM or not.
600 *
601 * \param address the address of the station
602 *
603 * \return true if ERP OFDM is supported by the station,
604 * false otherwise
605 */
606 bool GetErpOfdmSupported(const Mac48Address& address) const;
607 /**
608 * Return whether the station supports OFDM or not.
609 *
610 * \param address the address of the station
611 *
612 * \return true if OFDM is supported by the station,
613 * false otherwise
614 */
615 bool GetOfdmSupported(const Mac48Address& address) const;
616 /**
617 * Return whether the station supports HT or not.
618 *
619 * \param address the address of the station
620 *
621 * \return true if HT is supported by the station,
622 * false otherwise
623 */
624 bool GetHtSupported(Mac48Address address) const;
625 /**
626 * Return whether the station supports VHT or not.
627 *
628 * \param address the address of the station
629 *
630 * \return true if VHT is supported by the station,
631 * false otherwise
632 */
633 bool GetVhtSupported(Mac48Address address) const;
634 /**
635 * Return whether the station supports HE or not.
636 *
637 * \param address the address of the station
638 *
639 * \return true if HE is supported by the station,
640 * false otherwise
641 */
642 bool GetHeSupported(Mac48Address address) const;
643 /**
644 * Return whether the station supports EHT or not.
645 *
646 * \param address the address of the station
647 *
648 * \return true if EHT is supported by the station,
649 * false otherwise
650 */
651 bool GetEhtSupported(Mac48Address address) const;
652 /**
653 * \param address the (MLD or link) address of the non-AP MLD
654 * \return whether the non-AP MLD supports EMLSR
655 */
656 bool GetEmlsrSupported(const Mac48Address& address) const;
657 /**
658 * \param address the (MLD or link) address of the non-AP MLD
659 * \return whether EMLSR mode is enabled for the non-AP MLD on this link
660 */
661 bool GetEmlsrEnabled(const Mac48Address& address) const;
662
663 /**
664 * Return a mode for non-unicast packets.
665 *
666 * \return WifiMode for non-unicast packets
667 */
669
670 /**
671 * Invoked in a STA or AP to store the set of
672 * modes supported by a destination which is
673 * also supported locally.
674 * The set of supported modes includes
675 * the BSSBasicRateSet.
676 *
677 * \param address the address of the station being recorded
678 * \param mode the WifiMode supports by the station
679 */
680 void AddSupportedMode(Mac48Address address, WifiMode mode);
681 /**
682 * Invoked in a STA or AP to store all of the modes supported
683 * by a destination which is also supported locally.
684 * The set of supported modes includes the BSSBasicRateSet.
685 *
686 * \param address the address of the station being recorded
687 */
689 /**
690 * Invoked in a STA or AP to store all of the MCS supported
691 * by a destination which is also supported locally.
692 *
693 * \param address the address of the station being recorded
694 */
695 void AddAllSupportedMcs(Mac48Address address);
696 /**
697 * Invoked in a STA or AP to delete all of the supported MCS by a destination.
698 *
699 * \param address the address of the station being recorded
700 */
702 /**
703 * Record whether the short PHY preamble is supported by the station.
704 *
705 * \param address the address of the station
706 * \param isShortPreambleSupported whether or not short PHY preamble is supported by the station
707 */
708 void AddSupportedPhyPreamble(Mac48Address address, bool isShortPreambleSupported);
709 /**
710 * Record whether the short ERP slot time is supported by the station.
711 *
712 * \param address the address of the station
713 * \param isShortSlotTimeSupported whether or not short ERP slot time is supported by the
714 * station
715 */
716 void AddSupportedErpSlotTime(Mac48Address address, bool isShortSlotTimeSupported);
717 /**
718 * Return whether the station state is brand new.
719 *
720 * \param address the address of the station
721 *
722 * \return true if the state of the station is brand new,
723 * false otherwise
724 */
725 bool IsBrandNew(Mac48Address address) const;
726 /**
727 * Return whether the station associated.
728 *
729 * \param address the address of the station
730 *
731 * \return true if the station is associated,
732 * false otherwise
733 */
734 bool IsAssociated(Mac48Address address) const;
735 /**
736 * Return whether we are waiting for an ACK for
737 * the association response we sent.
738 *
739 * \param address the address of the station
740 *
741 * \return true if the station is associated,
742 * false otherwise
743 */
744 bool IsWaitAssocTxOk(Mac48Address address) const;
745 /**
746 * Records that we are waiting for an ACK for
747 * the association response we sent.
748 *
749 * \param address the address of the station
750 */
751 void RecordWaitAssocTxOk(Mac48Address address);
752 /**
753 * Records that we got an ACK for
754 * the association response we sent.
755 *
756 * \param address the address of the station
757 */
758 void RecordGotAssocTxOk(Mac48Address address);
759 /**
760 * Records that we missed an ACK for
761 * the association response we sent.
762 *
763 * \param address the address of the station
764 */
766 /**
767 * Records that the STA was disassociated.
768 *
769 * \param address the address of the station
770 */
771 void RecordDisassociated(Mac48Address address);
772 /**
773 * Return whether we refused an association request from the given station
774 *
775 * \param address the address of the station
776 * \return true if we refused an association request, false otherwise
777 */
778 bool IsAssocRefused(Mac48Address address) const;
779 /**
780 * Records that association request was refused
781 *
782 * \param address the address of the station
783 */
784 void RecordAssocRefused(Mac48Address address);
785
786 /**
787 * Return whether the STA is currently in Power Save mode.
788 *
789 * \param address the address of the station
790 *
791 * \return true if the station is in Power Save mode, false otherwise
792 */
793 bool IsInPsMode(const Mac48Address& address) const;
794 /**
795 * Register whether the STA is in Power Save mode or not.
796 *
797 * \param address the address of the station
798 * \param isInPsMode whether the STA is in PS mode or not
799 */
800 void SetPsMode(const Mac48Address& address, bool isInPsMode);
801
802 /**
803 * Get the address of the MLD the given station is affiliated with, if any.
804 * Note that an MLD address is only present if an ML discovery/setup was performed
805 * with the given station (which requires both this station and the given
806 * station to be MLDs).
807 *
808 * \param address the MAC address of the remote station
809 * \return the address of the MLD the given station is affiliated with, if any
810 */
811 std::optional<Mac48Address> GetMldAddress(const Mac48Address& address) const;
812 /**
813 * Get the address of the remote station operating on this link and affiliated
814 * with the MLD having the given MAC address, if any.
815 *
816 * \param mldAddress the MLD MAC address
817 * \return the address of the remote station operating on this link and
818 * affiliated with the MLD, if any
819 */
820 std::optional<Mac48Address> GetAffiliatedStaAddress(const Mac48Address& mldAddress) const;
821
822 /**
823 * \param header MAC header
824 * \param allowedWidth the allowed width to send this packet
825 * \return the TXVECTOR to use to send this packet
826 */
827 WifiTxVector GetDataTxVector(const WifiMacHeader& header, MHz_u allowedWidth);
828 /**
829 * \param address remote address
830 * \param allowedWidth the allowed width for the data frame being protected
831 *
832 * \return the TXVECTOR to use to send the RTS prior to the
833 * transmission of the data packet itself.
834 */
835 WifiTxVector GetRtsTxVector(Mac48Address address, MHz_u allowedWidth);
836 /**
837 * Return a TXVECTOR for the CTS frame given the destination and the mode of the RTS
838 * used by the sender.
839 *
840 * \param to the MAC address of the CTS receiver
841 * \param rtsTxMode the mode of the RTS used by the sender
842 * \return TXVECTOR for the CTS
843 */
845 /**
846 * Since CTS-to-self parameters are not dependent on the station,
847 * it is implemented in wifi remote station manager
848 *
849 * \return the transmission mode to use to send the CTS-to-self prior to the
850 * transmission of the data packet itself.
851 */
853 /**
854 * Adjust the TXVECTOR for an initial Control frame to ensure that the modulation class
855 * is non-HT and the rate is 6 Mbps, 12 Mbps or 24 Mbps.
856 *
857 * \param txVector the TXVECTOR to adjust
858 */
859 void AdjustTxVectorForIcf(WifiTxVector& txVector) const;
860 /**
861 * Return a TXVECTOR for the Ack frame given the destination and the mode of the Data
862 * used by the sender.
863 *
864 * \param to the MAC address of the Ack receiver
865 * \param dataTxVector the TXVECTOR of the Data used by the sender
866 * \return TXVECTOR for the Ack
867 */
868 WifiTxVector GetAckTxVector(Mac48Address to, const WifiTxVector& dataTxVector) const;
869 /**
870 * Return a TXVECTOR for the BlockAck frame given the destination and the mode of the Data
871 * used by the sender.
872 *
873 * \param to the MAC address of the BlockAck receiver
874 * \param dataTxVector the TXVECTOR of the Data used by the sender
875 * \return TXVECTOR for the BlockAck
876 */
877 WifiTxVector GetBlockAckTxVector(Mac48Address to, const WifiTxVector& dataTxVector) const;
878 /**
879 * Get control answer mode function.
880 *
881 * \param reqMode request mode
882 * \return control answer mode
883 */
885
886 /**
887 * Should be invoked whenever the RtsTimeout associated to a transmission
888 * attempt expires.
889 *
890 * \param header MAC header of the DATA packet
891 */
892 void ReportRtsFailed(const WifiMacHeader& header);
893 /**
894 * Should be invoked whenever the AckTimeout associated to a transmission
895 * attempt expires.
896 *
897 * \param mpdu the MPDU whose transmission failed
898 */
900 /**
901 * Should be invoked whenever we receive the CTS associated to an RTS
902 * we just sent. Note that we also get the SNR of the RTS we sent since
903 * the receiver put a SnrTag in the CTS.
904 *
905 * \param header MAC header of the DATA packet
906 * \param ctsSnr the SNR of the CTS we received
907 * \param ctsMode the WifiMode the receiver used to send the CTS
908 * \param rtsSnr the SNR of the RTS we sent
909 */
910 void ReportRtsOk(const WifiMacHeader& header, double ctsSnr, WifiMode ctsMode, double rtsSnr);
911 /**
912 * Should be invoked whenever we receive the ACK associated to a data packet
913 * we just sent.
914 *
915 * \param mpdu the MPDU
916 * \param ackSnr the SNR of the ACK we received
917 * \param ackMode the WifiMode the receiver used to send the ACK
918 * \param dataSnr the SNR of the DATA we sent
919 * \param dataTxVector the TXVECTOR of the DATA we sent
920 */
922 double ackSnr,
923 WifiMode ackMode,
924 double dataSnr,
925 WifiTxVector dataTxVector);
926 /**
927 * Should be invoked after calling ReportRtsFailed if
928 * NeedRetransmission returns false
929 *
930 * \param header MAC header of the DATA packet
931 */
932 void ReportFinalRtsFailed(const WifiMacHeader& header);
933 /**
934 * Should be invoked after calling ReportDataFailed if
935 * NeedRetransmission returns false
936 *
937 * \param mpdu the MPDU which was discarded
938 */
940 /**
941 * Typically called per A-MPDU, either when a Block ACK was successfully
942 * received or when a BlockAckTimeout has elapsed.
943 *
944 * \param address the address of the receiver
945 * \param nSuccessfulMpdus number of successfully transmitted MPDUs
946 * A value of 0 means that the Block ACK was missed.
947 * \param nFailedMpdus number of unsuccessfuly transmitted MPDUs
948 * \param rxSnr received SNR of the block ack frame itself
949 * \param dataSnr data SNR reported by remote station
950 * \param dataTxVector the TXVECTOR of the MPDUs we sent
951 */
953 uint16_t nSuccessfulMpdus,
954 uint16_t nFailedMpdus,
955 double rxSnr,
956 double dataSnr,
957 WifiTxVector dataTxVector);
958
959 /**
960 * \param address remote address
961 * \param rxSignalInfo the info on the received signal (\see RxSignalInfo)
962 * \param txVector the TXVECTOR used for the packet received
963 *
964 * Should be invoked whenever a packet is successfully received.
965 */
966 void ReportRxOk(Mac48Address address, RxSignalInfo rxSignalInfo, WifiTxVector txVector);
967
968 /**
969 * \param header MAC header of the data frame to send
970 * \param txParams the TX parameters for the data frame to send
971 *
972 * \return true if we want to use an RTS/CTS handshake for this
973 * frame before sending it, false otherwise.
974 */
975 bool NeedRts(const WifiMacHeader& header, const WifiTxParameters& txParams);
976 /**
977 * Return if we need to do CTS-to-self before sending a DATA.
978 *
979 * \param txVector the TXVECTOR of the packet to be sent
980 *
981 * \return true if CTS-to-self is needed,
982 * false otherwise
983 */
984 bool NeedCtsToSelf(WifiTxVector txVector);
985
986 /**
987 * \param mpdu the MPDU to send
988 *
989 * \return true if we want to resend a packet after a failed transmission attempt,
990 * false otherwise.
991 */
993 /**
994 * \param mpdu the MPDU to send
995 *
996 * \return true if this packet should be fragmented,
997 * false otherwise.
998 */
1000 /**
1001 * \param mpdu the MPDU to send
1002 * \param fragmentNumber the fragment index of the next fragment to send (starts at zero).
1003 *
1004 * \return the size of the corresponding fragment.
1005 */
1007 /**
1008 * \param mpdu the packet to send
1009 * \param fragmentNumber the fragment index of the next fragment to send (starts at zero).
1010 *
1011 * \return the offset within the original packet where this fragment starts.
1012 */
1014 /**
1015 * \param mpdu the packet to send
1016 * \param fragmentNumber the fragment index of the next fragment to send (starts at zero).
1017 *
1018 * \return true if this is the last fragment, false otherwise.
1019 */
1020 bool IsLastFragment(Ptr<const WifiMpdu> mpdu, uint32_t fragmentNumber);
1021
1022 /**
1023 * \return the default transmission power
1024 */
1025 uint8_t GetDefaultTxPowerLevel() const;
1026 /**
1027 * \param address of the remote station
1028 *
1029 * \return information regarding the remote station associated with the given address
1030 */
1032 /**
1033 * \param address of the remote station
1034 *
1035 * \return the RSSI of the most recent packet received from the remote station (irrespective of
1036 * TID)
1037 *
1038 * This method is typically used when the device needs
1039 * to estimate the target UL RSSI info to put in the
1040 * Trigger frame to send to the remote station.
1041 */
1042 std::optional<dBm_u> GetMostRecentRssi(Mac48Address address) const;
1043 /**
1044 * Set the default transmission power level
1045 *
1046 * \param txPower the default transmission power level
1047 */
1048 void SetDefaultTxPowerLevel(uint8_t txPower);
1049 /**
1050 * \return the number of antennas supported by the PHY layer
1051 */
1052 uint8_t GetNumberOfAntennas() const;
1053 /**
1054 * \return the maximum number of spatial streams supported by the PHY layer
1055 */
1056 uint8_t GetMaxNumberOfTransmitStreams() const;
1057 /**
1058 * \returns whether LDPC should be used for a given destination address.
1059 *
1060 * \param dest the destination address
1061 *
1062 * \return whether LDPC should be used for a given destination address
1063 */
1064 bool UseLdpcForDestination(Mac48Address dest) const;
1065
1066 /**
1067 * TracedCallback signature for power change events.
1068 *
1069 * \param [in] oldPower The previous power (in dBm).
1070 * \param [in] newPower The new power (in dBm).
1071 * \param [in] address The remote station MAC address.
1072 */
1073 typedef void (*PowerChangeTracedCallback)(double oldPower,
1074 double newPower,
1075 Mac48Address remoteAddress);
1076
1077 /**
1078 * TracedCallback signature for rate change events.
1079 *
1080 * \param [in] oldRate The previous data rate.
1081 * \param [in] newRate The new data rate.
1082 * \param [in] address The remote station MAC address.
1083 */
1084 typedef void (*RateChangeTracedCallback)(DataRate oldRate,
1085 DataRate newRate,
1086 Mac48Address remoteAddress);
1087
1088 /**
1089 * Return the WifiPhy.
1090 *
1091 * \return a pointer to the WifiPhy
1092 */
1093 Ptr<WifiPhy> GetPhy() const;
1094 /**
1095 * Return the WifiMac.
1096 *
1097 * \return a pointer to the WifiMac
1098 */
1099 Ptr<WifiMac> GetMac() const;
1100
1101 protected:
1102 void DoDispose() override;
1103 /**
1104 * Return whether mode associated with the specified station at the specified index.
1105 *
1106 * \param station the station being queried
1107 * \param i the index
1108 *
1109 * \return WifiMode at the given index of the specified station
1110 */
1111 WifiMode GetSupported(const WifiRemoteStation* station, uint8_t i) const;
1112 /**
1113 * Return the number of modes supported by the given station.
1114 *
1115 * \param station the station being queried
1116 *
1117 * \return the number of modes supported by the given station
1118 */
1119 uint8_t GetNSupported(const WifiRemoteStation* station) const;
1120 /**
1121 * Return whether the given station is QoS capable.
1122 *
1123 * \param station the station being queried
1124 *
1125 * \return true if the station has QoS capabilities,
1126 * false otherwise
1127 */
1128 bool GetQosSupported(const WifiRemoteStation* station) const;
1129 /**
1130 * Return whether the given station is HT capable.
1131 *
1132 * \param station the station being queried
1133 *
1134 * \return true if the station has HT capabilities,
1135 * false otherwise
1136 */
1137 bool GetHtSupported(const WifiRemoteStation* station) const;
1138 /**
1139 * Return whether the given station is VHT capable.
1140 *
1141 * \param station the station being queried
1142 *
1143 * \return true if the station has VHT capabilities,
1144 * false otherwise
1145 */
1146 bool GetVhtSupported(const WifiRemoteStation* station) const;
1147 /**
1148 * Return whether the given station is HE capable.
1149 *
1150 * \param station the station being queried
1151 *
1152 * \return true if the station has HE capabilities,
1153 * false otherwise
1154 */
1155 bool GetHeSupported(const WifiRemoteStation* station) const;
1156 /**
1157 * Return whether the given station is EHT capable.
1158 *
1159 * \param station the station being queried
1160 *
1161 * \return true if the station has EHT capabilities,
1162 * false otherwise
1163 */
1164 bool GetEhtSupported(const WifiRemoteStation* station) const;
1165 /**
1166 * \param station the station of a non-AP MLD
1167 * \return whether the non-AP MLD supports EMLSR
1168 */
1169 bool GetEmlsrSupported(const WifiRemoteStation* station) const;
1170 /**
1171 * \param station the station of a non-AP MLD
1172 * \return whether EMLSR mode is enabled for the non-AP MLD on this link
1173 */
1174 bool GetEmlsrEnabled(const WifiRemoteStation* station) const;
1175 /**
1176 * Return the WifiMode supported by the specified station at the specified index.
1177 *
1178 * \param station the station being queried
1179 * \param i the index
1180 *
1181 * \return the WifiMode at the given index of the specified station
1182 */
1183
1184 WifiMode GetMcsSupported(const WifiRemoteStation* station, uint8_t i) const;
1185 /**
1186 * Return the number of MCS supported by the given station.
1187 *
1188 * \param station the station being queried
1189 *
1190 * \return the number of MCS supported by the given station
1191 */
1192 uint8_t GetNMcsSupported(const WifiRemoteStation* station) const;
1193 /**
1194 * Return whether non-ERP mode associated with the specified station at the specified index.
1195 *
1196 * \param station the station being queried
1197 * \param i the index
1198 *
1199 * \return WifiMode at the given index of the specified station
1200 */
1201 WifiMode GetNonErpSupported(const WifiRemoteStation* station, uint8_t i) const;
1202 /**
1203 * Return the number of non-ERP modes supported by the given station.
1204 *
1205 * \param station the station being queried
1206 *
1207 * \return the number of non-ERP modes supported by the given station
1208 */
1209 uint32_t GetNNonErpSupported(const WifiRemoteStation* station) const;
1210 /**
1211 * Return the address of the station.
1212 *
1213 * \param station the station being queried
1214 *
1215 * \return the address of the station
1216 */
1217 Mac48Address GetAddress(const WifiRemoteStation* station) const;
1218 /**
1219 * Return the channel width supported by the station.
1220 *
1221 * \param station the station being queried
1222 *
1223 * \return the channel width supported by the station
1224 */
1225 MHz_u GetChannelWidth(const WifiRemoteStation* station) const;
1226 /**
1227 * Return whether the given station supports HT/VHT short guard interval.
1228 *
1229 * \param station the station being queried
1230 *
1231 * \return true if the station supports HT/VHT short guard interval,
1232 * false otherwise
1233 */
1234 bool GetShortGuardIntervalSupported(const WifiRemoteStation* station) const;
1235 /**
1236 * Return the HE guard interval duration supported by the station.
1237 *
1238 * \param station the station being queried
1239 *
1240 * \return the HE guard interval duration supported by the station
1241 */
1242 Time GetGuardInterval(const WifiRemoteStation* station) const;
1243 /**
1244 * Return whether the given station supports A-MPDU.
1245 *
1246 * \param station the station being queried
1247 *
1248 * \return true if the station supports MPDU aggregation,
1249 * false otherwise
1250 */
1251 bool GetAggregation(const WifiRemoteStation* station) const;
1252
1253 /**
1254 * Return the number of supported streams the station has.
1255 *
1256 * \param station the station being queried
1257 *
1258 * \return the number of supported streams the station has
1259 */
1260 uint8_t GetNumberOfSupportedStreams(const WifiRemoteStation* station) const;
1261 /**
1262 * \returns the number of Ness the station has.
1263 *
1264 * \param station the station being queried
1265 *
1266 * \return the number of Ness the station has
1267 */
1268 uint8_t GetNess(const WifiRemoteStation* station) const;
1269
1270 private:
1271 /**
1272 * If the given TXVECTOR is used for a MU transmission, return the STAID of
1273 * the station with the given address if we are an AP or our own STAID if we
1274 * are a STA associated with some AP. Otherwise, return SU_STA_ID.
1275 *
1276 * \param address the address of the station
1277 * \param txVector the TXVECTOR used for a MU transmission
1278 * \return the STA-ID of the station
1279 */
1280 uint16_t GetStaId(Mac48Address address, const WifiTxVector& txVector) const;
1281
1282 /**
1283 * \param station the station that we need to communicate
1284 * \param size the size of the frame to send in bytes
1285 * \param normally indicates whether the normal 802.11 RTS enable mechanism would
1286 * request that the RTS is sent or not.
1287 *
1288 * \return true if we want to use an RTS/CTS handshake for this frame before sending it,
1289 * false otherwise.
1290 *
1291 * Note: This method is called before a unicast packet is sent on the medium.
1292 */
1293 virtual bool DoNeedRts(WifiRemoteStation* station, uint32_t size, bool normally);
1294 /**
1295 * \param station the station that we need to communicate
1296 * \param packet the packet to send
1297 * \param normally indicates whether the normal 802.11 data retransmission mechanism
1298 * would request that the data is retransmitted or not.
1299 * \return true if we want to resend a packet after a failed transmission attempt,
1300 * false otherwise.
1301 *
1302 * Note: This method is called after any unicast packet transmission (control, management,
1303 * or data) has been attempted and has failed.
1304 */
1305 virtual bool DoNeedRetransmission(WifiRemoteStation* station,
1306 Ptr<const Packet> packet,
1307 bool normally);
1308 /**
1309 * \param station the station that we need to communicate
1310 * \param packet the packet to send
1311 * \param normally indicates whether the normal 802.11 data fragmentation mechanism
1312 * would request that the data packet is fragmented or not.
1313 *
1314 * \return true if this packet should be fragmented,
1315 * false otherwise.
1316 *
1317 * Note: This method is called before sending a unicast packet.
1318 */
1319 virtual bool DoNeedFragmentation(WifiRemoteStation* station,
1320 Ptr<const Packet> packet,
1321 bool normally);
1322 /**
1323 * \return a new station data structure
1324 */
1326 /**
1327 * \param station the station that we need to communicate
1328 * \param allowedWidth the allowed width to send a packet to the station
1329 * \return the TXVECTOR to use to send a packet to the station
1330 *
1331 * Note: This method is called before sending a unicast packet or a fragment
1332 * of a unicast packet to decide which transmission mode to use.
1333 */
1334 virtual WifiTxVector DoGetDataTxVector(WifiRemoteStation* station, MHz_u allowedWidth) = 0;
1335 /**
1336 * \param station the station that we need to communicate
1337 *
1338 * \return the transmission mode to use to send an RTS to the station
1339 *
1340 * Note: This method is called before sending an RTS to a station
1341 * to decide which transmission mode to use for the RTS.
1342 */
1344
1345 /**
1346 * This method is a pure virtual method that must be implemented by the sub-class.
1347 * This allows different types of WifiRemoteStationManager to respond differently,
1348 *
1349 * \param station the station that we failed to send RTS
1350 */
1351 virtual void DoReportRtsFailed(WifiRemoteStation* station) = 0;
1352 /**
1353 * This method is a pure virtual method that must be implemented by the sub-class.
1354 * This allows different types of WifiRemoteStationManager to respond differently,
1355 *
1356 * \param station the station that we failed to send DATA
1357 */
1358 virtual void DoReportDataFailed(WifiRemoteStation* station) = 0;
1359 /**
1360 * This method is a pure virtual method that must be implemented by the sub-class.
1361 * This allows different types of WifiRemoteStationManager to respond differently,
1362 *
1363 * \param station the station that we successfully sent RTS
1364 * \param ctsSnr the SNR of the CTS we received
1365 * \param ctsMode the WifiMode the receiver used to send the CTS
1366 * \param rtsSnr the SNR of the RTS we sent
1367 */
1368 virtual void DoReportRtsOk(WifiRemoteStation* station,
1369 double ctsSnr,
1370 WifiMode ctsMode,
1371 double rtsSnr) = 0;
1372 /**
1373 * This method is a pure virtual method that must be implemented by the sub-class.
1374 * This allows different types of WifiRemoteStationManager to respond differently,
1375 *
1376 * \param station the station that we successfully sent RTS
1377 * \param ackSnr the SNR of the ACK we received
1378 * \param ackMode the WifiMode the receiver used to send the ACK
1379 * \param dataSnr the SNR of the DATA we sent
1380 * \param dataChannelWidth the channel width of the DATA we sent
1381 * \param dataNss the number of spatial streams used to send the DATA
1382 */
1383 virtual void DoReportDataOk(WifiRemoteStation* station,
1384 double ackSnr,
1385 WifiMode ackMode,
1386 double dataSnr,
1387 MHz_u dataChannelWidth,
1388 uint8_t dataNss) = 0;
1389 /**
1390 * This method is a pure virtual method that must be implemented by the sub-class.
1391 * This allows different types of WifiRemoteStationManager to respond differently,
1392 *
1393 * \param station the station that we failed to send RTS
1394 */
1395 virtual void DoReportFinalRtsFailed(WifiRemoteStation* station) = 0;
1396 /**
1397 * This method is a pure virtual method that must be implemented by the sub-class.
1398 * This allows different types of WifiRemoteStationManager to respond differently,
1399 *
1400 * \param station the station that we failed to send DATA
1401 */
1402 virtual void DoReportFinalDataFailed(WifiRemoteStation* station) = 0;
1403 /**
1404 * This method is a pure virtual method that must be implemented by the sub-class.
1405 * This allows different types of WifiRemoteStationManager to respond differently,
1406 *
1407 * \param station the station that sent the DATA to us
1408 * \param rxSnr the SNR of the DATA we received
1409 * \param txMode the WifiMode the sender used to send the DATA
1410 */
1411 virtual void DoReportRxOk(WifiRemoteStation* station, double rxSnr, WifiMode txMode) = 0;
1412 /**
1413 * Typically called per A-MPDU, either when a Block ACK was successfully received
1414 * or when a BlockAckTimeout has elapsed. This method is a virtual method that must
1415 * be implemented by the sub-class intended to handle A-MPDUs. This allows different
1416 * types of WifiRemoteStationManager to respond differently.
1417 *
1418 * \param station the station that sent the DATA to us
1419 * \param nSuccessfulMpdus number of successfully transmitted MPDUs.
1420 * A value of 0 means that the Block ACK was missed.
1421 * \param nFailedMpdus number of unsuccessfuly transmitted MPDUs.
1422 * \param rxSnr received SNR of the block ack frame itself
1423 * \param dataSnr data SNR reported by remote station
1424 * \param dataChannelWidth the channel width of the A-MPDU we sent
1425 * \param dataNss the number of spatial streams used to send the A-MPDU
1426 */
1427 virtual void DoReportAmpduTxStatus(WifiRemoteStation* station,
1428 uint16_t nSuccessfulMpdus,
1429 uint16_t nFailedMpdus,
1430 double rxSnr,
1431 double dataSnr,
1432 MHz_u dataChannelWidth,
1433 uint8_t dataNss);
1434
1435 /**
1436 * Return the state of the station associated with the given address.
1437 *
1438 * \param address the address of the station
1439 * \return WifiRemoteStationState corresponding to the address
1440 */
1441 std::shared_ptr<WifiRemoteStationState> LookupState(Mac48Address address) const;
1442 /**
1443 * Return the station associated with the given address.
1444 *
1445 * \param address the address of the station
1446 *
1447 * \return WifiRemoteStation corresponding to the address
1448 */
1449 WifiRemoteStation* Lookup(Mac48Address address) const;
1450
1451 /**
1452 * Actually sets the fragmentation threshold, it also checks the validity of
1453 * the given threshold.
1454 *
1455 * \param threshold the fragmentation threshold
1456 */
1457 void DoSetFragmentationThreshold(uint32_t threshold);
1458 /**
1459 * Return the current fragmentation threshold
1460 *
1461 * \return the fragmentation threshold
1462 */
1464 /**
1465 * Return the number of fragments needed for the given packet.
1466 *
1467 * \param mpdu the packet to be fragmented
1468 *
1469 * \return the number of fragments needed
1470 */
1472
1473 /**
1474 * This is a pointer to the WifiPhy associated with this
1475 * WifiRemoteStationManager that is set on call to
1476 * WifiRemoteStationManager::SetupPhy(). Through this pointer the
1477 * station manager can determine PHY characteristics, such as the
1478 * set of all transmission rates that may be supported (the
1479 * "DeviceRateSet").
1480 */
1482 /**
1483 * This is a pointer to the WifiMac associated with this
1484 * WifiRemoteStationManager that is set on call to
1485 * WifiRemoteStationManager::SetupMac(). Through this pointer the
1486 * station manager can determine MAC characteristics, such as the
1487 * interframe spaces.
1488 */
1490
1491 /**
1492 * This member is the list of WifiMode objects that comprise the
1493 * BSSBasicRateSet parameter. This list is constructed through calls
1494 * to WifiRemoteStationManager::AddBasicMode(), and an API that
1495 * allows external access to it is available through
1496 * WifiRemoteStationManager::GetNBasicModes() and
1497 * WifiRemoteStationManager::GetBasicMode().
1498 */
1499 WifiModeList m_bssBasicRateSet; //!< basic rate set
1500 WifiModeList m_bssBasicMcsSet; //!< basic MCS set
1501
1502 StationStates m_states; //!< States of known stations
1503 Stations m_stations; //!< Information for each known stations
1504
1505 uint32_t m_maxSsrc; //!< Maximum STA short retry count (SSRC)
1506 uint32_t m_maxSlrc; //!< Maximum STA long retry count (SLRC)
1507 uint32_t m_rtsCtsThreshold; //!< Threshold for RTS/CTS
1508 Time m_rtsCtsTxDurationThresh; //!< TX duration threshold for RTS/CTS
1509 uint32_t m_fragmentationThreshold; //!< Current threshold for fragmentation
1510 uint8_t m_defaultTxPowerLevel; //!< Default transmission power level
1511 WifiMode m_nonUnicastMode; //!< Transmission mode for non-unicast Data frames
1512 bool m_useNonErpProtection; //!< flag if protection for non-ERP stations against ERP
1513 //!< transmissions is enabled
1514 bool m_useNonHtProtection; //!< flag if protection for non-HT stations against HT transmissions
1515 //!< is enabled
1516 bool m_shortPreambleEnabled; //!< flag if short PHY preamble is enabled
1517 bool m_shortSlotTimeEnabled; //!< flag if short slot time is enabled
1518 ProtectionMode m_erpProtectionMode; //!< Protection mode for ERP stations when non-ERP stations
1519 //!< are detected
1521 m_htProtectionMode; //!< Protection mode for HT stations when non-HT stations are detected
1522
1523 std::array<uint32_t, AC_BE_NQOS> m_ssrc; //!< short retry count per AC
1524 std::array<uint32_t, AC_BE_NQOS> m_slrc; //!< long retry count per AC
1525
1526 /**
1527 * The trace source fired when the transmission of a single RTS has failed
1528 */
1530 /**
1531 * The trace source fired when the transmission of a single data packet has failed
1532 */
1534 /**
1535 * The trace source fired when the transmission of a RTS has
1536 * exceeded the maximum number of attempts
1537 */
1539 /**
1540 * The trace source fired when the transmission of a data packet has
1541 * exceeded the maximum number of attempts
1542 */
1544};
1545
1546} // namespace ns3
1547
1548#endif /* WIFI_REMOTE_STATION_MANAGER_H */
Class for representing data rates.
Definition data-rate.h:78
The IEEE 802.11be EHT Capabilities.
The HE 6 GHz Band Capabilities (IEEE 802.11ax-2021 9.4.2.263)
The IEEE 802.11ax HE Capabilities.
The HT Capabilities Information Element.
an EUI-48 address
A base class which provides memory management and object aggregation.
Definition object.h:78
Smart pointer class similar to boost::intrusive_ptr.
Simulation virtual time values and global simulation resolution.
Definition nstime.h:94
Forward calls to a chain of Callback.
a unique identifier for an interface.
Definition type-id.h:48
The IEEE 802.11ac VHT Capabilities.
Implements the IEEE 802.11 MAC header.
represent a single transmission mode
Definition wifi-mode.h:40
TID independent remote station statistics.
hold a list of per-remote-station state.
std::unordered_map< Mac48Address, std::shared_ptr< WifiRemoteStationState >, WifiAddressHash > StationStates
A map of WifiRemoteStationStates with Mac48Address as key.
void ReportDataFailed(Ptr< const WifiMpdu > mpdu)
Should be invoked whenever the AckTimeout associated to a transmission attempt expires.
bool GetQosSupported(Mac48Address address) const
Return whether the given station is QoS capable.
virtual WifiTxVector DoGetDataTxVector(WifiRemoteStation *station, MHz_u allowedWidth)=0
uint8_t GetNumberOfSupportedStreams(Mac48Address address) const
Return the number of spatial streams supported by the station.
WifiTxVector GetAckTxVector(Mac48Address to, const WifiTxVector &dataTxVector) const
Return a TXVECTOR for the Ack frame given the destination and the mode of the Data used by the sender...
virtual bool DoNeedFragmentation(WifiRemoteStation *station, Ptr< const Packet > packet, bool normally)
uint32_t m_fragmentationThreshold
Current threshold for fragmentation.
void SetShortSlotTimeEnabled(bool enable)
Enable or disable short slot time.
void SetPsMode(const Mac48Address &address, bool isInPsMode)
Register whether the STA is in Power Save mode or not.
uint8_t GetNess(const WifiRemoteStation *station) const
void AddBasicMode(WifiMode mode)
Invoked in a STA upon association to store the set of rates which belong to the BSSBasicRateSet of th...
bool GetEmlsrEnabled(const Mac48Address &address) const
virtual int64_t AssignStreams(int64_t stream)
Assign a fixed random variable stream number to the random variables used by this model.
uint32_t GetNFragments(Ptr< const WifiMpdu > mpdu)
Return the number of fragments needed for the given packet.
uint16_t GetAssociationId(Mac48Address remoteAddress) const
Get the AID of a remote station.
ProtectionMode m_htProtectionMode
Protection mode for HT stations when non-HT stations are detected.
WifiMode GetDefaultModeForSta(const WifiRemoteStation *st) const
Return the default MCS to use to transmit frames to the given station.
void AdjustTxVectorForIcf(WifiTxVector &txVector) const
Adjust the TXVECTOR for an initial Control frame to ensure that the modulation class is non-HT and th...
std::array< uint32_t, AC_BE_NQOS > m_slrc
long retry count per AC
WifiRemoteStation * Lookup(Mac48Address address) const
Return the station associated with the given address.
uint32_t GetFragmentationThreshold() const
Return the fragmentation threshold.
bool NeedRetransmission(Ptr< const WifiMpdu > mpdu)
uint8_t GetNBasicModes() const
Return the number of basic modes we support.
bool UseLdpcForDestination(Mac48Address dest) const
uint32_t m_maxSsrc
Maximum STA short retry count (SSRC)
void SetRtsCtsThreshold(uint32_t threshold)
Sets the RTS threshold.
void AddAllSupportedMcs(Mac48Address address)
Invoked in a STA or AP to store all of the MCS supported by a destination which is also supported loc...
TracedCallback< Mac48Address > m_macTxRtsFailed
The trace source fired when the transmission of a single RTS has failed.
virtual bool DoNeedRts(WifiRemoteStation *station, uint32_t size, bool normally)
Time GetGuardInterval() const
Return the supported HE guard interval duration.
WifiTxVector GetRtsTxVector(Mac48Address address, MHz_u allowedWidth)
void DoSetFragmentationThreshold(uint32_t threshold)
Actually sets the fragmentation threshold, it also checks the validity of the given threshold.
bool IsBrandNew(Mac48Address address) const
Return whether the station state is brand new.
virtual void DoReportFinalDataFailed(WifiRemoteStation *station)=0
This method is a pure virtual method that must be implemented by the sub-class.
virtual void DoReportRtsOk(WifiRemoteStation *station, double ctsSnr, WifiMode ctsMode, double rtsSnr)=0
This method is a pure virtual method that must be implemented by the sub-class.
Time m_rtsCtsTxDurationThresh
TX duration threshold for RTS/CTS.
bool GetShortSlotTimeEnabled() const
Return whether the device uses short slot time.
void DoDispose() override
Destructor implementation.
void AddStationMleCommonInfo(Mac48Address from, const std::shared_ptr< CommonInfoBasicMle > &mleCommonInfo)
Records the Common Info field advertised by the given remote station in a Multi-Link Element.
virtual void DoReportDataFailed(WifiRemoteStation *station)=0
This method is a pure virtual method that must be implemented by the sub-class.
bool IsLastFragment(Ptr< const WifiMpdu > mpdu, uint32_t fragmentNumber)
void ReportFinalDataFailed(Ptr< const WifiMpdu > mpdu)
Should be invoked after calling ReportDataFailed if NeedRetransmission returns false.
uint32_t GetNNonErpBasicModes() const
Return the number of non-ERP basic modes we support.
void SetUseNonErpProtection(bool enable)
Enable or disable protection for non-ERP stations.
uint8_t GetNSupported(const WifiRemoteStation *station) const
Return the number of modes supported by the given station.
bool m_useNonHtProtection
flag if protection for non-HT stations against HT transmissions is enabled
bool GetShortPreambleSupported(Mac48Address address) const
Return whether the station supports short PHY preamble or not.
void(* PowerChangeTracedCallback)(double oldPower, double newPower, Mac48Address remoteAddress)
TracedCallback signature for power change events.
void AddAllSupportedModes(Mac48Address address)
Invoked in a STA or AP to store all of the modes supported by a destination which is also supported l...
virtual void DoReportAmpduTxStatus(WifiRemoteStation *station, uint16_t nSuccessfulMpdus, uint16_t nFailedMpdus, double rxSnr, double dataSnr, MHz_u dataChannelWidth, uint8_t dataNss)
Typically called per A-MPDU, either when a Block ACK was successfully received or when a BlockAckTime...
std::optional< Mac48Address > GetAffiliatedStaAddress(const Mac48Address &mldAddress) const
Get the address of the remote station operating on this link and affiliated with the MLD having the g...
WifiMode GetNonErpBasicMode(uint8_t i) const
Return a basic mode from the set of basic modes that is not an ERP mode.
WifiTxVector GetDataTxVector(const WifiMacHeader &header, MHz_u allowedWidth)
std::optional< dBm_u > GetMostRecentRssi(Mac48Address address) const
void ReportRtsOk(const WifiMacHeader &header, double ctsSnr, WifiMode ctsMode, double rtsSnr)
Should be invoked whenever we receive the CTS associated to an RTS we just sent.
Ptr< WifiPhy > GetPhy() const
Return the WifiPhy.
void AddSupportedMcs(Mac48Address address, WifiMode mcs)
Record the MCS index supported by the station.
std::optional< std::reference_wrapper< CommonInfoBasicMle::EmlCapabilities > > GetStationEmlCapabilities(const Mac48Address &from)
WifiTxVector GetBlockAckTxVector(Mac48Address to, const WifiTxVector &dataTxVector) const
Return a TXVECTOR for the BlockAck frame given the destination and the mode of the Data used by the s...
void RemoveAllSupportedMcs(Mac48Address address)
Invoked in a STA or AP to delete all of the supported MCS by a destination.
uint32_t DoGetFragmentationThreshold() const
Return the current fragmentation threshold.
MHz_u GetChannelWidth(const WifiRemoteStation *station) const
Return the channel width supported by the station.
TracedCallback< Mac48Address > m_macTxFinalRtsFailed
The trace source fired when the transmission of a RTS has exceeded the maximum number of attempts.
WifiMode GetNonUnicastMode() const
Return a mode for non-unicast packets.
bool m_shortPreambleEnabled
flag if short PHY preamble is enabled
void AddStationVhtCapabilities(Mac48Address from, VhtCapabilities vhtCapabilities)
Records VHT capabilities of the remote station.
bool GetShortSlotTimeSupported(Mac48Address address) const
Return whether the station supports short ERP slot time or not.
void SetShortPreambleEnabled(bool enable)
Enable or disable short PHY preambles.
WifiMode GetDefaultMcs() const
Return the default Modulation and Coding Scheme (MCS) index.
Ptr< WifiPhy > m_wifiPhy
This is a pointer to the WifiPhy associated with this WifiRemoteStationManager that is set on call to...
void AddBasicMcs(WifiMode mcs)
Add a given Modulation and Coding Scheme (MCS) index to the set of basic MCS.
void ReportRxOk(Mac48Address address, RxSignalInfo rxSignalInfo, WifiTxVector txVector)
uint8_t m_defaultTxPowerLevel
Default transmission power level.
bool GetErpOfdmSupported(const Mac48Address &address) const
Return whether the station supports ERP OFDM or not.
static TypeId GetTypeId()
Get the type ID.
WifiMode m_nonUnicastMode
Transmission mode for non-unicast Data frames.
void SetUseNonHtProtection(bool enable)
Enable or disable protection for non-HT stations.
MHz_u GetChannelWidthSupported(Mac48Address address) const
Return the channel width supported by the station.
bool IsAssociated(Mac48Address address) const
Return whether the station associated.
Ptr< const HtCapabilities > GetStationHtCapabilities(Mac48Address from)
Return the HT capabilities sent by the remote station.
bool NeedFragmentation(Ptr< const WifiMpdu > mpdu)
void ReportAmpduTxStatus(Mac48Address address, uint16_t nSuccessfulMpdus, uint16_t nFailedMpdus, double rxSnr, double dataSnr, WifiTxVector dataTxVector)
Typically called per A-MPDU, either when a Block ACK was successfully received or when a BlockAckTime...
Ptr< const He6GhzBandCapabilities > GetStationHe6GhzCapabilities(const Mac48Address &from) const
Return the HE 6 GHz Band Capabilities sent by a remote station.
bool GetDsssSupported(const Mac48Address &address) const
Return whether the station supports DSSS or not.
uint32_t GetFragmentOffset(Ptr< const WifiMpdu > mpdu, uint32_t fragmentNumber)
void SetQosSupport(Mac48Address from, bool qosSupported)
Records QoS support of the remote station.
void AddStationHe6GhzCapabilities(const Mac48Address &from, const He6GhzBandCapabilities &he6GhzCapabilities)
Records HE 6 GHz Band Capabilities of a remote station.
WifiRemoteStationInfo GetInfo(Mac48Address address)
bool GetOfdmSupported(const Mac48Address &address) const
Return whether the station supports OFDM or not.
void(* RateChangeTracedCallback)(DataRate oldRate, DataRate newRate, Mac48Address remoteAddress)
TracedCallback signature for rate change events.
uint32_t GetFragmentSize(Ptr< const WifiMpdu > mpdu, uint32_t fragmentNumber)
WifiTxVector GetCtsToSelfTxVector()
Since CTS-to-self parameters are not dependent on the station, it is implemented in wifi remote stati...
uint8_t GetNBasicMcs() const
Return the number of basic MCS index.
bool GetAggregation(const WifiRemoteStation *station) const
Return whether the given station supports A-MPDU.
bool GetHtSupported() const
Return whether the device has HT capability support enabled on the link this manager is associated wi...
void RecordWaitAssocTxOk(Mac48Address address)
Records that we are waiting for an ACK for the association response we sent.
void SetFragmentationThreshold(uint32_t threshold)
Sets a fragmentation threshold.
Ptr< WifiMac > m_wifiMac
This is a pointer to the WifiMac associated with this WifiRemoteStationManager that is set on call to...
void RecordGotAssocTxOk(Mac48Address address)
Records that we got an ACK for the association response we sent.
bool GetLdpcSupported() const
Return whether the device has LDPC support enabled.
void AddStationHeCapabilities(Mac48Address from, HeCapabilities heCapabilities)
Records HE capabilities of the remote station.
bool GetEhtSupported() const
Return whether the device has EHT capability support enabled.
void AddSupportedMode(Mac48Address address, WifiMode mode)
Invoked in a STA or AP to store the set of modes supported by a destination which is also supported l...
std::shared_ptr< WifiRemoteStationState > LookupState(Mac48Address address) const
Return the state of the station associated with the given address.
Ptr< WifiMac > GetMac() const
Return the WifiMac.
WifiMode GetNonErpSupported(const WifiRemoteStation *station, uint8_t i) const
Return whether non-ERP mode associated with the specified station at the specified index.
std::array< uint32_t, AC_BE_NQOS > m_ssrc
short retry count per AC
Ptr< const EhtCapabilities > GetStationEhtCapabilities(Mac48Address from)
Return the EHT capabilities sent by the remote station.
void RecordAssocRefused(Mac48Address address)
Records that association request was refused.
bool IsInPsMode(const Mac48Address &address) const
Return whether the STA is currently in Power Save mode.
void ReportFinalRtsFailed(const WifiMacHeader &header)
Should be invoked after calling ReportRtsFailed if NeedRetransmission returns false.
StationStates m_states
States of known stations.
bool NeedCtsToSelf(WifiTxVector txVector)
Return if we need to do CTS-to-self before sending a DATA.
std::unordered_map< Mac48Address, WifiRemoteStation *, WifiAddressHash > Stations
A map of WifiRemoteStations with Mac48Address as key.
WifiTxVector GetCtsTxVector(Mac48Address to, WifiMode rtsTxMode) const
Return a TXVECTOR for the CTS frame given the destination and the mode of the RTS used by the sender.
void SetMaxSsrc(uint32_t maxSsrc)
Sets the maximum STA short retry count (SSRC).
Ptr< const HeCapabilities > GetStationHeCapabilities(Mac48Address from)
Return the HE capabilities sent by the remote station.
WifiMode GetBasicMcs(uint8_t i) const
Return the MCS at the given list index.
uint8_t GetNMcsSupported(Mac48Address address) const
Return the number of MCS supported by the station.
TracedCallback< Mac48Address > m_macTxDataFailed
The trace source fired when the transmission of a single data packet has failed.
uint16_t GetStaId(Mac48Address address, const WifiTxVector &txVector) const
If the given TXVECTOR is used for a MU transmission, return the STAID of the station with the given a...
virtual void DoReportDataOk(WifiRemoteStation *station, double ackSnr, WifiMode ackMode, double dataSnr, MHz_u dataChannelWidth, uint8_t dataNss)=0
This method is a pure virtual method that must be implemented by the sub-class.
WifiMode GetBasicMode(uint8_t i) const
Return a basic mode from the set of basic modes.
void AddStationEhtCapabilities(Mac48Address from, EhtCapabilities ehtCapabilities)
Records EHT capabilities of the remote station.
void AddSupportedPhyPreamble(Mac48Address address, bool isShortPreambleSupported)
Record whether the short PHY preamble is supported by the station.
bool GetEmlsrSupported(const Mac48Address &address) const
bool GetShortGuardIntervalSupported() const
Return whether the device has SGI support enabled.
Mac48Address GetAddress(const WifiRemoteStation *station) const
Return the address of the station.
virtual void SetupPhy(const Ptr< WifiPhy > phy)
Set up PHY associated with this device since it is the object that knows the full set of transmit rat...
virtual void DoReportRtsFailed(WifiRemoteStation *station)=0
This method is a pure virtual method that must be implemented by the sub-class.
void SetDefaultTxPowerLevel(uint8_t txPower)
Set the default transmission power level.
void RecordDisassociated(Mac48Address address)
Records that the STA was disassociated.
Stations m_stations
Information for each known stations.
virtual WifiTxVector DoGetRtsTxVector(WifiRemoteStation *station)=0
WifiMode GetMcsSupported(const WifiRemoteStation *station, uint8_t i) const
Return the WifiMode supported by the specified station at the specified index.
std::optional< std::reference_wrapper< CommonInfoBasicMle::MldCapabilities > > GetStationMldCapabilities(const Mac48Address &from)
uint32_t GetNNonErpSupported(const WifiRemoteStation *station) const
Return the number of non-ERP modes supported by the given station.
uint32_t m_maxSlrc
Maximum STA long retry count (SLRC)
virtual WifiRemoteStation * DoCreateStation() const =0
void Reset()
Reset the station, invoked in a STA upon dis-association or in an AP upon reboot.
bool GetUseNonErpProtection() const
Return whether the device supports protection of non-ERP stations.
bool IsAssocRefused(Mac48Address address) const
Return whether we refused an association request from the given station.
void SetAssociationId(Mac48Address remoteAddress, uint16_t aid)
Record the AID of a remote station.
bool GetVhtSupported() const
Return whether the device has VHT capability support enabled on the link this manager is associated w...
Ptr< const VhtCapabilities > GetStationVhtCapabilities(Mac48Address from)
Return the VHT capabilities sent by the remote station.
ProtectionMode m_erpProtectionMode
Protection mode for ERP stations when non-ERP stations are detected.
WifiModeList m_bssBasicRateSet
This member is the list of WifiMode objects that comprise the BSSBasicRateSet parameter.
ProtectionMode
ProtectionMode enumeration.
void ReportDataOk(Ptr< const WifiMpdu > mpdu, double ackSnr, WifiMode ackMode, double dataSnr, WifiTxVector dataTxVector)
Should be invoked whenever we receive the ACK associated to a data packet we just sent.
void ReportRtsFailed(const WifiMacHeader &header)
Should be invoked whenever the RtsTimeout associated to a transmission attempt expires.
void AddSupportedErpSlotTime(Mac48Address address, bool isShortSlotTimeSupported)
Record whether the short ERP slot time is supported by the station.
bool GetShortPreambleEnabled() const
Return whether the device uses short PHY preambles.
WifiMode GetSupported(const WifiRemoteStation *station, uint8_t i) const
Return whether mode associated with the specified station at the specified index.
bool GetHeSupported() const
Return whether the device has HE capability support enabled.
virtual void DoReportRxOk(WifiRemoteStation *station, double rxSnr, WifiMode txMode)=0
This method is a pure virtual method that must be implemented by the sub-class.
void AddStationHtCapabilities(Mac48Address from, HtCapabilities htCapabilities)
Records HT capabilities of the remote station.
virtual bool DoNeedRetransmission(WifiRemoteStation *station, Ptr< const Packet > packet, bool normally)
WifiMode GetDefaultMode() const
Return the default transmission mode.
void SetEmlsrEnabled(const Mac48Address &from, bool emlsrEnabled)
void RecordGotAssocTxFailed(Mac48Address address)
Records that we missed an ACK for the association response we sent.
std::optional< Mac48Address > GetMldAddress(const Mac48Address &address) const
Get the address of the MLD the given station is affiliated with, if any.
virtual void DoReportFinalRtsFailed(WifiRemoteStation *station)=0
This method is a pure virtual method that must be implemented by the sub-class.
virtual void SetupMac(const Ptr< WifiMac > mac)
Set up MAC associated with this device since it is the object that knows the full set of timing param...
bool NeedRts(const WifiMacHeader &header, const WifiTxParameters &txParams)
uint32_t m_rtsCtsThreshold
Threshold for RTS/CTS.
bool m_useNonErpProtection
flag if protection for non-ERP stations against ERP transmissions is enabled
WifiMode GetControlAnswerMode(WifiMode reqMode) const
Get control answer mode function.
bool m_shortSlotTimeEnabled
flag if short slot time is enabled
bool IsWaitAssocTxOk(Mac48Address address) const
Return whether we are waiting for an ACK for the association response we sent.
void SetMaxSlrc(uint32_t maxSlrc)
Sets the maximum STA long retry count (SLRC).
TracedCallback< Mac48Address > m_macTxFinalDataFailed
The trace source fired when the transmission of a data packet has exceeded the maximum number of atte...
bool GetUseNonHtProtection() const
Return whether the device supports protection of non-HT stations.
This class stores the TX parameters (TX vector, protection mechanism, acknowledgment mechanism,...
This class mimics the TXVECTOR which is to be passed to the PHY in order to define the parameters whi...
Every class exported by the ns3 library is enclosed in the ns3 namespace.
std::vector< WifiMode > WifiModeList
In various parts of the code, folk are interested in maintaining a list of transmission modes.
Definition wifi-mode.h:251
RxSignalInfo structure containing info on the received signal.
Definition wifi-types.h:72
Function object to compute the hash of a MAC address.
Definition qos-utils.h:45
hold per-remote-station state.
WifiRemoteStationState * m_state
Remote station state.
std::pair< dBm_u, Time > m_rssiAndUpdateTimePair
RSSI of the most recent packet received from the remote station along with update time.
A struct that holds information about each remote station.
std::shared_ptr< CommonInfoBasicMle > m_mleCommonInfo
remote station Multi-Link Element Common Info
Mac48Address m_address
Mac48Address of the remote station.
bool m_shortSlotTime
Flag if short ERP slot time is supported by the remote station.
bool m_dsssSupported
Flag if DSSS is supported by the remote station.
MHz_u m_channelWidth
Channel width supported by the remote station.
uint16_t m_aid
AID of the remote station (unused if this object is installed on a non-AP station)
bool m_ofdmSupported
Flag if OFDM is supported by the remote station.
enum ns3::WifiRemoteStationState::@75 m_state
State of the station.
uint8_t m_ness
Number of extended spatial streams of the remote station.
bool m_aggregation
Flag if MPDU aggregation is used by the remote station.
bool m_qosSupported
Flag if QoS is supported by the station.
WifiModeList m_operationalRateSet
This member is the list of WifiMode objects that comprise the OperationalRateSet parameter for this r...
WifiModeList m_operationalMcsSet
operational MCS set
bool m_isInPsMode
Flag if the STA is currently in PS mode.
Ptr< const EhtCapabilities > m_ehtCapabilities
remote station EHT capabilities
bool m_shortPreamble
Flag if short PHY preamble is supported by the remote station.
bool m_erpOfdmSupported
Flag if ERP OFDM is supported by the remote station.
Ptr< const VhtCapabilities > m_vhtCapabilities
remote station VHT capabilities
Ptr< const He6GhzBandCapabilities > m_he6GhzBandCapabilities
remote station HE 6GHz band capabilities
WifiRemoteStationInfo m_info
remote station info
bool m_emlsrEnabled
whether EMLSR mode is enabled on this link
Ptr< const HtCapabilities > m_htCapabilities
remote station HT capabilities
Time m_guardInterval
HE Guard interval durationsupported by the remote station.
Ptr< const HeCapabilities > m_heCapabilities
remote station HE capabilities