mesh: Add more checks for element properties
authorInga Stotland <inga.stotland@intel.com>
Wed, 11 Dec 2019 23:28:47 +0000 (15:28 -0800)
committerAnupam Roy <anupam.r@samsung.com>
Wed, 18 Dec 2019 11:49:13 +0000 (17:19 +0530)
commit91f576f7d6aaa02cdcdfa87cd63bb8d5caced138
treea3e42c25748f52b3b827cd112dc36c531940d5a4
parente619de81fc042da6e7f5e796cc5c6608d6e50db3
mesh: Add more checks for element properties

This adds consistency checks for mandatory properties on
org.bluez.mesh.Element1 interface:
    - disallow duplicate models on the same element
    - disallow elements with duplicate indices
    - disallow configuration server model on any element but primary

Change-Id: If4174021b50a0f05c7c25911054cfb98042a06c8
Signed-off-by: Anupam Roy <anupam.r@samsung.com>
mesh/node.c