mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-02-26 00:40:38 +00:00
mesh: minimal network pdu without payload and mic is 9 bytes
This commit is contained in:
parent
7a1ad92d2c
commit
29aca185e8
@ -675,8 +675,8 @@ static void mesh_lower_transport_send_current_segmented_pdu_once(void){
|
|||||||
void mesh_lower_transport_send_pdu(mesh_pdu_t *pdu){
|
void mesh_lower_transport_send_pdu(mesh_pdu_t *pdu){
|
||||||
if (pdu->pdu_type == MESH_PDU_TYPE_NETWORK){
|
if (pdu->pdu_type == MESH_PDU_TYPE_NETWORK){
|
||||||
mesh_network_pdu_t * network_pdu = (mesh_network_pdu_t *) pdu;
|
mesh_network_pdu_t * network_pdu = (mesh_network_pdu_t *) pdu;
|
||||||
// network pdu without payload and minimal mic = 13 bytes
|
// network pdu without payload = 9 bytes
|
||||||
if (network_pdu->len <13){
|
if (network_pdu->len < 9){
|
||||||
printf("too short, %u\n", network_pdu->len);
|
printf("too short, %u\n", network_pdu->len);
|
||||||
while(1);
|
while(1);
|
||||||
}
|
}
|
||||||
|
@ -991,8 +991,8 @@ void mesh_network_send_pdu(mesh_network_pdu_t * network_pdu){
|
|||||||
while(1);
|
while(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
// network pdu without payload and minimal mic = 13 bytes
|
// network pdu without payload = 9 bytes
|
||||||
if (network_pdu->len <13){
|
if (network_pdu->len < 9){
|
||||||
printf("too short, %u\n", network_pdu->len);
|
printf("too short, %u\n", network_pdu->len);
|
||||||
while(1);
|
while(1);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user