81 Commits

Author SHA1 Message Date
Matthias Ringwald
ce90ed1aac mesh: mesh_network_address_unicast returns false for MESH_ADDRESS_UNSASSIGNED 2019-07-20 08:50:32 +02:00
Matthias Ringwald
c520adb916 mesh: validate iv index + active flag in secure network beacon before processing 2019-07-20 08:50:32 +02:00
Matthias Ringwald
5d8695d635 mesh: transition norml -> iv update active -> normal via secure network beacons 2019-07-20 08:50:32 +02:00
Matthias Ringwald
d075c32206 mesh: send using previous iv index if iv update active 2019-07-20 08:50:32 +02:00
Matthias Ringwald
a42685b6ad mesh: mesh_trigger_iv_update 2019-07-20 08:50:32 +02:00
Matthias Ringwald
7d00533263 mesh: set iv flag in secure network beacon 2019-07-20 08:50:32 +02:00
Matthias Ringwald
85f6c8a0c0 mesh: use mesh_subnet_setup_for_netkey_index only on start and for tests 2019-07-20 08:50:32 +02:00
Matthias Ringwald
0f0f44ede9 mesh: delete subnet on netkey delete in config server / remove from mesh_subnet_update_for_netkey_index helper 2019-07-20 08:50:32 +02:00
Matthias Ringwald
bdf219b229 mesh: use key from mesh_subnet_get_outgoing_network_key for beacon rx/tx, network tx, advertising with network id 2019-07-20 08:50:32 +02:00
Matthias Ringwald
8adad2d3ba mesh: mesh_subnet_update_for_netkey_index 2019-07-20 08:50:32 +02:00
Matthias Ringwald
9a470f7ba0 mesh: make mesh_subnet_get_outgoing_network_key public 2019-07-20 08:50:32 +02:00
Matthias Ringwald
d134d597d2 mesh: mesh_subnet_get_outgoing_network_key picks outgoing network key 2019-07-20 08:50:32 +02:00
Matthias Ringwald
2b7de14bb0 mesh: move advertisement_with_network_id from mesh_network_key_t to mesh_subnet_t 2019-07-20 08:50:32 +02:00
Matthias Ringwald
b1dda14141 mesh: remove subnet without keys, set key refresh idle if only single key 2019-07-20 08:50:32 +02:00
Matthias Ringwald
a2484a8470 mesh: update subnet based on network keys 2019-07-20 08:50:32 +02:00
Matthias Ringwald
de7d11c030 mesh: dd mesh_subnet_iterator, add mesh_subnet_for_netkey_index 2019-07-20 08:50:32 +02:00
Matthias Ringwald
f276878605 mesh: let network handle proxy configuration messages from gatt bearer 2019-07-20 08:50:31 +02:00
Matthias Ringwald
31a6a8527c mesh: don't send netework pdu over gatt bearer if received from there 2019-07-20 08:50:31 +02:00
Matthias Ringwald
8b0d5c7c2a mesh: relay adv message if relay or proxy active, relay gatt message if proxy active 2019-07-20 08:50:31 +02:00
Matthias Ringwald
ec22fe6707 mesh: extract set flag MESH_NETWORK_PDU_FLAGS_RELAY when queue received message for transmission 2019-07-20 08:50:31 +02:00
Matthias Ringwald
90f8142e51 mesh: extract mesh_network_relay_message 2019-07-20 08:50:31 +02:00
Matthias Ringwald
f727526daf mesh: track if network pdu was received from gatt bearer 2019-07-20 08:50:31 +02:00
Matthias Ringwald
fd7ffe0047 mesh: use proxy_configuration_message instead of proxy_message 2019-07-20 08:50:31 +02:00
Matthias Ringwald
bd9002edc0 mesh: define MESH_NETWORK_PDU_FLAGS_PROXY_MESSAGE 2019-07-20 08:50:31 +02:00
Matthias Ringwald
f18b16f406 mesh: relay message on network layer only if relay feature is enabled 2019-07-20 08:50:31 +02:00
Matthias Ringwald
917dc5c7e7 mesh: track gatt bearer connection state, only use if proxy is enabled 2019-07-20 08:50:31 +02:00
Matthias Ringwald
4662af4a88 mesh: streamline adv + gatt baerer api: network pdu, provisioning pdu, beacon 2019-07-20 08:50:31 +02:00
Matthias Ringwald
a59b27450e mesh: avoid redirect of mesh network messages via mesh.c 2019-07-20 08:50:31 +02:00
Matthias Ringwald
eead582d3e mesh: notify upper layer on pdu sent if gatt bearer only 2019-07-20 08:50:31 +02:00
Matthias Ringwald
c7dcf8185f mesh: sort adv vs. gatt bearer code 2019-07-20 08:50:31 +02:00
Matthias Ringwald
77ba3d3f9f mesh: move src/ble/mesh to src/mesh 2019-07-20 08:50:31 +02:00