wlanRateControl Class
Description
Use the wlanRateControl base class to implement a rate control algorithm in
a subclass.
The wlanRateControl class is a handle class.
Properties
Protected Properties
Custom contextual information template for each receiver, specified as a
structure. The value of this property specifies the information that each receiver
must maintain. The system uses this value as the default for the
CustomContext field in each structure of the
STAContext property. An inheriting subclass must define this
property in its implementation.
Attributes:
GetAccess | protected |
SetAccess | protected |
Abstract | true |
Data Types:
Algorithm-specific contextual information for each STA, specified as an array of structures. Each structure contains these fields:
ReceiverID— Receiver node IDCustomContext— Custom context that holds per-receiver information.
The node assigns the default values for this property. For each receiver that
communicates with the node, the node adds an additional structure to this property. In
each structure, the ReceiverID field contains the actual receiver
ID, and the CustomContext field contains the default value defined
by the CustomContextTemplate abstract property.
Note that an inheriting subclass can modify and use
CustomContext for each receiver in its implementation.
Attributes:
GetAccess | protected |
SetAccess | protected |
Abstract | false |
Data Types:
Methods
deviceConfigurationValue | Retrieve specified device configuration |
deviceConfigurationType | Return device configuration type |
bssConfigurationValue | Retrieve basic rate set value of specified BSS configuration |
maxMCS | Return highest MCS index selectable for specified receiver |
maxNumSpaceTimeStreams | Return maximum number of space-time streams selectable for specified receiver |
mapReceiverToSTAContext | Return index of STA context property for specified receiver |
selectRateParameters | Select rate parameters for frame transmission |
processTransmissionStatus | Use frame transmission status to carry out post-transmission operations |
More About
To create a custom rate control algorithm using the wlanRateControl base
class, follow these steps.
Implement the custom rate control subclass:
Inherit from the
wlanRateControlbase class. The class definition must have this format, wherecustomRateControlAlgorithmis the name of your custom rate control subclass.classdef customRateControlAlgorithm < wlanRateControl ... endImplement the
CustomContextTemplateproperty to define custom contextual information for each receiver. TheCustomContextfield in each structure of theSTAContextproperty contains the value defined by theCustomContextTemplateproperty.Override the
selectRateParametersandprocessTransmissionStatusmethods.
Save the class definition in a
.mfile.In a simulation script, create an object of the
customRateControlAlgorithmsubclass. Specify this custom rate control object to theRateControlproperty of thewlanLinkConfigorwlanDeviceConfigobject and implement it into a WLAN node.
Version History
Introduced in R2026a
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)