Skip to content

Commit

Permalink
wifi: pass WifiTxVector by const reference.
Browse files Browse the repository at this point in the history
  • Loading branch information
tolikzinovyev authored and Stefano Avallone committed Oct 26, 2024
1 parent 8a4942d commit bab94a1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/wifi/model/wifi-remote-station-manager.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1066,7 +1066,7 @@ WifiRemoteStationManager::ReportFinalDataFailed(Ptr<const WifiMpdu> mpdu)
void
WifiRemoteStationManager::ReportRxOk(Mac48Address address,
RxSignalInfo rxSignalInfo,
WifiTxVector txVector)
const WifiTxVector& txVector)
{
NS_LOG_FUNCTION(this << address << rxSignalInfo << txVector);
if (address.IsGroup())
Expand Down
2 changes: 1 addition & 1 deletion src/wifi/model/wifi-remote-station-manager.h
Original file line number Diff line number Diff line change
Expand Up @@ -966,7 +966,7 @@ class WifiRemoteStationManager : public Object
*
* Should be invoked whenever a packet is successfully received.
*/
void ReportRxOk(Mac48Address address, RxSignalInfo rxSignalInfo, WifiTxVector txVector);
void ReportRxOk(Mac48Address address, RxSignalInfo rxSignalInfo, const WifiTxVector& txVector);

/**
* \param header MAC header of the data frame to send
Expand Down

0 comments on commit bab94a1

Please sign in to comment.