aboutsummaryrefslogtreecommitdiffstats
path: root/net/bluetooth/mgmt.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/bluetooth/mgmt.c')
-rw-r--r--net/bluetooth/mgmt.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/net/bluetooth/mgmt.c b/net/bluetooth/mgmt.c
index 545f84dbae85..6493e807634f 100644
--- a/net/bluetooth/mgmt.c
+++ b/net/bluetooth/mgmt.c
@@ -1365,13 +1365,11 @@ static int pair_device(struct sock *sk, u16 index, unsigned char *data, u16 len)
1365 1365
1366 hci_dev_lock_bh(hdev); 1366 hci_dev_lock_bh(hdev);
1367 1367
1368 if (cp->io_cap == 0x03) { 1368 sec_level = BT_SECURITY_MEDIUM;
1369 sec_level = BT_SECURITY_MEDIUM; 1369 if (cp->io_cap == 0x03)
1370 auth_type = HCI_AT_DEDICATED_BONDING; 1370 auth_type = HCI_AT_DEDICATED_BONDING;
1371 } else { 1371 else
1372 sec_level = BT_SECURITY_HIGH;
1373 auth_type = HCI_AT_DEDICATED_BONDING_MITM; 1372 auth_type = HCI_AT_DEDICATED_BONDING_MITM;
1374 }
1375 1373
1376 entry = hci_find_adv_entry(hdev, &cp->bdaddr); 1374 entry = hci_find_adv_entry(hdev, &cp->bdaddr);
1377 if (entry) 1375 if (entry)