mirror of
https://github.com/LineageOS/android_kernel_samsung_msm8226.git
synced 2026-09-29 00:00:25 +02:00
Merge "Bluetooth:Show bonding dialog if neither side requires no bonding"
This commit is contained in:
committed by
Gerrit - the friendly Code Review server
commit
40407b489f
@@ -3094,6 +3094,12 @@ int mgmt_user_confirm_request(u16 index, u8 event,
|
||||
goto no_auto_confirm;
|
||||
}
|
||||
|
||||
/* Show bonding dialog if neither side requires no bonding */
|
||||
if ((conn->auth_type > 0x01) && (conn->remote_auth > 0x01)) {
|
||||
if (!loc_mitm && !rem_mitm)
|
||||
value = 0;
|
||||
goto no_auto_confirm;
|
||||
}
|
||||
|
||||
if ((!loc_mitm || rem_cap == 0x03) && (!rem_mitm || loc_cap == 0x03))
|
||||
ev.auto_confirm = 1;
|
||||
|
||||
Reference in New Issue
Block a user