Skip to content

Conversation

@demantmrrv
Copy link
Contributor

@demantmrrv demantmrrv commented Nov 26, 2019

Added configuration for accepting pairing requests only if both devices has bonding flag set in order to reject other devices at an early stage, thus leaving more chance for devices expected to bond.

With the CONFIG_BT_BONDING_REQUIRED flag the device only accept pairing requests if it has CONFIG_BT_BONMDABLE set and the device requesting pairing has Bonding_Flags field set to Bonding (0x01) in its AuthReq.
Note: When using bt_set_bondable(false) pairing requests will be
rejected when CONFIG_BT_BONDING_REQUIRED is set.

Signed-off-by: Martin Rieva [email protected]

@zephyrbot
Copy link

zephyrbot commented Nov 26, 2019

All checks are passing now.

Tip: The bot edits this comment instead of posting a new one, so you can check the comment's history to see earlier messages.

@demantmrrv demantmrrv force-pushed the feature_add_bonding_required_flag branch from 2dee442 to fce008b Compare November 26, 2019 13:01
@demantmrrv demantmrrv changed the title Bluetooth: Host: Added CONFIG_BT_BONDING_REQUIRED flag Bluetooth: Host: Add CONFIG_BT_BONDING_REQUIRED flag Nov 27, 2019
@demantmrrv demantmrrv force-pushed the feature_add_bonding_required_flag branch from fce008b to a95b986 Compare November 27, 2019 09:48
Copy link
Contributor

@joerchan joerchan left a comment

Choose a reason for hiding this comment

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

Looks very good. Indentation should be fixed. And I gave some optional comments about style :)

@demantmrrv demantmrrv force-pushed the feature_add_bonding_required_flag branch from a95b986 to 5f57335 Compare November 27, 2019 10:21
@demantmrrv demantmrrv force-pushed the feature_add_bonding_required_flag branch from 5f57335 to 9d2816b Compare November 27, 2019 11:43
@demantmrrv
Copy link
Contributor Author

Just fixed the commit message line length.

Added configuration for accepting pairing requests only if both devices
has bonding flag set in order to reject other devices at an early stage,
thus leaving more chance for devices expected to bond.

With the CONFIG_BT_BONDING_REQUIRED flag the device only accept pairing
requests if it has CONFIG_BT_BONMDABLE set and the device requesting
pairing has Bonding_Flags field set to Bonding (0x01) in its AuthReq.
Note: When using bt_set_bondable(false) pairing requests will be
rejected when CONFIG_BT_BONDING_REQUIRED is set.

Signed-off-by: Martin Rieva <[email protected]>
@demantmrrv demantmrrv force-pushed the feature_add_bonding_required_flag branch from 9d2816b to 891605a Compare November 27, 2019 13:42
@jhedberg jhedberg added this to the v2.2.0 milestone Dec 2, 2019
@joerchan joerchan requested a review from Vudentz December 6, 2019 11:11
@jhedberg jhedberg merged commit bf361aa into zephyrproject-rtos:master Dec 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants