Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[mle] fix uninitialized
mLinkRequestAttempts
(openthread#9689)
mLinkRequestAttempts is not initialized to zero causing it to get a random value during power cycle. This causes MTD thread device to send linkrequest after power cycle. Create a thread network with two devices with DUT with mode rn. Reset both devices simultaneously, enable leader and then child device (DUT). Because class member variable mLinkRequestAttempts is not initialized to zero during initialization, it will get random value, and value greater than zero will lead to send a link request message which should not be the case for a MTD device.
- Loading branch information