From a751b357488443abbba2633a411a9744417d02ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Duda?= Date: Fri, 22 Jan 2021 20:51:01 +0100 Subject: [PATCH] [mle] ensure reserved bit in Mode TLV is set (#6107) --- src/core/thread/mle_types.hpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/core/thread/mle_types.hpp b/src/core/thread/mle_types.hpp index f409b3d85..b210fa685 100644 --- a/src/core/thread/mle_types.hpp +++ b/src/core/thread/mle_types.hpp @@ -345,10 +345,7 @@ public: * @param[in] aMode A mode TLV bitmask to initialize the `DeviceMode` object. * */ - explicit DeviceMode(uint8_t aMode) - : mMode(aMode) - { - } + explicit DeviceMode(uint8_t aMode) { Set(aMode); } /** * This constructor initializes a `DeviceMode` object from a given mode configuration structure.