wifi: Add a StaWifiMac method to get the link ID as set by the AP

This commit is contained in:
Stefano Avallone
2023-02-01 17:22:12 +01:00
committed by Stefano Avallone
parent 85f833fa34
commit bc334649a3
2 changed files with 12 additions and 0 deletions

View File

@@ -772,6 +772,12 @@ StaWifiMac::GetSetupLinkIds() const
return linkIds;
}
std::optional<uint8_t>
StaWifiMac::GetApLinkId(uint8_t linkId) const
{
return GetLink(linkId).apLinkId;
}
Mac48Address
StaWifiMac::DoGetLocalAddress(const Mac48Address& remoteAddr) const
{

View File

@@ -233,6 +233,12 @@ class StaWifiMac : public WifiMac
*/
std::set<uint8_t> GetSetupLinkIds() const;
/**
* \param linkId the IO of the given link
* \return the ID (as set by the AP) of the given link, if the given link has been setup
*/
std::optional<uint8_t> GetApLinkId(uint8_t linkId) const;
/**
* Return the association ID.
*