Bluetooth: SMP: Send Pairing failed if there's no key space

If there's no more room to store new pairings, send a proper error
instead of letting the SMP timeout expire.

Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
This commit is contained in:
Johan Hedberg 2018-02-15 09:50:36 +02:00 committed by Johan Hedberg
commit 294c68d087

View file

@ -4338,6 +4338,7 @@ void bt_smp_update_keys(struct bt_conn *conn)
if (!conn->le.keys) {
BT_ERR("Unable to get keys for %s",
bt_addr_le_str(&conn->le.dst));
smp_error(smp, BT_SMP_ERR_UNSPECIFIED);
return;
}