Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
halo
external_bluetooth_bluedroid
Commits
2e470dc4
Commit
2e470dc4
authored
11 years ago
by
Matthew Xie
Committed by
Gerrit Code Review
11 years ago
Browse files
Options
Download
Plain Diff
Merge "Use 0000 as pin key for PORCHE_PAIRING_CONFLICT issue"
parents
4b416130
57bda503
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
stack/btm/btm_sec.c
stack/btm/btm_sec.c
+6
-1
No files found.
stack/btm/btm_sec.c
View file @
2e470dc4
...
...
@@ -4774,6 +4774,10 @@ void btm_sec_pin_code_request (UINT8 *p_bda)
tBTM_SEC_DEV_REC
*
p_dev_rec
;
tBTM_CB
*
p_cb
=
&
btm_cb
;
#ifdef PORCHE_PAIRING_CONFLICT
UINT8
default_pin_code_len
=
4
;
PIN_CODE
default_pin_code
=
{
0x30
,
0x30
,
0x30
,
0x30
};
#endif
BTM_TRACE_EVENT3
(
"btm_sec_pin_code_request() State: %s, BDA:%04x%08x"
,
btm_pair_state_descr
(
btm_cb
.
pairing_state
),
(
p_bda
[
0
]
<<
8
)
+
p_bda
[
1
],
(
p_bda
[
2
]
<<
24
)
+
(
p_bda
[
3
]
<<
16
)
+
(
p_bda
[
4
]
<<
8
)
+
p_bda
[
5
]
);
...
...
@@ -4807,7 +4811,8 @@ void btm_sec_pin_code_request (UINT8 *p_bda)
BTM_TRACE_EVENT0
(
"btm_sec_pin_code_request from remote dev. for local initiated pairing"
);
if
(
!
btm_cb
.
pin_code_len_saved
)
{
btsnd_hcic_pin_code_neg_reply
(
p_bda
);
btm_sec_change_pairing_state
(
BTM_PAIR_STATE_WAIT_AUTH_COMPLETE
);
btsnd_hcic_pin_code_req_reply
(
p_bda
,
default_pin_code_len
,
default_pin_code
);
}
else
{
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment