mirror of
https://github.com/espressif/openthread.git
synced 2026-09-25 10:27:37 +00:00
Clear multicast bit from randomly generated extended address (#242)
* Clear multicast bit from randomly generated extended address
This commit is contained in:
@@ -106,6 +106,8 @@ Mac::Mac(ThreadNetif &aThreadNetif):
|
||||
mExtAddress.m8[i] = otPlatRandomGet();
|
||||
}
|
||||
|
||||
mExtAddress.m8[0] &= ~1; // always remove multicast bit
|
||||
|
||||
memset(&mCounters, 0, sizeof(otMacCounters));
|
||||
|
||||
SetExtendedPanId(sExtendedPanidInit);
|
||||
|
||||
Reference in New Issue
Block a user