Clear multicast bit from randomly generated extended address (#242)

* Clear multicast bit from randomly generated extended address
This commit is contained in:
Giedrius
2016-07-25 12:04:26 -07:00
committed by Jonathan Hui
parent a46d258ce7
commit d917618c7b
+2
View File
@@ -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);