Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[link-metrics] add Subject status check when getting link metrics data (
openthread#9665) This commit adds a check when returning Link Metrics data collected by the Link Metrics manager so that only subjects in 'active' or 'renew' state will return the data. This is to avoid showing N/A results for neighbors that don't support being a Link Metrics Subject. Based on current implementation, a 'Subject' object is created when the device is trying to register a Link Metrics probing at its neighbor. If the neighbor device doesn't support being a Subject, the device won't get a LinkMetricsManagement response. During this period (before timeout), the 'Subject' object is in 'kConfiguring' state. So it's unnecessary to return any value for Subject in such states.
- Loading branch information