wifi: Remove duplicated function WifiNetDevice::DoGetChannel
This commit is contained in:
@@ -48,7 +48,7 @@ WifiNetDevice::GetTypeId (void)
|
||||
MakeUintegerChecker<uint16_t> (1,MAX_MSDU_SIZE - LLC_SNAP_HEADER_LENGTH))
|
||||
.AddAttribute ("Channel", "The channel attached to this device",
|
||||
PointerValue (),
|
||||
MakePointerAccessor (&WifiNetDevice::DoGetChannel),
|
||||
MakePointerAccessor (&WifiNetDevice::GetChannel),
|
||||
MakePointerChecker<Channel> ())
|
||||
.AddAttribute ("Phy", "The PHY layer attached to this device.",
|
||||
PointerValue (),
|
||||
@@ -254,12 +254,6 @@ WifiNetDevice::GetChannel (void) const
|
||||
return m_phy->GetChannel ();
|
||||
}
|
||||
|
||||
Ptr<Channel>
|
||||
WifiNetDevice::DoGetChannel (void) const
|
||||
{
|
||||
return m_phy->GetChannel ();
|
||||
}
|
||||
|
||||
void
|
||||
WifiNetDevice::SetAddress (Address address)
|
||||
{
|
||||
|
||||
@@ -156,12 +156,6 @@ private:
|
||||
* Set that the link is down (i.e. STA is not associated).
|
||||
*/
|
||||
void LinkDown (void);
|
||||
/**
|
||||
* Return the Channel this device is connected to.
|
||||
*
|
||||
* \return Ptr to Channel object
|
||||
*/
|
||||
Ptr<Channel> DoGetChannel (void) const;
|
||||
/**
|
||||
* Complete the configuration of this Wi-Fi device by
|
||||
* connecting all lower components (e.g. MAC, WifiRemoteStation) together.
|
||||
|
||||
Reference in New Issue
Block a user