--- a/src/devices/wifi/dca-txop.cc Tue Sep 15 00:05:36 2009 -0700
+++ b/src/devices/wifi/dca-txop.cc Tue Sep 15 10:47:02 2009 +0200
@@ -58,6 +58,9 @@
virtual void DoNotifyCollision (void) {
m_txop->NotifyCollision ();
}
+ virtual void DoNotifyChannelSwitching (void) {
+ m_txop->NotifyChannelSwitching ();
+ }
DcaTxop *m_txop;
};
@@ -447,6 +450,13 @@
}
void
+DcaTxop::NotifyChannelSwitching (void)
+{
+ m_queue->Flush();
+ m_currentPacket = 0;
+}
+
+void
DcaTxop::GotCts (double snr, WifiMode txMode)
{
NS_LOG_FUNCTION (this << snr << txMode);