From 7824a682252e9e4cd86d7efc81b02721d09ec7a2 Mon Sep 17 00:00:00 2001 From: Jonathan Hui Date: Thu, 20 Oct 2016 12:26:35 -0700 Subject: [PATCH] Fix bug in reading the Connectivity TLV Parent Priority field. (#850) --- src/core/thread/mle_tlvs.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/thread/mle_tlvs.hpp b/src/core/thread/mle_tlvs.hpp index 4db4286d8..5aa338a4a 100644 --- a/src/core/thread/mle_tlvs.hpp +++ b/src/core/thread/mle_tlvs.hpp @@ -1008,7 +1008,7 @@ public: * @returns The Parent Priority value. * */ - int8_t GetParentPriority(void) const { return (mParentPriority & kParentPriorityOffset) >> kParentPriorityOffset; } + int8_t GetParentPriority(void) const { return (mParentPriority & kParentPriorityMask) >> kParentPriorityOffset; } /** * This method sets the Parent Priority value.