Bluetooth: Add warning for bt_pub_key_gen() when missing support
This makes it easier to track issues resulting from missing ECDH support. Change-Id: Iab104beed8cc622ea7bec2275ed69ca4ffe4cc87 Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
This commit is contained in:
parent
d43f4c27d0
commit
cbf325a58d
1 changed files with 1 additions and 0 deletions
|
@ -4010,6 +4010,7 @@ int bt_pub_key_gen(struct bt_pub_key_cb *new_cb)
|
|||
*/
|
||||
if (!(bt_dev.supported_commands[34] & 0x02) ||
|
||||
!(bt_dev.supported_commands[34] & 0x04)) {
|
||||
BT_WARN("ECC HCI commands not available");
|
||||
return -ENOTSUP;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue