[mle] set ChannelPage value in MLE Announce messages (#7285)

This commit is contained in:
Jonathan Hui
2022-01-05 12:02:10 -08:00
committed by GitHub
parent 53a19d961c
commit ba09f6894a
+1
View File
@@ -2519,6 +2519,7 @@ void Mle::SendAnnounce(uint8_t aChannel, const Ip6::Address &aDestination, Annou
SuccessOrExit(error = AppendHeader(*message, kCommandAnnounce));
channel.Init();
channel.SetChannelPage(0);
channel.SetChannel(Get<Mac::Mac>().GetPanChannel());
SuccessOrExit(error = channel.AppendTo(*message));