Skip to content

Commit

Permalink
wifi: Remove unused function to notify Block Agreement is established…
Browse files Browse the repository at this point in the history
… at originator side
  • Loading branch information
sderonne committed Nov 23, 2024
1 parent 932cfdc commit 13954e5
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 30 deletions.
19 changes: 0 additions & 19 deletions src/wifi/model/block-ack-manager.cc
Original file line number Diff line number Diff line change
Expand Up @@ -705,25 +705,6 @@ BlockAckManager::InactivityTimeout(const Mac48Address& recipient, uint8_t tid)
m_blockAckInactivityTimeout(recipient, tid, true);
}

void
BlockAckManager::NotifyOriginatorAgreementEstablished(const Mac48Address& recipient,
uint8_t tid,
uint16_t startingSeq)
{
NS_LOG_FUNCTION(this << recipient << +tid << startingSeq);
auto it = m_originatorAgreements.find({recipient, tid});
NS_ASSERT(it != m_originatorAgreements.end());
if (!it->second.first.IsEstablished())
{
m_originatorAgreementState(Simulator::Now(),
recipient,
tid,
OriginatorBlockAckAgreement::ESTABLISHED);
}
it->second.first.SetState(OriginatorBlockAckAgreement::ESTABLISHED);
it->second.first.SetStartingSequence(startingSeq);
}

void
BlockAckManager::NotifyOriginatorAgreementRejected(const Mac48Address& recipient, uint8_t tid)
{
Expand Down
11 changes: 0 additions & 11 deletions src/wifi/model/block-ack-manager.h
Original file line number Diff line number Diff line change
Expand Up @@ -233,17 +233,6 @@ class BlockAckManager : public Object
* the number of buffered MPDUs but the number of buffered MSDUs.
*/
uint32_t GetNBufferedPackets(const Mac48Address& recipient, uint8_t tid) const;
/**
* @param recipient Address of peer station involved in block ack mechanism.
* @param tid Traffic ID of transmitted packet.
* @param startingSeq starting sequence field
*
* Puts corresponding originator agreement in established state and updates number of packets
* and starting sequence field. Invoked typically after a block ack refresh.
*/
void NotifyOriginatorAgreementEstablished(const Mac48Address& recipient,
uint8_t tid,
uint16_t startingSeq);
/**
* @param recipient Address of peer station involved in block ack mechanism.
* @param tid Traffic ID of transmitted packet.
Expand Down

0 comments on commit 13954e5

Please sign in to comment.