-
Notifications
You must be signed in to change notification settings - Fork 8.2k
Bluetooth: Host: Add CONFIG_BT_BONDING_REQUIRED flag #21002
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
Bluetooth: Host: Add CONFIG_BT_BONDING_REQUIRED flag #21002
Conversation
|
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. |
2dee442 to
fce008b
Compare
fce008b to
a95b986
Compare
joerchan
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.
Looks very good. Indentation should be fixed. And I gave some optional comments about style :)
a95b986 to
5f57335
Compare
5f57335 to
9d2816b
Compare
|
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]>
9d2816b to
891605a
Compare
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]