Linux Audio

Check our new training course

Loading...
Note: File does not exist in v5.4.
 1// SPDX-License-Identifier: GPL-2.0-only
 2/*
 3 * Copyright (C) 2021 Intel Corporation
 4 */
 5
 6#include <net/bluetooth/bluetooth.h>
 7#include <net/bluetooth/hci_core.h>
 8
 9#include "aosp.h"
10
11void aosp_do_open(struct hci_dev *hdev)
12{
13	struct sk_buff *skb;
14
15	if (!hdev->aosp_capable)
16		return;
17
18	bt_dev_dbg(hdev, "Initialize AOSP extension");
19
20	/* LE Get Vendor Capabilities Command */
21	skb = __hci_cmd_sync(hdev, hci_opcode_pack(0x3f, 0x153), 0, NULL,
22			     HCI_CMD_TIMEOUT);
23	if (IS_ERR(skb))
24		return;
25
26	kfree_skb(skb);
27}
28
29void aosp_do_close(struct hci_dev *hdev)
30{
31	if (!hdev->aosp_capable)
32		return;
33
34	bt_dev_dbg(hdev, "Cleanup of AOSP extension");
35}