Merge "Bluetooth: LE sockets not ready until encrypted" into msm-3.0
This commit is contained in:
committed by
QuIC Gerrit Code Review
commit
3dddea6b7e
@@ -7440,11 +7440,12 @@ static int l2cap_security_cfm(struct hci_conn *hcon, u8 status, u8 encrypt)
|
||||
BT_DBG("sk->scid %d", l2cap_pi(sk)->scid);
|
||||
|
||||
if (l2cap_pi(sk)->scid == L2CAP_CID_LE_DATA) {
|
||||
if (!status && encrypt)
|
||||
if (!status && encrypt) {
|
||||
l2cap_pi(sk)->sec_level = hcon->sec_level;
|
||||
l2cap_chan_ready(sk);
|
||||
}
|
||||
|
||||
del_timer(&hcon->smp_timer);
|
||||
l2cap_chan_ready(sk);
|
||||
smp_link_encrypt_cmplt(conn, status, encrypt);
|
||||
|
||||
bh_unlock_sock(sk);
|
||||
|
||||
Reference in New Issue
Block a user