From d917618c7b428ee244e6febbdce3c71f5e3c5bbe Mon Sep 17 00:00:00 2001 From: Giedrius Date: Mon, 25 Jul 2016 22:04:26 +0300 Subject: [PATCH] Clear multicast bit from randomly generated extended address (#242) * Clear multicast bit from randomly generated extended address --- src/core/mac/mac.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/core/mac/mac.cpp b/src/core/mac/mac.cpp index aaffbecdf..9a03156d0 100644 --- a/src/core/mac/mac.cpp +++ b/src/core/mac/mac.cpp @@ -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);