Bluetooth: Read codec capabilities only if supported
authorKiran K <kiran.k@intel.com>
Tue, 5 Oct 2021 14:45:56 +0000 (20:15 +0530)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 7 Oct 2021 15:57:22 +0000 (17:57 +0200)
commit107fe0482b549a0e43a971e5fd104719c6e495ef
tree8af5287bba081e8d43083d5ee7229593a8877ab2
parent83775456504c251e6e4e1ee50c470e77202b8d21
Bluetooth: Read codec capabilities only if supported

Read codec capabilities only if HCI_READ_LOCAL_CODEC_CAPABILITIES
command is supported. If capablities are not supported, then
cache codec data without caps.

Signed-off-by: Kiran K <kiran.k@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/hci_codec.c