Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
F
firmware
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
card10
firmware
Commits
f0807c24
Commit
f0807c24
authored
4 years ago
by
schneider
Browse files
Options
Downloads
Plain Diff
Merge branch 'schneider/ble-fixes-2020-2' into 'master'
BLE fixes 2020-2 See merge request
!385
parents
5d4325cf
9ae70996
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!385
BLE fixes 2020-2
Pipeline
#4586
passed
4 years ago
Stage: build
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
epicardium/ble/ble_main.c
+17
-14
17 additions, 14 deletions
epicardium/ble/ble_main.c
with
17 additions
and
14 deletions
epicardium/ble/ble_main.c
+
17
−
14
View file @
f0807c24
...
...
@@ -87,11 +87,11 @@ static const appSlaveCfg_t bleSlaveCfg =
/*! configurable parameters for security */
static
const
appSecCfg_t
bleSecCfg
=
{
DM_AUTH_BOND_FLAG
|
DM_AUTH_SC_FLAG
,
/*! Authentication and bonding flags */
0
,
/*! Initiator key distribution flags */
DM_KEY_DIST_LTK
,
/*! Responder key distribution flags */
FALSE
,
/*! TRUE if Out-of-band pairing data is present */
TRUE
/*! TRUE to initiate security upon connection */
.
auth
=
DM_AUTH_MITM_FLAG
|
DM_AUTH_BOND_FLAG
|
DM_AUTH_SC_FLAG
,
/*! Authentication and bonding flags */
.
iKeyDist
=
0
,
/*! Initiator key distribution flags */
.
rKeyDist
=
DM_KEY_DIST_LTK
,
/*! Responder key distribution flags */
.
oob
=
FALSE
,
/*! TRUE if Out-of-band pairing data is present */
.
initiateSec
=
TRUE
/*! TRUE to initiate security upon connection */
};
/*! configurable parameters for connection parameter update */
...
...
@@ -118,15 +118,15 @@ static const basCfg_t bleBasCfg =
/*! SMP security parameter configuration */
static
const
smpCfg_t
bleSmpCfg
=
{
3000
,
/*! 'Repeated attempts' timeout in msec */
SMP_IO_DISP_YES_NO
,
/*! I/O Capability */
7
,
/*! Minimum encryption key length */
16
,
/*! Maximum encryption key length */
3
,
/*! Attempts to trigger 'repeated attempts' timeout */
DM_AUTH_MITM_FLAG
,
/*! Device authentication requirements */
64000
,
/*! Maximum 'Repeated attempts' timeout in msec */
64000
,
/*! Time msec before attemptExp decreases */
2
,
/*! Exponent to raise attemptTimeout on maxAttempts */
.
attemptTimeout
=
3000
,
/*! 'Repeated attempts' timeout in msec */
.
ioCap
=
SMP_IO_DISP_YES_NO
,
/*! I/O Capability */
.
minKeyLen
=
16
,
/*! Minimum encryption key length */
.
maxKeyLen
=
16
,
/*! Maximum encryption key length */
.
maxAttempts
=
3
,
/*! Attempts to trigger 'repeated attempts' timeout */
.
auth
=
DM_AUTH_MITM_FLAG
|
DM_AUTH_SC_FLAG
,
/*! Device authentication requirements */
.
maxAttemptTimeout
=
64000
,
/*! Maximum 'Repeated attempts' timeout in msec */
.
attemptDecTimeout
=
64000
,
/*! Time msec before attemptExp decreases */
.
attemptExp
=
2
,
/*! Exponent to raise attemptTimeout on maxAttempts */
};
/* Configuration structure */
...
...
@@ -450,6 +450,9 @@ static void bleProcMsg(bleMsg_t *pMsg)
LOG_INFO
(
"ble"
,
"Secure pairing successful, auth: 0x%02X"
,
pMsg
->
dm
.
pairCmpl
.
auth
);
uiEvent
=
APP_UI_SEC_PAIR_CMPL
;
/* After a successful pairing, bonding is disabled again.
* We don't want that for now. */
AppSetBondable
(
TRUE
);
break
;
case
DM_SEC_PAIR_FAIL_IND
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment