-
Notifications
You must be signed in to change notification settings - Fork 8.2k
Bluetooth: Add support for SMP Key Rejected error code #39511
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This error code informs that peer device rejected key during keys distribution phase. Signed-off-by: Szymon Janc <[email protected]>
This event is sent if pairing failed. Signed-off-by: Szymon Janc <[email protected]>
7599137 to
e8ea882
Compare
|
gentle ping |
Thalley
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor comment, otherwise LGTM
| struct gap_bond_pairing_failed_ev ev; | ||
| const bt_addr_le_t *addr = bt_conn_get_dst(conn); | ||
|
|
||
| memcpy(ev.address, addr->a.val, sizeof(ev.address)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor: Typically when ignoring return values, we cast to void:
| memcpy(ev.address, addr->a.val, sizeof(ev.address)); | |
| (void)memcpy(ev.address, addr->a.val, sizeof(ev.address)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sjanc - please update
No description provided.