mirror of
https://github.com/espressif/openthread.git
synced 2026-08-10 04:37:47 +00:00
[mac] count out-of-band Tx frames (#4936)
This commit is contained in:
@@ -191,7 +191,7 @@ typedef struct otMacCounters
|
||||
/**
|
||||
* The total number of unique other MAC frame transmission requests.
|
||||
*
|
||||
* This counter is currently unused.
|
||||
* This counter is currently used for counting out-of-band frames.
|
||||
*
|
||||
*/
|
||||
uint32_t mTxOther;
|
||||
|
||||
@@ -1369,6 +1369,8 @@ void Mac::HandleTransmitDone(TxFrame &aFrame, RxFrame *aAckFrame, otError aError
|
||||
#endif
|
||||
|
||||
case kOperationTransmitOutOfBandFrame:
|
||||
// count Oob frames
|
||||
mCounters.mTxOther++;
|
||||
FinishOperation();
|
||||
PerformNextOperation();
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user