mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
Bluetooth: Update sec_level/auth_type for already existing connections
Update auth level for already existing connections if it is lower than required by new connection. Signed-off-by: Ville Tervo <[email protected]> Reviewed-by: Emeltchenko Andrei <[email protected]> Signed-off-by: Luciano Coelho <[email protected]> Signed-off-by: Andrei Emeltchenko <[email protected]> Signed-off-by: Marcel Holtmann <[email protected]>
This commit is contained in:
parent
da213f41cd
commit
045309820a
1 changed files with 5 additions and 0 deletions
|
|
@ -358,6 +358,11 @@ struct hci_conn *hci_connect(struct hci_dev *hdev, int type, bdaddr_t *dst, __u8
|
|||
acl->sec_level = sec_level;
|
||||
acl->auth_type = auth_type;
|
||||
hci_acl_connect(acl);
|
||||
} else {
|
||||
if (acl->sec_level < sec_level)
|
||||
acl->sec_level = sec_level;
|
||||
if (acl->auth_type < auth_type)
|
||||
acl->auth_type = auth_type;
|
||||
}
|
||||
|
||||
if (type == ACL_LINK)
|
||||
|
|
|
|||
Loading…
Reference in a new issue