forked from rubenslte/android_kernel_samsung_msm8226
Bluetooth: Prevents update of Low Energy connection parameters
The start encryption command fails when the LE update connection parameters request is pending. Hence, prevent the update of LE connection parameters during the bonding process. The update of connection parameters is not necessary during bonding process. CRs-fixed: 380257 Change-Id: I41cb3998fecc2297d61ec97d66ac35a0bd41ca80 Signed-off-by: Subramanian Srinivasan <subrsrin@codeaurora.org>
This commit is contained in:
@@ -711,10 +711,6 @@ static u8 smp_cmd_security_req(struct l2cap_conn *conn, struct sk_buff *skb)
|
||||
invalid_key:
|
||||
hcon->sec_req = FALSE;
|
||||
|
||||
/* Switch to Pairing Connection Parameters */
|
||||
hci_le_conn_update(hcon, SMP_MIN_CONN_INTERVAL, SMP_MAX_CONN_INTERVAL,
|
||||
SMP_MAX_CONN_LATENCY, SMP_SUPERVISION_TIMEOUT);
|
||||
|
||||
skb_pull(skb, sizeof(*rp));
|
||||
|
||||
memset(&cp, 0, sizeof(cp));
|
||||
@@ -776,11 +772,6 @@ int smp_conn_security(struct l2cap_conn *conn, __u8 sec_level)
|
||||
if (hcon->link_mode & HCI_LM_MASTER) {
|
||||
struct smp_cmd_pairing cp;
|
||||
|
||||
/* Switch to Pairing Connection Parameters */
|
||||
hci_le_conn_update(hcon, SMP_MIN_CONN_INTERVAL,
|
||||
SMP_MAX_CONN_INTERVAL, SMP_MAX_CONN_LATENCY,
|
||||
SMP_SUPERVISION_TIMEOUT);
|
||||
|
||||
build_pairing_cmd(conn, &cp, NULL, authreq);
|
||||
hcon->preq[0] = SMP_CMD_PAIRING_REQ;
|
||||
memcpy(&hcon->preq[1], &cp, sizeof(cp));
|
||||
|
||||
Reference in New Issue
Block a user