linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] Allow to reattach with new composition data
@ 2020-01-20 16:11 Jakub Witowski
  2020-01-20 16:11 ` [PATCH 1/3] mesh: use static node_comp instead of the pointer Jakub Witowski
                   ` (3 more replies)
  0 siblings, 4 replies; 11+ messages in thread
From: Jakub Witowski @ 2020-01-20 16:11 UTC (permalink / raw)
  To: linux-bluetooth

This patch allows the application to modify the CID, PID, VID and CRPL in the composition data.

According the Mesh Profile (2.3.4 Elements) the modification of fields other than "Elements" is not prohibited.

Also in my opinion (as you can see in the 1st patch), there is no need to use pointer to the node_composition struct.
The static is more clear and less problematic.

Jakub Witowski (3):
  mesh: use static node_comp instead of the pointer
  mesh: add composition data setter
  mesh: allow to reattach with new composition data

 mesh/mesh-config-json.c | 46 +++++++++++++++-----
 mesh/mesh-config.h      |  2 +
 mesh/node.c             | 96 +++++++++++++++++++++++++----------------
 3 files changed, 96 insertions(+), 48 deletions(-)

-- 
2.20.1


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2020-01-22 18:03 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-20 16:11 [PATCH 0/3] Allow to reattach with new composition data Jakub Witowski
2020-01-20 16:11 ` [PATCH 1/3] mesh: use static node_comp instead of the pointer Jakub Witowski
2020-01-20 16:11 ` [PATCH 2/3] mesh: add composition data setter Jakub Witowski
2020-01-20 16:11 ` [PATCH 3/3] mesh: allow to reattach with new composition data Jakub Witowski
2020-01-20 17:17 ` [PATCH 0/3] Allow " Gix, Brian
2020-01-21 10:59   ` jakub.witowski
2020-01-21 18:21     ` Stotland, Inga
2020-01-21 20:05       ` Michał Lowas-Rzechonek
2020-01-22 13:53         ` jakub.witowski
2020-01-22 18:02   ` Michał Lowas-Rzechonek
2020-01-22 18:03     ` Michał Lowas-Rzechonek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).