Skip to content

Commit 89036a2

Browse files
committed
Merge branch 'for-upstream' of git://git.kernel.org/pub/scm/linux/kernel/git/bluetooth/bluetooth
Johan Hedberg says: ==================== pull request: bluetooth 2018-03-05 Here are a few more Bluetooth fixes for the 4.16 kernel: - btusb: reset/resume fixes for Yoga 920 and Dell OptiPlex 3060 - Fix for missing encryption refresh with the Security Manager protocol ==================== Signed-off-by: David S. Miller <davem@davemloft.net>
2 parents 803fafb + 64e759f commit 89036a2

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

drivers/bluetooth/btusb.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -386,10 +386,10 @@ static const struct usb_device_id blacklist_table[] = {
386386
*/
387387
static const struct dmi_system_id btusb_needs_reset_resume_table[] = {
388388
{
389-
/* Lenovo Yoga 920 (QCA Rome device 0cf3:e300) */
389+
/* Dell OptiPlex 3060 (QCA ROME device 0cf3:e007) */
390390
.matches = {
391-
DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
392-
DMI_MATCH(DMI_PRODUCT_VERSION, "Lenovo YOGA 920"),
391+
DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."),
392+
DMI_MATCH(DMI_PRODUCT_NAME, "OptiPlex 3060"),
393393
},
394394
},
395395
{}

net/bluetooth/smp.c

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2296,8 +2296,14 @@ static u8 smp_cmd_security_req(struct l2cap_conn *conn, struct sk_buff *skb)
22962296
else
22972297
sec_level = authreq_to_seclevel(auth);
22982298

2299-
if (smp_sufficient_security(hcon, sec_level, SMP_USE_LTK))
2299+
if (smp_sufficient_security(hcon, sec_level, SMP_USE_LTK)) {
2300+
/* If link is already encrypted with sufficient security we
2301+
* still need refresh encryption as per Core Spec 5.0 Vol 3,
2302+
* Part H 2.4.6
2303+
*/
2304+
smp_ltk_encrypt(conn, hcon->sec_level);
23002305
return 0;
2306+
}
23012307

23022308
if (sec_level > hcon->pending_sec_level)
23032309
hcon->pending_sec_level = sec_level;

0 commit comments

Comments
 (0)