Bluetooth: hci_conn: Check non NULL function before calling for HFP offload
authorZijun Hu <quic_zijuhu@quicinc.com>
Fri, 8 Dec 2023 01:51:26 +0000 (09:51 +0800)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Fri, 22 Dec 2023 17:57:24 +0000 (12:57 -0500)
commit132d0fd0b8418094c9e269e5bc33bf5b864f4a65
treed8c2af9e8f74950078a5bdd55ce132bd95666e7f
parent9f150019f176078144b02c4b9b9dbe7fd5a2fcc3
Bluetooth: hci_conn: Check non NULL function before calling for HFP offload

For some controllers such as QCA2066, it does not need to send
HCI_Configure_Data_Path to configure non-HCI data transport path to support
HFP offload, their device drivers may set hdev->get_codec_config_data as
NULL, so Explicitly add this non NULL checking before calling the function.

Signed-off-by: Zijun Hu <quic_zijuhu@quicinc.com>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
net/bluetooth/hci_conn.c