Skip to content

Commit 00ffe64

Browse files
committed
lib: peer_manager: Kconfig: update prompts and descriptions
Improve prompts and descriptions of Kconfig options for the Peer Manager. Signed-off-by: Mirko Covizzi <[email protected]>
1 parent fdc75df commit 00ffe64

File tree

1 file changed

+25
-26
lines changed

1 file changed

+25
-26
lines changed

lib/peer_manager/Kconfig

Lines changed: 25 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -18,46 +18,44 @@ menuconfig PEER_MANAGER
1818
if PEER_MANAGER
1919

2020
config PM_BM_ZMS_SECTOR_SIZE
21-
int "Sector size"
21+
int "BM_ZMS sector size"
2222
default 1024
2323

2424
config PM_BLE_OBSERVER_PRIO
25-
int "Priority with which BLE events are dispatched to the Peer Manager module."
25+
int "BLE events priority"
2626
default 1
2727
help
2828
Priority with which BLE events are dispatched to the Peer Manager module.
2929

3030
config PM_MAX_REGISTRANTS
31-
int "Number of event handlers that can be registered."
31+
int "Maximum number of event handlers that can be registered"
3232
default 3
3333
help
34-
Number of event handlers that can be registered.
34+
Maximum number of event handlers that can be registered.
3535

3636
config PM_FLASH_BUFFERS
37-
int "Number of internal buffers for flash operations."
37+
int "Number of internal buffers for non-volatile storage operations"
3838
default 4
3939
help
40-
Number of internal buffers for flash operations.
41-
Decrease this value to lower RAM usage.
40+
Number of internal buffers for non-volatile storage operations.
41+
Decrease this value to reduce RAM usage.
4242

4343
config PM_SERVICE_CHANGED
44-
bool "Enable/disable the service changed management for GATT server in Peer Manager."
44+
bool "Service changed management for GATT server"
4545
depends on NRF_SDH_BLE_SERVICE_CHANGED
4646
default y
4747
help
48-
Enable/disable the service changed management for GATT server in Peer Manager.
49-
If not using a GATT server, or using a server without a service changed characteristic,
50-
disable this to save code space.
48+
Disable this option to reduce memory usage if not using a GATT server, or using a server
49+
without a service changed characteristic,
5150

5251
config PM_PEER_RANKS
53-
bool "Enable/disable the peer rank management in Peer Manager."
52+
bool "Peer rank management"
5453
default y
5554
help
56-
Enable/disable the peer rank management in Peer Manager.
57-
Set this to false to save code space if not using the peer rank API.
55+
Disable this option to reduce memory usage if not using the peer rank API.
5856

5957
config PM_LESC
60-
bool "Enable/disable LESC support in Peer Manager."
58+
bool "LE Secure Connections (LESC) support"
6159
default n
6260
depends on PSA_WANT_ALG_ECDH
6361
depends on PSA_WANT_GENERATE_RANDOM
@@ -69,10 +67,9 @@ config PM_LESC
6967
MBEDTLS_ENABLE_HEAP
7068

7169
help
72-
Enable/disable LESC support in Peer Manager.
73-
If set to true, you need to call nrf_ble_lesc_request_handler() in the main loop to
74-
respond to LESC-related BLE events. If LESC support is not required, set this to false to
75-
save code space.
70+
If enabled, you need to call nrf_ble_lesc_request_handler() in the main loop to
71+
respond to LESC-related BLE events. If LESC support is not required, disable this option
72+
to reduce memory usage.
7673

7774
if PM_LESC
7875

@@ -91,33 +88,35 @@ config PM_LESC_PRIVATE_KEY_EXPORT
9188
endif # PM_LESC
9289

9390
config PM_RA_PROTECTION
94-
bool "Enable/disable protection against repeated pairing attempts in Peer Manager."
91+
bool "Protection against repeated pairing attempts"
9592
default n
9693
help
97-
Enable/disable protection against repeated pairing attempts in Peer Manager.
94+
Enable protection against repeated Bluetooth pairing attempts from the same device.
95+
Offending peers will be temporarily blacklisted with increasing backoff times to
96+
prevent pairing spam or brute-force attacks.
9897

9998
if PM_RA_PROTECTION
10099

101100
config PM_RA_PROTECTION_TRACKED_PEERS_NUM
102-
int "Maximum number of peers whose authorization status can be tracked."
101+
int "Maximum number of peers whose authorization status can be tracked"
103102
default 8
104103
help
105104
Maximum number of peers whose authorization status can be tracked.
106105

107106
config PM_RA_PROTECTION_MIN_WAIT_INTERVAL
108-
int "Minimum waiting interval (in ms) before a new pairing attempt can be initiated."
107+
int "Minimum waiting interval (in ms) before a new pairing attempt can be initiated"
109108
default 4000
110109
help
111110
Minimum waiting interval (in ms) before a new pairing attempt can be initiated.
112111

113112
config PM_RA_PROTECTION_MAX_WAIT_INTERVAL
114-
int "Maximum waiting interval (in ms) before a new pairing attempt can be initiated."
113+
int "Maximum waiting interval (in ms) before a new pairing attempt can be initiated"
115114
default 64000
116115
help
117116
Maximum waiting interval (in ms) before a new pairing attempt can be initiated.
118117

119118
config PM_RA_PROTECTION_REWARD_PERIOD
120-
int "Reward period (in ms)."
119+
int "Reward period (in ms)"
121120
default 10000
122121
help
123122
Reward period (in ms).
@@ -127,7 +126,7 @@ config PM_RA_PROTECTION_REWARD_PERIOD
127126
endif # PM_RA_PROTECTION
128127

129128
config PM_HANDLER_SEC_DELAY_MS
130-
int "Delay before starting security."
129+
int "Delay before starting security"
131130
default 0
132131
help
133132
Delay before starting security.

0 commit comments

Comments
 (0)