diff options
author | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2020-03-27 11:32:15 -0700 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2020-04-02 08:25:19 +0200 |
commit | 3ee7b7cd83900bb711efadbf16fa096a615a1566 (patch) | |
tree | c1150b6c61684ce56ef89c3965ffbaacc13b7387 /include/net/bluetooth/bluetooth.h | |
parent | b86b0b150fed840c376145383ef5105116c81b0c (diff) | |
download | linux-3ee7b7cd83900bb711efadbf16fa096a615a1566.tar.bz2 |
Bluetooth: Add BT_MODE socket option
This adds BT_MODE socket option which can be used to set L2CAP modes,
including modes only supported over LE which were not supported using
the L2CAP_OPTIONS.
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'include/net/bluetooth/bluetooth.h')
-rw-r--r-- | include/net/bluetooth/bluetooth.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/net/bluetooth/bluetooth.h b/include/net/bluetooth/bluetooth.h index 1576353a2773..3fa7b1e3c5d9 100644 --- a/include/net/bluetooth/bluetooth.h +++ b/include/net/bluetooth/bluetooth.h @@ -139,6 +139,14 @@ struct bt_voice { #define BT_PHY_LE_CODED_TX 0x00002000 #define BT_PHY_LE_CODED_RX 0x00004000 +#define BT_MODE 15 + +#define BT_MODE_BASIC 0x00 +#define BT_MODE_ERTM 0x01 +#define BT_MODE_STREAMING 0x02 +#define BT_MODE_LE_FLOWCTL 0x03 +#define BT_MODE_EXT_FLOWCTL 0x04 + __printf(1, 2) void bt_info(const char *fmt, ...); __printf(1, 2) |