Bluetooth: Skip eSCO 2M params when not supported
authorYu Liu <yudiliu@google.com>
Fri, 29 Jan 2021 21:53:48 +0000 (13:53 -0800)
committerMarcel Holtmann <marcel@holtmann.org>
Mon, 1 Feb 2021 16:04:17 +0000 (17:04 +0100)
commit8b1c324c9faeb3e159256df0b84f9251a7941a33
tree1614cae9afd6db78c6a423b01d9f2fcdb5014955
parentb8ddc3b14c7abcc19b16c74bf6c21d54c2299c09
Bluetooth: Skip eSCO 2M params when not supported

If a peer device doesn't support eSCO 2M we should skip the params that
use it when setting up sync connection since they will always fail.

Signed-off-by: Yu Liu <yudiliu@google.com>
Reviewed-by: Abhishek Pandit-Subedi <abhishekpandit@chromium.org>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
include/net/bluetooth/hci_core.h
net/bluetooth/hci_conn.c