|
|
| 577 |
//this may be caused only if PHY has started to receive a packet |
577 |
//this may be caused only if PHY has started to receive a packet |
| 578 |
//inside SIFS, so, we check that lastRxStart was maximum a SIFS |
578 |
//inside SIFS, so, we check that lastRxStart was maximum a SIFS |
| 579 |
//ago |
579 |
//ago |
| 580 |
NS_ASSERT(Simulator::Now () - m_lastRxStart < m_sifs); |
580 |
NS_ASSERT(Simulator::Now () - m_lastRxStart <= m_sifs); |
| 581 |
m_lastRxEnd = Simulator::Now (); |
581 |
m_lastRxEnd = Simulator::Now (); |
| 582 |
m_lastRxDuration = m_lastRxEnd - m_lastRxStart; |
582 |
m_lastRxDuration = m_lastRxEnd - m_lastRxStart; |
| 583 |
m_lastRxReceivedOk = true; |
583 |
m_lastRxReceivedOk = true; |