mesh: Fix calculation of model publication period
authorInga Stotland <inga.stotland@intel.com>
Tue, 28 Jul 2020 18:10:51 +0000 (11:10 -0700)
committerAbhay Agarwal <ay.agarwal@samsung.com>
Mon, 28 Dec 2020 06:20:04 +0000 (11:50 +0530)
commita1f0840154194728983007eeee7dcd0593871730
tree7c0a311bc5bfcaf5ea34a2b53eb35b739f6014cd
parent141910cb039964129315314e2239cdd9c5f97415
mesh: Fix calculation of model publication period

This fixes the extraction of bit fields from model publication
period octet received as part of Congif Publication Set message.

The step resolution field is extracted as upper 2 bits (shift by 6)
and the number of steps field is extracted by masking lower 6 bits.

Change-Id: I198e44cddc517359e7ae17c1dd657f7f6003faec
Signed-off-by: anuj.bhumiya <anuj.bhumiya@samsung.com>
mesh/model.c