diff options
author | Ville Tervo <ville.tervo@nokia.com> | 2011-02-10 20:38:48 -0500 |
---|---|---|
committer | Gustavo F. Padovan <padovan@profusion.mobi> | 2011-02-16 14:32:51 -0500 |
commit | 6ed58ec520ad2b2fe3f955c8a5fd0eecafccebdf (patch) | |
tree | 5e53b20a64214c811dda8625c14af394a7800718 /include | |
parent | fcd89c09a59a054fb986861e0862aa2fff7d7c40 (diff) |
Bluetooth: Use LE buffers for LE traffic
Bluetooth chips may have separate buffers for LE traffic.
This patch add support to use LE buffers provided by the chip.
Signed-off-by: Ville Tervo <ville.tervo@nokia.com>
Acked-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
Diffstat (limited to 'include')
-rw-r--r-- | include/net/bluetooth/hci_core.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/net/bluetooth/hci_core.h b/include/net/bluetooth/hci_core.h index f434e96ce020..d30b93c82fd4 100644 --- a/include/net/bluetooth/hci_core.h +++ b/include/net/bluetooth/hci_core.h | |||
@@ -123,15 +123,19 @@ struct hci_dev { | |||
123 | atomic_t cmd_cnt; | 123 | atomic_t cmd_cnt; |
124 | unsigned int acl_cnt; | 124 | unsigned int acl_cnt; |
125 | unsigned int sco_cnt; | 125 | unsigned int sco_cnt; |
126 | unsigned int le_cnt; | ||
126 | 127 | ||
127 | unsigned int acl_mtu; | 128 | unsigned int acl_mtu; |
128 | unsigned int sco_mtu; | 129 | unsigned int sco_mtu; |
130 | unsigned int le_mtu; | ||
129 | unsigned int acl_pkts; | 131 | unsigned int acl_pkts; |
130 | unsigned int sco_pkts; | 132 | unsigned int sco_pkts; |
133 | unsigned int le_pkts; | ||
131 | 134 | ||
132 | unsigned long cmd_last_tx; | 135 | unsigned long cmd_last_tx; |
133 | unsigned long acl_last_tx; | 136 | unsigned long acl_last_tx; |
134 | unsigned long sco_last_tx; | 137 | unsigned long sco_last_tx; |
138 | unsigned long le_last_tx; | ||
135 | 139 | ||
136 | struct workqueue_struct *workqueue; | 140 | struct workqueue_struct *workqueue; |
137 | 141 | ||
@@ -521,6 +525,7 @@ void hci_conn_del_sysfs(struct hci_conn *conn); | |||
521 | #define lmp_esco_capable(dev) ((dev)->features[3] & LMP_ESCO) | 525 | #define lmp_esco_capable(dev) ((dev)->features[3] & LMP_ESCO) |
522 | #define lmp_ssp_capable(dev) ((dev)->features[6] & LMP_SIMPLE_PAIR) | 526 | #define lmp_ssp_capable(dev) ((dev)->features[6] & LMP_SIMPLE_PAIR) |
523 | #define lmp_no_flush_capable(dev) ((dev)->features[6] & LMP_NO_FLUSH) | 527 | #define lmp_no_flush_capable(dev) ((dev)->features[6] & LMP_NO_FLUSH) |
528 | #define lmp_le_capable(dev) ((dev)->features[4] & LMP_LE) | ||
524 | 529 | ||
525 | /* ----- HCI protocols ----- */ | 530 | /* ----- HCI protocols ----- */ |
526 | struct hci_proto { | 531 | struct hci_proto { |