[mle] ensure MLE messages are sent via broadcast (#6730)

MLE Announce messages are sent with link security enabled. This commit
ensures that REEDs always send MLE Announce messages to the broadcast
destination address.
This commit is contained in:
Jonathan Hui
2021-06-16 11:53:09 -07:00
committed by GitHub
parent 847eee2086
commit deb825bd80
+1 -1
View File
@@ -365,7 +365,7 @@ Error MeshForwarder::UpdateIp6Route(Message &aMessage)
// with link security disabled, an End Device transmits
// multicasts, as IEEE 802.15.4 unicasts to its parent.
if (mle.IsChild() && aMessage.IsLinkSecurityEnabled())
if (mle.IsChild() && aMessage.IsLinkSecurityEnabled() && !aMessage.IsSubTypeMle())
{
mMacDest.SetShort(mle.GetNextHop(Mac::kShortAddrBroadcast));
}