mirror of
https://github.com/espressif/esp-idf.git
synced 2025-07-30 18:57:19 +02:00
feat(ble_mesh): Change the type of rpl size from uint8 to uint16
This commit is contained in:
@ -477,7 +477,7 @@ if BLE_MESH
|
|||||||
int "Maximum capacity of solicitation replay protection list"
|
int "Maximum capacity of solicitation replay protection list"
|
||||||
depends on BLE_MESH_PROXY_SOLIC_PDU_RX
|
depends on BLE_MESH_PROXY_SOLIC_PDU_RX
|
||||||
default 2
|
default 2
|
||||||
range 1 255
|
range 1 65536
|
||||||
help
|
help
|
||||||
This option specifies the maximum capacity of the solicitation replay
|
This option specifies the maximum capacity of the solicitation replay
|
||||||
protection list. The solicitation replay protection list is used to
|
protection list. The solicitation replay protection list is used to
|
||||||
|
@ -1175,17 +1175,17 @@ uint8_t *bt_mesh_ext_net_get_dev_key_ca(void)
|
|||||||
return bt_mesh.dev_key_ca;
|
return bt_mesh.dev_key_ca;
|
||||||
}
|
}
|
||||||
|
|
||||||
uint8_t bt_mesh_ext_net_get_rpl_count(void)
|
uint16_t bt_mesh_ext_net_get_rpl_count(void)
|
||||||
{
|
{
|
||||||
return ARRAY_SIZE(bt_mesh.rpl);
|
return ARRAY_SIZE(bt_mesh.rpl);
|
||||||
}
|
}
|
||||||
|
|
||||||
uint16_t bt_mesh_ext_net_get_rpl_src(uint8_t index)
|
uint16_t bt_mesh_ext_net_get_rpl_src(uint16_t index)
|
||||||
{
|
{
|
||||||
return bt_mesh.rpl[index].src;
|
return bt_mesh.rpl[index].src;
|
||||||
}
|
}
|
||||||
|
|
||||||
void bt_mesh_ext_net_reset_rpl(uint8_t index)
|
void bt_mesh_ext_net_reset_rpl(uint16_t index)
|
||||||
{
|
{
|
||||||
memset(&bt_mesh.rpl[index], 0, sizeof(bt_mesh.rpl[index]));
|
memset(&bt_mesh.rpl[index], 0, sizeof(bt_mesh.rpl[index]));
|
||||||
}
|
}
|
||||||
@ -3813,7 +3813,7 @@ void *bt_mesh_ext_brc_srv_get_bridge_table_entry(void *srv, uint8_t index)
|
|||||||
#endif /* CONFIG_BLE_MESH_BRC_SRV */
|
#endif /* CONFIG_BLE_MESH_BRC_SRV */
|
||||||
}
|
}
|
||||||
|
|
||||||
void *bt_mesh_ext_brc_srv_get_bridge_rpl(uint8_t index)
|
void *bt_mesh_ext_brc_srv_get_bridge_rpl(uint16_t index)
|
||||||
{
|
{
|
||||||
#if CONFIG_BLE_MESH_BRC_SRV
|
#if CONFIG_BLE_MESH_BRC_SRV
|
||||||
return &bridge_rpl[index];
|
return &bridge_rpl[index];
|
||||||
@ -4584,7 +4584,7 @@ typedef struct {
|
|||||||
uint16_t (*_bt_mesh_ext_sub_get_sbr_net_idx)(void *sub);
|
uint16_t (*_bt_mesh_ext_sub_get_sbr_net_idx)(void *sub);
|
||||||
void (*_bt_mesh_ext_sub_set_sbr_net_idx)(void *sub, uint16_t sbr_net_idx);
|
void (*_bt_mesh_ext_sub_set_sbr_net_idx)(void *sub, uint16_t sbr_net_idx);
|
||||||
void *(*_bt_mesh_ext_brc_srv_get_bridge_table_entry)(void *srv, uint8_t index);
|
void *(*_bt_mesh_ext_brc_srv_get_bridge_table_entry)(void *srv, uint8_t index);
|
||||||
void *(*_bt_mesh_ext_brc_srv_get_bridge_rpl)(uint8_t index);
|
void *(*_bt_mesh_ext_brc_srv_get_bridge_rpl)(uint16_t index);
|
||||||
/* CONFIG_BLE_MESH_BRC_SRV */
|
/* CONFIG_BLE_MESH_BRC_SRV */
|
||||||
|
|
||||||
/* CONFIG_BLE_MESH_AGG_CLI */
|
/* CONFIG_BLE_MESH_AGG_CLI */
|
||||||
|
Reference in New Issue
Block a user