Bladeren bron

ble_mesh: Associate replay protection list size with nodes count

The replay protection list of Provisioner should be at least equal
to the number of nodes with the precondition that each node contains
only one element.
The help information of replay protection list is updated, and the
maximum number of nodes for Provisioner is adjusted based on the
replay protection list size.
lly 6 jaren geleden
bovenliggende
commit
dbc44ccc7e
1 gewijzigde bestanden met toevoegingen van 8 en 3 verwijderingen
  1. 8 3
      components/bt/Kconfig

+ 8 - 3
components/bt/Kconfig

@@ -1763,7 +1763,7 @@ if BLE_MESH
 
         config BLE_MESH_WAIT_FOR_PROV_MAX_DEV_NUM
             int "Maximum number of unprovisioned devices that can be added to device queue"
-            default 20
+            default 10
             range 1 100
             help
                 This option specifies how many unprovisioned devices can be added to device
@@ -1773,7 +1773,7 @@ if BLE_MESH
 
         config BLE_MESH_MAX_STORED_NODES
             int "Maximum number of nodes whose information can be stored"
-            default 20
+            default 10
             range BLE_MESH_MAX_PROV_NODES 1000
             help
                 This option specifies the maximum number of nodes whose information can be
@@ -1784,7 +1784,7 @@ if BLE_MESH
 
         config BLE_MESH_MAX_PROV_NODES
             int "Maximum number of devices that can be provisioned by Provisioner"
-            default 20
+            default 10
             range 1 1000
             help
                 This option specifies how many devices can be provisioned by a Provisioner.
@@ -2055,6 +2055,11 @@ if BLE_MESH
             The replay protection list is used to prevent a node from replay attack,
             which will store the source address and sequence number of the received
             mesh messages.
+            For Provisioner, the replay protection list size should not be smaller than
+            the maximum number of nodes whose information can be stored. And the element
+            number of each node should also be taken into consideration. For example, if
+            Provisioner can provision up to 20 nodes and each node contains two elements,
+            then the replay protection list size of Provisioner should be at least 40.
 
     config BLE_MESH_MSG_CACHE_SIZE
         int "Network message cache size"