Skip to content

nimble/host: Fix rejected SM SC debug keys - #2250

Open
mkasenberg wants to merge 1 commit into
apache:masterfrom
mkasenberg:fix-rejected-debug-keys
Open

nimble/host: Fix rejected SM SC debug keys#2250
mkasenberg wants to merge 1 commit into
apache:masterfrom
mkasenberg:fix-rejected-debug-keys

Conversation

@mkasenberg

Copy link
Copy Markdown
Contributor

No description provided.

}

cmd = (struct ble_sm_public_key *)(*om)->om_data;
#if !MYNEWT_VAL(BLE_SM_SC_DEBUG_KEYS)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

even with debug keys enabled this should allow to have same public keys only if keys is debug

@mkasenberg
mkasenberg force-pushed the fix-rejected-debug-keys branch from 8bc12d1 to 0804795 Compare August 7, 2026 18:13
If a device is in a debug mode, the spec does not prohibit both devices from
having debug keys enabled.

If a device receives the debug public key, and it is in a mode in which it
cannot accept the debug key then it may send the Pairing Failed command
with the reason set to "Invalid Parameters".
@mkasenberg
mkasenberg force-pushed the fix-rejected-debug-keys branch from 0804795 to 49ab32b Compare August 7, 2026 18:15
@github-actions github-actions Bot added the size/S Small PR label Aug 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants