72 Commits

Author SHA1 Message Date
Matthias Ringwald
4ee6a71aa9 mesh: extract mesh_transport 2019-07-20 08:50:24 +02:00
Matthias Ringwald
c66b1ca7ce mesh: move mesh nettwork getter into mesh_network 2019-07-20 08:50:24 +02:00
Matthias Ringwald
a0a1ee7ec3 mesh: fix akf/aid lookup for access message validation 2019-07-20 08:50:24 +02:00
Matthias Ringwald
2c2a98f169 mesh: dont free network pdus from network layer 2019-07-20 08:50:24 +02:00
Matthias Ringwald
a59413f37f mesh: limit retries for segmented upper transport message 2019-07-20 08:50:24 +02:00
Milanka Ringwald
e85388bcc4 mesh: calculate identity key 2019-07-20 08:50:23 +02:00
Matthias Ringwald
5fee0b6b7c mesh: handle Segment Acknowledgement messages 2019-07-20 08:50:23 +02:00
Matthias Ringwald
133765d4a9 mesh: track unacknowledged segments in block ack 2019-07-20 08:50:23 +02:00
Matthias Ringwald
1e6b8b2ffb mesh: only resend unacknowledged segments 2019-07-20 08:50:23 +02:00
Matthias Ringwald
6078f959dc mesh: use central upper transport seq counter 2019-07-20 08:50:23 +02:00
Matthias Ringwald
1d1877852c mesh: use central upper transport seq counter 2019-07-20 08:50:23 +02:00
Matthias Ringwald
a3aa829c45 mesh: generate outgoing segmented network pdus on the fly 2019-07-20 08:50:23 +02:00
Matthias Ringwald
c191d3c542 mesh: extract mesh_upper_transport_setup_segment 2019-07-20 08:50:23 +02:00
Matthias Ringwald
7991f61b9d mesh: use seg_o as interator in mesh_upper_transport_send_segmented_pdu 2019-07-20 08:50:23 +02:00
Matthias Ringwald
83fe21d569 mesh: use mesh_upper_transport_send_segmented_pdu for segmented access and control messages 2019-07-20 08:50:23 +02:00
Matthias Ringwald
453c736fcd mesh: extract mesh_upper_transport_send_segmented_pdu 2019-07-20 08:50:23 +02:00
Matthias Ringwald
6c2163ba02 mesh: sort functions by layer 2019-07-20 08:50:23 +02:00
Matthias Ringwald
15b018cb86 mesh: notify lower transport when network pdu was sent, free memory in higher layer 2019-07-20 08:50:23 +02:00
Matthias Ringwald
f635d27a4d mesh: only provide mesh_network_send_pdu to allow for pdu sent callback 2019-07-20 08:50:23 +02:00
Matthias Ringwald
12560ee3f2 mesh: add mesh_network_callback_type_t to callbacks from mesh_network 2019-07-20 08:50:23 +02:00
Matthias Ringwald
4c8f56d7c4 mesh: deliver Mesh Beacons from ADV Bearer to Beacon and higher layers as MESH_BEACON_PACKET 2019-07-20 08:50:23 +02:00
Matthias Ringwald
b177cd1d67 mesh: send segmented access messsage prototype 2019-07-20 08:50:23 +02:00
Matthias Ringwald
4dcdf9cccd mesh: send segmented control message prototype 2019-07-20 08:50:23 +02:00
Milanka Ringwald
127b9caf59 mesh: extract pb_gatt 2019-07-20 08:50:23 +02:00
Matthias Ringwald
e945e74d13 mesh: add/test more test messages 2019-07-20 08:50:23 +02:00
Matthias Ringwald
9dd3fa6189 mesh: pretty-print output 2019-07-20 08:50:23 +02:00
Matthias Ringwald
16c189fe03 mesh: prepare unsegmented acccess message in mesh_network_pdu 2019-07-20 08:50:23 +02:00
Matthias Ringwald
6921754201 mesh: encrypt access pdu with application key 2019-07-20 08:50:23 +02:00
Matthias Ringwald
731d77a002 mesh: send segmented acknowledgement message using CTL=1 2019-07-20 08:50:23 +02:00
Matthias Ringwald
1cbc4a36a7 mesh: fix mesh_network_seq getter 2019-07-20 08:50:23 +02:00
Milanka Ringwald
26ecb6246e mesh: add type pb_type_t, rename ADV to TRANSPORT in events 2019-07-20 08:50:23 +02:00
Milanka Ringwald
beeedc4565 mesh: add pb_adv_cid to pb_adv_send_pdu 2019-07-20 08:50:23 +02:00
Matthias Ringwald
d3a9936bfc mesh: add Incomplete Message Timer 2019-07-20 08:50:23 +02:00
Matthias Ringwald
26f452ddcd mesh: send Segment Acknowledgement Message 2019-07-20 08:50:23 +02:00
Matthias Ringwald
cf81b30ac1 mesh: fix rebase 2019-07-20 08:50:23 +02:00
Matthias Ringwald
25447df22f mesh: reassemble segmented transport messages 2019-07-20 08:50:22 +02:00
Matthias Ringwald
0d374fc949 mesh: validate TransMIC for segmented access messsages 2019-07-20 08:50:22 +02:00
Matthias Ringwald
14eb258619 mesh: store appkey_index in message 2019-07-20 08:50:22 +02:00
Matthias Ringwald
1cbafa7ff4 mesh: set AID for PTS Application Key 2019-07-20 08:50:22 +02:00
Matthias Ringwald
9daf21078b mesh: forward unsegmented control message to upper transport 2019-07-20 08:50:22 +02:00
Matthias Ringwald
4555e0ac16 mesh: support device key for upper transport message decoding 2019-07-20 08:50:22 +02:00
Matthias Ringwald
2f2eced698 mesh: iterate over application keys with matching aid 2019-07-20 08:50:22 +02:00
Matthias Ringwald
29dbcb61f0 mesh: extract mesh_lower_transport_process_message_done 2019-07-20 08:50:22 +02:00
Matthias Ringwald
fec314ce4b mesh: implement mesh_transport_run() that processes incoming network pdus 2019-07-20 08:50:22 +02:00
Matthias Ringwald
aacf960d48 mesh: introduce application key list 2019-07-20 08:50:22 +02:00
Matthias Ringwald
fb618bbc51 mesh: validate TransMIC for Unsegmented Access messages 2019-07-20 08:50:22 +02:00
Matthias Ringwald
8b15b9f640 mesh: provide setter for higher layer mesage handler in mesh_network 2019-07-20 08:50:22 +02:00
Matthias Ringwald
233d8706eb mesh: extract setup code from provisioning data 2019-07-20 08:50:22 +02:00
Matthias Ringwald
2264eafe8f mesh: store unicast addr in provisioning data 2019-07-20 08:50:22 +02:00
Matthias Ringwald
bcb111ffa5 mesh: relay messages in mesh_network 2019-07-20 08:50:22 +02:00