[mac] count out-of-band Tx frames (#4936)

This commit is contained in:
Jing Ma
2020-05-20 19:37:05 -07:00
committed by GitHub
parent 93c55f5837
commit 25d90c7f92
2 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -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;
+2
View File
@@ -1369,6 +1369,8 @@ void Mac::HandleTransmitDone(TxFrame &aFrame, RxFrame *aAckFrame, otError aError
#endif
case kOperationTransmitOutOfBandFrame:
// count Oob frames
mCounters.mTxOther++;
FinishOperation();
PerformNextOperation();
break;