Skip to content

Commit d586029

Browse files
kirankrishnappa-intelVudentz
authored andcommitted
Bluetooth: btintel: Define callback to fetch data_path_id
For Intel controllers supporting HFP offload usecase, define a callback function to fetch data_path_id Signed-off-by: Kiran K <[email protected]> Reviewed-by: Chethan T N <[email protected]> Reviewed-by: Srivatsa Ravishankar <[email protected]> Signed-off-by: Luiz Augusto von Dentz <[email protected]>
1 parent 248733e commit d586029

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

drivers/bluetooth/btintel.c

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2158,6 +2158,13 @@ static int btintel_prepare_fw_download_tlv(struct hci_dev *hdev,
21582158
return err;
21592159
}
21602160

2161+
static int btintel_get_data_path_id(struct hci_dev *hdev, __u8 *data_path_id)
2162+
{
2163+
/* Intel uses 1 as data path id for all the usecases */
2164+
*data_path_id = 1;
2165+
return 0;
2166+
}
2167+
21612168
static int btintel_configure_offload(struct hci_dev *hdev)
21622169
{
21632170
struct sk_buff *skb;
@@ -2182,6 +2189,9 @@ static int btintel_configure_offload(struct hci_dev *hdev)
21822189
err = -bt_to_errno(skb->data[0]);
21832190
goto error;
21842191
}
2192+
2193+
if (use_cases->preset[0] & 0x03)
2194+
hdev->get_data_path_id = btintel_get_data_path_id;
21852195
error:
21862196
kfree_skb(skb);
21872197
return err;

0 commit comments

Comments
 (0)