Commit bdd9e44e authored by Hauke Mehrtens's avatar Hauke Mehrtens
Browse files

fix(ble): Improve timeout values

Instead of setting these values to 0, use the same settings as used in
lib/sdk/Libraries/BTLE/stack/ble-host/sources/stack/cfg/cfg_stack.c from
the Cordio SDK instead of 0.

In my small test these value sare not use in the normal pairing process,
so I think this is not fixing any problem.

Fixes: 4107bd22

 ("hack(ble): Temporarily silence a warning")
Signed-off-by: default avatarHauke Mehrtens <hauke@hauke-m.de>
parent 421ba7b5
......@@ -122,11 +122,9 @@ static const smpCfg_t bleSmpCfg =
16, /*! Maximum encryption key length */
3, /*! Attempts to trigger 'repeated attempts' timeout */
DM_AUTH_MITM_FLAG, /*! Device authentication requirements */
/* TODO: The following three parameters should probably get proper values */
0, /*! Maximum 'Repeated attempts' timeout in msec */
0, /*! Time msec before attemptExp decreases */
0, /*! Exponent to raise attemptTimeout on maxAttempts */
64000, /*! Maximum 'Repeated attempts' timeout in msec */
64000, /*! Time msec before attemptExp decreases */
2, /*! Exponent to raise attemptTimeout on maxAttempts */
};
/* Configuration structure */
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment