Skip to content

Conversation

@sjanc
Copy link
Contributor

@sjanc sjanc commented Oct 18, 2021

No description provided.

@github-actions github-actions bot added area: API Changes to public APIs area: Bluetooth area: Bluetooth Host Bluetooth Host (excluding BR/EDR) area: Tests Issues related to a particular existing or missing test labels Oct 18, 2021
@sjanc sjanc added this to the v2.7.1 milestone Oct 18, 2021
@sjanc sjanc added area: Bluetooth Qualification Bluetooth Qualification -related issues and pull requests area: Tests Issues related to a particular existing or missing test area: Bluetooth Host Bluetooth Host (excluding BR/EDR) area: API Changes to public APIs and removed area: Tests Issues related to a particular existing or missing test area: API Changes to public APIs area: Bluetooth Host Bluetooth Host (excluding BR/EDR) labels Oct 18, 2021
@joerchan joerchan requested a review from alwa-nordic October 18, 2021 12:41
@sjanc sjanc marked this pull request as draft October 22, 2021 14:55
@sjanc sjanc marked this pull request as ready for review October 26, 2021 12:21
sjanc added 2 commits October 26, 2021 16:04
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]>
@sjanc
Copy link
Contributor Author

sjanc commented Oct 29, 2021

gentle ping

Copy link
Contributor

@Thalley Thalley left a 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));
Copy link
Contributor

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:

Suggested change
memcpy(ev.address, addr->a.val, sizeof(ev.address));
(void)memcpy(ev.address, addr->a.val, sizeof(ev.address));

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sjanc - please update

@nashif nashif merged commit 7e0502e into zephyrproject-rtos:main Nov 2, 2021
@sjanc sjanc deleted the smp_key_rejected branch November 2, 2021 08:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: API Changes to public APIs area: Bluetooth Host Bluetooth Host (excluding BR/EDR) area: Bluetooth Qualification Bluetooth Qualification -related issues and pull requests area: Bluetooth area: Tests Issues related to a particular existing or missing test

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants