|
344 |
m_sendAckEvent (), |
344 |
m_sendAckEvent (), |
345 |
m_sendDataEvent (), |
345 |
m_sendDataEvent (), |
346 |
m_waitSifsEvent (), |
346 |
m_waitSifsEvent (), |
|
|
347 |
m_endTxNoAckEvent (), |
347 |
m_currentPacket (0), |
348 |
m_currentPacket (0), |
348 |
m_listener (0) |
349 |
m_listener (0) |
349 |
{ |
350 |
{ |
|
379 |
m_sendAckEvent.Cancel (); |
380 |
m_sendAckEvent.Cancel (); |
380 |
m_sendDataEvent.Cancel (); |
381 |
m_sendDataEvent.Cancel (); |
381 |
m_waitSifsEvent.Cancel (); |
382 |
m_waitSifsEvent.Cancel (); |
|
|
383 |
m_endTxNoAckEvent.Cancel (); |
382 |
m_phy = 0; |
384 |
m_phy = 0; |
383 |
m_stationManager = 0; |
385 |
m_stationManager = 0; |
384 |
delete m_phyMacLowListener; |
386 |
delete m_phyMacLowListener; |
|
440 |
m_waitSifsEvent.Cancel (); |
442 |
m_waitSifsEvent.Cancel (); |
441 |
oneRunning = true; |
443 |
oneRunning = true; |
442 |
} |
444 |
} |
|
|
445 |
if (m_endTxNoAckEvent.IsRunning ()) |
446 |
{ |
447 |
m_endTxNoAckEvent.Cancel (); |
448 |
oneRunning = true; |
449 |
} |
443 |
if (oneRunning && m_listener != 0) |
450 |
if (oneRunning && m_listener != 0) |
444 |
{ |
451 |
{ |
445 |
m_listener->Cancel (); |
452 |
m_listener->Cancel (); |
|
1320 |
m_waitSifsEvent = Simulator::Schedule (delay, &MacLow::WaitSifsAfterEndTx, this); |
1327 |
m_waitSifsEvent = Simulator::Schedule (delay, &MacLow::WaitSifsAfterEndTx, this); |
1321 |
} |
1328 |
} |
1322 |
else |
1329 |
else |
1323 |
{ |
1330 |
{ |
1324 |
// since we do not expect any timer to be triggered. |
1331 |
Simulator::Schedule(txDuration, &MacLow::EndTxNoAck, this); |
1325 |
m_listener = 0; |
1332 |
} |
1326 |
} |
|
|
1327 |
} |
1333 |
} |
1328 |
|
1334 |
|
1329 |
void |
1335 |
void |
|
1460 |
m_listener->StartNext (); |
1466 |
m_listener->StartNext (); |
1461 |
} |
1467 |
} |
1462 |
|
1468 |
|
|
|
1469 |
void |
1470 |
MacLow::EndTxNoAck (void) |
1471 |
{ |
1472 |
MacLowTransmissionListener *listener = m_listener; |
1473 |
m_listener = 0; |
1474 |
listener->EndTxNoAck (); |
1475 |
} |
1476 |
|
1463 |
void |
1477 |
void |
1464 |
MacLow::FastAckFailedTimeout (void) |
1478 |
MacLow::FastAckFailedTimeout (void) |
1465 |
{ |
1479 |
{ |