wifi: MacRxMiddle can receive pointers to const WifiMpdu
This commit is contained in:
committed by
Stefano Avallone
parent
ce590ad057
commit
43c6f7cb03
@@ -296,7 +296,7 @@ MacRxMiddle::HandleFragments (Ptr<const Packet> packet, const WifiMacHeader *hdr
|
||||
}
|
||||
|
||||
void
|
||||
MacRxMiddle::Receive (Ptr<WifiMpdu> mpdu, uint8_t linkId)
|
||||
MacRxMiddle::Receive (Ptr<const WifiMpdu> mpdu, uint8_t linkId)
|
||||
{
|
||||
NS_LOG_FUNCTION (*mpdu << +linkId);
|
||||
const WifiMacHeader* hdr = &mpdu->GetHeader ();
|
||||
|
||||
@@ -62,7 +62,7 @@ public:
|
||||
* \param mpdu the MPDU
|
||||
* \param linkId the ID of the given link
|
||||
*/
|
||||
void Receive (Ptr<WifiMpdu> mpdu, uint8_t linkId);
|
||||
void Receive (Ptr<const WifiMpdu> mpdu, uint8_t linkId);
|
||||
|
||||
|
||||
private:
|
||||
|
||||
Reference in New Issue
Block a user