Bluetooth: Add framework for Microsoft vendor extension
Micrsoft defined a set for HCI vendor extensions. Check the following link for details: https://docs.microsoft.com/en-us/windows-hardware/drivers/bluetooth/microsoft-defined-bluetooth-hci-commands-and-events This provides the basic framework to enable the extension and read its supported features. Drivers still have to declare support for this extension before it can be utilized by the host stack. Signed-off-by: Miao-chen Chou <mcchou@chromium.org> Signed-off-by: Marcel Holtmann <marcel@holtmann.org> Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
This commit is contained in:

committed by
Johan Hedberg

parent
3d2336042a
commit
145373cb1b
@@ -484,6 +484,11 @@ struct hci_dev {
|
||||
struct led_trigger *power_led;
|
||||
#endif
|
||||
|
||||
#if IS_ENABLED(CONFIG_BT_MSFTEXT)
|
||||
__u16 msft_opcode;
|
||||
void *msft_data;
|
||||
#endif
|
||||
|
||||
int (*open)(struct hci_dev *hdev);
|
||||
int (*close)(struct hci_dev *hdev);
|
||||
int (*flush)(struct hci_dev *hdev);
|
||||
@@ -1116,6 +1121,14 @@ int hci_recv_frame(struct hci_dev *hdev, struct sk_buff *skb);
|
||||
int hci_recv_diag(struct hci_dev *hdev, struct sk_buff *skb);
|
||||
__printf(2, 3) void hci_set_hw_info(struct hci_dev *hdev, const char *fmt, ...);
|
||||
__printf(2, 3) void hci_set_fw_info(struct hci_dev *hdev, const char *fmt, ...);
|
||||
|
||||
static inline void hci_set_msft_opcode(struct hci_dev *hdev, __u16 opcode)
|
||||
{
|
||||
#if IS_ENABLED(CONFIG_BT_MSFTEXT)
|
||||
hdev->msft_opcode = opcode;
|
||||
#endif
|
||||
}
|
||||
|
||||
int hci_dev_open(__u16 dev);
|
||||
int hci_dev_close(__u16 dev);
|
||||
int hci_dev_do_close(struct hci_dev *hdev);
|
||||
|
Reference in New Issue
Block a user