mesh: Remove RFU check for publication set
authorIsak Westin <isak.westin@hotmail.com>
Wed, 21 Sep 2022 11:16:30 +0000 (13:16 +0200)
committerAyush Garg <ayush.garg@samsung.com>
Mon, 15 May 2023 09:25:55 +0000 (14:55 +0530)
It is not stated in the mesh profile that the RFU bits in a Model
Publication Set message have to be zero. In fact, PTS test
MESH/NODE/CFG/MP/BV-01-C is sending that command with non-zero RFU and
expects a reply.

Signed-off-by: Manika Shrivastava <manika.sh@samsung.com>
Signed-off-by: Ayush Garg <ayush.garg@samsung.com>
mesh/cfgmod-server.c

index 5eefedc..c1e1faa 100644 (file)
@@ -110,8 +110,6 @@ static uint16_t config_pub_set(struct mesh_node *node, const uint8_t *pkt,
        pkt += (virt ? 14 : 0);
 
        idx = l_get_le16(pkt + 4);
-       if (idx > CREDFLAG_MASK)
-               return 0;
 
        cred_flag = !!(CREDFLAG_MASK & idx);
        idx &= APP_IDX_MASK;