Bluetooth: SSP: Just Works Model in no MITM

In case both side have no MITM requirements, we need
to use Just Works Association Model. We should not
display PassKey in this case and just YES/NO option
should be displayed

Change-Id: I447aa84a0d021e8834138062a26a9380d3b9b2d9
Signed-off-by: AnubhavGupta <anubhavg@codeaurora.org>
This commit is contained in:
AnubhavGupta
2012-02-16 19:03:59 +05:30
committed by Stephen Boyd
parent 9dc6ceb379
commit 56f931c645

View File

@@ -2672,8 +2672,11 @@ int mgmt_user_confirm_request(u16 index, u8 event,
if ((conn->auth_type & HCI_AT_DEDICATED_BONDING) &&
conn->auth_initiator && rem_cap == 0x03)
ev.auto_confirm = 1;
else if (loc_cap == 0x01 && (rem_cap == 0x00 || rem_cap == 0x03))
else if (loc_cap == 0x01 && (rem_cap == 0x00 || rem_cap == 0x03)) {
if (!loc_mitm && !rem_mitm)
value = 0;
goto no_auto_confirm;
}
if ((!loc_mitm || rem_cap == 0x03) && (!rem_mitm || loc_cap == 0x03))