|
@@ -494,8 +494,11 @@ static int tk_request(struct l2cap_conn *conn, u8 remote_oob, u8 auth,
|
|
|
}
|
|
|
|
|
|
/* Not Just Works/Confirm results in MITM Authentication */
|
|
|
- if (method != JUST_CFM)
|
|
|
+ if (method != JUST_CFM) {
|
|
|
set_bit(SMP_FLAG_MITM_AUTH, &smp->flags);
|
|
|
+ if (hcon->pending_sec_level < BT_SECURITY_HIGH)
|
|
|
+ hcon->pending_sec_level = BT_SECURITY_HIGH;
|
|
|
+ }
|
|
|
|
|
|
/* If both devices have Keyoard-Display I/O, the master
|
|
|
* Confirms and the slave Enters the passkey.
|