Skip to content

Commit

Permalink
Bluetooth: Fix length for Read Local OOB Extended Data respone packet
Browse files Browse the repository at this point in the history
The length of the respone packet for Read Local OOB Extended Data
command has a calculation error. In case LE Secure Connections support
is not enabled, the actual response is shorter. Keep this in mind and
update the value accordingly.

Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
  • Loading branch information
Marcel Holtmann authored and Johan Hedberg committed Mar 17, 2015
1 parent 5082a59 commit 5425f98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/bluetooth/mgmt.c
Original file line number Diff line number Diff line change
Expand Up @@ -6388,7 +6388,7 @@ static int read_local_oob_ext_data(struct sock *sk, struct hci_dev *hdev,
hci_dev_unlock(hdev);

err = mgmt_cmd_complete(sk, hdev->id, MGMT_OP_READ_LOCAL_OOB_EXT_DATA,
MGMT_STATUS_SUCCESS, rp, rp_len);
MGMT_STATUS_SUCCESS, rp, sizeof(*rp) + eir_len);

done:
kfree(rp);
Expand Down

0 comments on commit 5425f98

Please sign in to comment.