Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Bluetooth: Check for ISO support in controller

This patch checks for ISO_BROADCASTER and ISO_SYNC_RECEIVER in
controller.

Signed-off-by: Claudia Draghicescu <claudia.rosu@nxp.com>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>

authored by

Claudia Draghicescu and committed by
Luiz Augusto von Dentz
ae753361 80f9ad04

+10
+1
include/net/bluetooth/hci.h
··· 577 577 #define HCI_LE_CIS_CENTRAL 0x10 578 578 #define HCI_LE_CIS_PERIPHERAL 0x20 579 579 #define HCI_LE_ISO_BROADCASTER 0x40 580 + #define HCI_LE_ISO_SYNC_RECEIVER 0x80 580 581 581 582 /* Connection modes */ 582 583 #define HCI_CM_ACTIVE 0x0000
+1
include/net/bluetooth/hci_core.h
··· 1765 1765 #define cis_peripheral_capable(dev) \ 1766 1766 ((dev)->le_features[3] & HCI_LE_CIS_PERIPHERAL) 1767 1767 #define bis_capable(dev) ((dev)->le_features[3] & HCI_LE_ISO_BROADCASTER) 1768 + #define sync_recv_capable(dev) ((dev)->le_features[3] & HCI_LE_ISO_SYNC_RECEIVER) 1768 1769 1769 1770 #define mws_transport_config_capable(dev) (((dev)->commands[30] & 0x08) && \ 1770 1771 (!test_bit(HCI_QUIRK_BROKEN_MWS_TRANSPORT_CONFIG, &(dev)->quirks)))
+2
include/net/bluetooth/mgmt.h
··· 111 111 #define MGMT_SETTING_WIDEBAND_SPEECH BIT(17) 112 112 #define MGMT_SETTING_CIS_CENTRAL BIT(18) 113 113 #define MGMT_SETTING_CIS_PERIPHERAL BIT(19) 114 + #define MGMT_SETTING_ISO_BROADCASTER BIT(20) 115 + #define MGMT_SETTING_ISO_SYNC_RECEIVER BIT(21) 114 116 115 117 #define MGMT_OP_READ_INFO 0x0004 116 118 #define MGMT_READ_INFO_SIZE 0
+6
net/bluetooth/mgmt.c
··· 944 944 if (cis_peripheral_capable(hdev)) 945 945 settings |= MGMT_SETTING_CIS_PERIPHERAL; 946 946 947 + if (bis_capable(hdev)) 948 + settings |= MGMT_SETTING_ISO_BROADCASTER; 949 + 950 + if (sync_recv_capable(hdev)) 951 + settings |= MGMT_SETTING_ISO_SYNC_RECEIVER; 952 + 947 953 return settings; 948 954 } 949 955