aboutsummaryrefslogtreecommitdiffstats
path: root/net/bluetooth
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2015-03-16 19:05:44 -0400
committerJohan Hedberg <johan.hedberg@intel.com>2015-03-17 02:16:45 -0400
commit5425f98e863ac5e4798a186475d4a8d95a2c08e8 (patch)
tree2a8a3dfa3dce00c17d58028f348770d01bb80bbb /net/bluetooth
parent5082a59965d4f13245658b2927b6c021f17ed88e (diff)
Bluetooth: Fix length for Read Local OOB Extended Data respone packet
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>
Diffstat (limited to 'net/bluetooth')
-rw-r--r--net/bluetooth/mgmt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bluetooth/mgmt.c b/net/bluetooth/mgmt.c
index 32c2c75c0888..7fa3c4b8384b 100644
--- a/net/bluetooth/mgmt.c
+++ b/net/bluetooth/mgmt.c
@@ -6388,7 +6388,7 @@ static int read_local_oob_ext_data(struct sock *sk, struct hci_dev *hdev,
6388 hci_dev_unlock(hdev); 6388 hci_dev_unlock(hdev);
6389 6389
6390 err = mgmt_cmd_complete(sk, hdev->id, MGMT_OP_READ_LOCAL_OOB_EXT_DATA, 6390 err = mgmt_cmd_complete(sk, hdev->id, MGMT_OP_READ_LOCAL_OOB_EXT_DATA,
6391 MGMT_STATUS_SUCCESS, rp, rp_len); 6391 MGMT_STATUS_SUCCESS, rp, sizeof(*rp) + eir_len);
6392 6392
6393done: 6393done:
6394 kfree(rp); 6394 kfree(rp);