Hi all,
As I checked in mac-802.11.cc, it seems that interface queue only sends one
packet at a time to MAC 802.11 (but i am not 100% sure) and it waits to dequeue
and send the next packet to 802.11 MAC until a callback is triggered by
mac-802.11.
So the call back is triggered by mac-802.11 in tx_resume()
oid
Mac802_11::tx_resume()
{
double rTime;
assert(mhSend_.busy() == 0);
assert(mhDefer_.busy() == 0);
if(pktCTRL_) {
…. }
} else if(pktTx_) {
….
}
}
} else if(callback_) {
Handler *h = callback_;
callback_ = 0;
h->handle((Event*) 0);
}
setTxState(MAC_IDLE);
}
am I right?
Thanks,
Behnaz