-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Bluetooth: Host: Add legacy pairing test config #99742
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
base: main
Are you sure you want to change the base?
Bluetooth: Host: Add legacy pairing test config #99742
Conversation
|
|
||
| config BT_SMP_ENFORCE_LEGACY_PAIRING | ||
| bool "Enforce legacy pairing" | ||
| depends on BT_TESTING |
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.
Is it not allowed to only support legacy pairing in recent version of the core spec?
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.
It's allowed, but since Zephyr 3.0 the use of legacy pairing has been discouraged for being less/not secure, so I didn't want this Kconfig to imply otherwise. Zephyr-devices support legacy pairing with devices that do not support secure connections, but since Zephyr-devices do support it they will always default to this (and thus this config is needed to force it).
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.
I'm wondering if we should allow setting this without BT_TESTING, but treat it as a warning for the above reasons. That would be similar to how we treat e.g. BT_USE_DEBUG_KEYS, where we have both Kconfig and CMake warnings if it's enabled.
Alternatively we should consider adding the same depends on BT_TESTING for things like BT_USE_DEBUG_KEYS.
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.
Both suggestions are fine by me, do you have any thoughts @jhedberg?
Adds the `CONFIG_BT_SMP_LEGACY_PAIR_ONLY` Kconfig option to force devices to use legacy pairing. This has a dependency on `CONFIG_BT_TESTING` as it is only intended for testing purposes, and use of legacy pairing is discouraged. Signed-off-by: Håvard Reierstad <haavard.reierstad@nordicsemi.no>
dba8951 to
ce2bf26
Compare
|



Adds the
CONFIG_BT_SMP_LEGACY_PAIR_ONLYKconfig option to force devices to use legacy pairing. This has a dependency onCONFIG_BT_TESTINGas it is only intended for testing purposes, and use of legacy pairing is discouraged.