[mac-types] add Mac::ExtendedPanId::Clear() method (#4315)

This commit is contained in:
Abtin Keshavarzian
2019-12-04 12:42:33 -08:00
committed by Jonathan Hui
parent 52a04dbed1
commit 56d3a469b2
2 changed files with 7 additions and 1 deletions
+1 -1
View File
@@ -122,7 +122,7 @@ Mac::Mac(Instance &aInstance)
mCcaSuccessRateTracker.Reset();
memset(&mCounters, 0, sizeof(otMacCounters));
memset(&mExtendedPanId, 0, sizeof(ExtendedPanId));
mExtendedPanId.Clear();
mSubMac.Enable();
+6
View File
@@ -461,6 +461,12 @@ public:
*/
typedef String<kInfoStringSize> InfoString;
/**
* This method clears the Extended PAN Identifier (sets all bytes to zero).
*
*/
void Clear(void) { memset(this, 0, sizeof(*this)); }
/**
* This method evaluates whether or not the Extended PAN Identifiers match.
*