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:
Johan Hedberg 2016-07-22 09:55:37 +03:00
commit cbf325a58d

View file

@ -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;
}