src/devices/wifi/dca-txop.cc
changeset 5189 8fcdf87a790a
parent 4720 15221757964f
child 5900 c4b8a337fc29
child 6065 0f012e7d9128
--- 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);