Skip to content

Commit 643e6ff

Browse files
committed
feat(ble_mesh): Change the type of rpl size from uint8 to uint16
1 parent 456ae96 commit 643e6ff

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

components/bt/esp_ble_mesh/Kconfig.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,7 @@ if BLE_MESH
477477
int "Maximum capacity of solicitation replay protection list"
478478
depends on BLE_MESH_PROXY_SOLIC_PDU_RX
479479
default 2
480-
range 1 255
480+
range 1 65536
481481
help
482482
This option specifies the maximum capacity of the solicitation replay
483483
protection list. The solicitation replay protection list is used to

components/bt/esp_ble_mesh/lib/ext.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1175,17 +1175,17 @@ uint8_t *bt_mesh_ext_net_get_dev_key_ca(void)
11751175
return bt_mesh.dev_key_ca;
11761176
}
11771177

1178-
uint8_t bt_mesh_ext_net_get_rpl_count(void)
1178+
uint16_t bt_mesh_ext_net_get_rpl_count(void)
11791179
{
11801180
return ARRAY_SIZE(bt_mesh.rpl);
11811181
}
11821182

1183-
uint16_t bt_mesh_ext_net_get_rpl_src(uint8_t index)
1183+
uint16_t bt_mesh_ext_net_get_rpl_src(uint16_t index)
11841184
{
11851185
return bt_mesh.rpl[index].src;
11861186
}
11871187

1188-
void bt_mesh_ext_net_reset_rpl(uint8_t index)
1188+
void bt_mesh_ext_net_reset_rpl(uint16_t index)
11891189
{
11901190
memset(&bt_mesh.rpl[index], 0, sizeof(bt_mesh.rpl[index]));
11911191
}
@@ -3813,7 +3813,7 @@ void *bt_mesh_ext_brc_srv_get_bridge_table_entry(void *srv, uint8_t index)
38133813
#endif /* CONFIG_BLE_MESH_BRC_SRV */
38143814
}
38153815

3816-
void *bt_mesh_ext_brc_srv_get_bridge_rpl(uint8_t index)
3816+
void *bt_mesh_ext_brc_srv_get_bridge_rpl(uint16_t index)
38173817
{
38183818
#if CONFIG_BLE_MESH_BRC_SRV
38193819
return &bridge_rpl[index];
@@ -4584,7 +4584,7 @@ typedef struct {
45844584
uint16_t (*_bt_mesh_ext_sub_get_sbr_net_idx)(void *sub);
45854585
void (*_bt_mesh_ext_sub_set_sbr_net_idx)(void *sub, uint16_t sbr_net_idx);
45864586
void *(*_bt_mesh_ext_brc_srv_get_bridge_table_entry)(void *srv, uint8_t index);
4587-
void *(*_bt_mesh_ext_brc_srv_get_bridge_rpl)(uint8_t index);
4587+
void *(*_bt_mesh_ext_brc_srv_get_bridge_rpl)(uint16_t index);
45884588
/* CONFIG_BLE_MESH_BRC_SRV */
45894589

45904590
/* CONFIG_BLE_MESH_AGG_CLI */

0 commit comments

Comments
 (0)