81 Commits

Author SHA1 Message Date
Milanka Ringwald
7bbeb3ad8c add missing default switch cases 2020-10-27 13:44:55 +01:00
Matthias Ringwald
213a3171cf mesh: free pending outgoing pdus 2020-08-21 18:56:11 +02:00
Matthias Ringwald
f58c0c23eb mesh: fix compile warning when compiling without btstack assert 2020-08-10 16:12:55 +02:00
Matthias Ringwald
df71a9a479 mesh: fix compile warnings 2020-08-08 19:47:49 +02:00
Matthias Ringwald
7727b2d69e mesh: fix buffer overrun on network pdu setup 2020-08-08 19:47:49 +02:00
Matthias Ringwald
972841451c mesh: add assert for network pdu len in relay message 2020-08-08 19:47:49 +02:00
Matthias Ringwald
3fa4c16cca mesh: add mesh_network_notify_on_freed_pdu 2020-08-08 19:47:48 +02:00
Matthias Ringwald
8ec600ff6d mesh: use mesh_network_pdu/unsegmented_control for unsegmented control 2020-08-08 19:47:48 +02:00
Matthias Ringwald
a7f44e8db4 mesh: convert mesh_transport_t into mesh_message in lower transport before sending 2020-08-08 19:47:47 +02:00
Matthias Ringwald
1aa2a11e65 mesh: deliver encrypted proxy message with MESH_NETWORK_PDU_ENCRYPTED and remove callback from mesh_network_t 2020-08-08 19:47:47 +02:00
Matthias Ringwald
6535961a1f ignore memcpy return value (always returns first parameter) 2019-12-02 18:17:20 +01:00
Matthias Ringwald
2b13513864 mesh: split mesh_network_run per queue, call as long as work is done 2019-10-24 17:32:13 +02:00
Matthias Ringwald
74494532ac mesh: only relay messages if relay is enabled 2019-10-23 17:58:05 +02:00
Matthias Ringwald
689b15f3e1 mesh: keep CTL bit when relaying Network PDU 2019-10-22 22:38:31 +02:00
Matthias Ringwald
2d4000d185 mesh: fix BTSTACK_FILE__ tags 2019-10-16 22:21:20 +02:00
Matthias Ringwald
23789d53e0 mesh: improve mesh network debug output 2019-10-15 23:39:14 +02:00
Matthias Ringwald
8b9e0b6738 mesh: dump network outgoing adv pdus if log network 2019-10-12 09:28:56 +02:00
Matthias Ringwald
b7cd54c5a6 mesh: add mesh_network_pdu_set_seq 2019-10-07 18:00:24 +02:00
Matthias Ringwald
d4e23df00f mesh: fix warnings without asserts 2019-10-04 23:36:57 +02:00
Matthias Ringwald
e529392ed4 mesh: assert valid pdu size in adv_bearer and mesh_network 2019-10-04 23:07:25 +02:00
Matthias Ringwald
29aca185e8 mesh: minimal network pdu without payload and mic is 9 bytes 2019-09-18 17:28:16 +02:00
Matthias Ringwald
88fa182f58 mesh: don't free outgoing network pdus in mesh_network (owned by higher layer) 2019-09-18 15:38:17 +02:00
Matthias Ringwald
5127fa8aeb mesh: use gatt/adv bearer only if enabled 2019-09-06 21:46:57 +02:00
Matthias Ringwald
8f6e30145b mesh: fix build 2019-08-23 12:43:40 +02:00
Matthias Ringwald
99a9e0e42f mesh: print pdu address during network validation 2019-08-23 12:40:12 +02:00
Matthias Ringwald
0ede23cc6e mesh: free relay packets after send 2019-08-23 12:28:50 +02:00
Matthias Ringwald
eac6310367 mesh: introduce mesh_network_send_complete 2019-08-23 12:28:39 +02:00
Matthias Ringwald
7b71b67d6f mesh: assert on minimal pdu len in void mesh_network_send_pdu 2019-08-22 11:07:14 +02:00
Matthias Ringwald
8cabaf83bb mesh: track outgoing pdu in outgoing_pdu in mesh_network 2019-08-21 14:48:53 +02:00
Matthias Ringwald
68059845e9 mesh: use explicit incoming_pdu_raw and incoming_pdu_decoded instead of passing it in btstack_crypto 2019-08-20 19:27:41 +02:00
Matthias Ringwald
77321fed34 mesh: fix mesh_network_reset 2019-08-20 18:16:53 +02:00
Matthias Ringwald
fde19096d3 mesh: improve _reset functions for unit tests in mesh_network and btstack_crypto 2019-08-20 18:07:43 +02:00
Matthias Ringwald
9fe804231b mesh: more debug logging in mesh_network, remove unneeded #idef 2019-08-15 18:46:00 +02:00
Matthias Ringwald
e9292fe87e mesh: provide mesh_pdu_control_opcode 2019-08-13 18:26:40 +02:00
Matthias Ringwald
727cf477f1 mesh: rework outgoing network queue 2019-08-12 22:14:03 +02:00
Matthias Ringwald
bffb1c956a mesh: remove network pdus from network_pdus_outgoing only if responsible bearer is ready 2019-07-20 08:50:36 +02:00
Matthias Ringwald
c949b9e794 mesh: fix relay of network packet - don't remove net mic a second time 2019-07-20 08:50:36 +02:00
Matthias Ringwald
d7476ab042 mesh: fix debug output in mesh_network 2019-07-20 08:50:36 +02:00
Matthias Ringwald
460082dcd5 mesh: fix warnings 2019-07-20 08:50:36 +02:00
Matthias Ringwald
c1f227d5a9 mesh: use Network or Relay Trasmit settings for ADV bearer in mesh network 2019-07-20 08:50:36 +02:00
Matthias Ringwald
3bf10e3a89 mesh: allow to specify transmission count and interval for adv bearer network pdus 2019-07-20 08:50:36 +02:00
Matthias Ringwald
979ba7c0d1 mesh: improve network tx debug output 2019-07-20 08:50:35 +02:00
Matthias Ringwald
2983fbcb5f mesh: fix unused, shadowing, signed compares 2019-07-20 08:50:34 +02:00
Matthias Ringwald
f4854a5efb mesh: move mesh files to src/mesh, update includes 2019-07-20 08:50:34 +02:00
Matthias Ringwald
001c65e028 mesh: prefix mesh_node functions 2019-07-20 08:50:33 +02:00
Matthias Ringwald
e4058622b0 mesh: add mesh_element_count and use in mesh_network 2019-07-20 08:50:33 +02:00
Matthias Ringwald
683cf298e3 mesh: move mesh_node into src/mesh 2019-07-20 08:50:33 +02:00
Matthias Ringwald
a6fcac7c46 mesh: only use mesh_node_primary_element_address_get 2019-07-20 08:50:33 +02:00
Matthias Ringwald
6f14746dca mesh: move iv index and update state to mesh_iv_index_seq_number 2019-07-20 08:50:33 +02:00
Matthias Ringwald
0882d02cd2 mesh: implement IV Index Recovery procedure 2019-07-20 08:50:33 +02:00