linux/net/bluetooth/aosp.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 * Copyright (C) 2021 Intel Corporation
 */

#include <net/bluetooth/bluetooth.h>
#include <net/bluetooth/hci_core.h>

#include "aosp.h"

/* Command complete parameters of LE_Get_Vendor_Capabilities_Command
 * The parameters grow over time. The base version that declares the
 * version_supported field is v0.95. Refer to
 * https://cs.android.com/android/platform/superproject/+/master:system/
 *         bt/gd/hci/controller.cc;l=452?q=le_get_vendor_capabilities_handler
 */
struct aosp_rp_le_get_vendor_capa {} __packed;

#define VENDOR_CAPA_BASE_SIZE
#define VENDOR_CAPA_0_98_SIZE

void aosp_do_open(struct hci_dev *hdev)
{}

void aosp_do_close(struct hci_dev *hdev)
{}

/* BQR command */
#define BQR_OPCODE

/* BQR report action */
#define REPORT_ACTION_ADD
#define REPORT_ACTION_DELETE
#define REPORT_ACTION_CLEAR

/* BQR event masks */
#define QUALITY_MONITORING
#define APPRAOCHING_LSTO
#define A2DP_AUDIO_CHOPPY
#define SCO_VOICE_CHOPPY

#define DEFAULT_BQR_EVENT_MASK

/* Reporting at milliseconds so as not to stress the controller too much.
 * Range: 0 ~ 65535 ms
 */
#define DEFALUT_REPORT_INTERVAL_MS

struct aosp_bqr_cp {} __packed;

static int enable_quality_report(struct hci_dev *hdev)
{}

static int disable_quality_report(struct hci_dev *hdev)
{}

bool aosp_has_quality_report(struct hci_dev *hdev)
{}

int aosp_set_quality_report(struct hci_dev *hdev, bool enable)
{}