@@ -144,27 +144,20 @@ static inline enum bt_buf_type bt_buf_type_from_h4(uint8_t h4_type, enum bt_buf_
144
144
#define BT_BUF_ACL_RX_COUNT_MAX 65535
145
145
146
146
#if defined(CONFIG_BT_CONN ) && defined(CONFIG_BT_HCI_HOST )
147
- /* The host needs more ACL buffers than maximum ACL links. This is because of
148
- * the way we re-assemble ACL packets into L2CAP PDUs.
149
- *
150
- * We keep around the first buffer (that comes from the driver) to do
151
- * re-assembly into, and if all links are re-assembling, there will be no buffer
152
- * available for the HCI driver to allocate from.
153
- *
154
- * TODO: When CONFIG_BT_BUF_ACL_RX_COUNT is removed,
155
- * remove the MAX and only keep the 1.
156
- */
147
+ /* The host needs more ACL buffers than maximum ACL links. This is because of
148
+ * the way we re-assemble ACL packets into L2CAP PDUs.
149
+ *
150
+ * We keep around the first buffer (that comes from the driver) to do
151
+ * re-assembly into, and if all links are re-assembling, there will be no buffer
152
+ * available for the HCI driver to allocate from.
153
+ */
157
154
#define BT_BUF_ACL_RX_COUNT_EXTRA CONFIG_BT_BUF_ACL_RX_COUNT_EXTRA
158
- #define BT_BUF_ACL_RX_COUNT (MAX(CONFIG_BT_BUF_ACL_RX_COUNT, 1) + BT_BUF_ACL_RX_COUNT_EXTRA)
155
+ #define BT_BUF_ACL_RX_COUNT (1 + BT_BUF_ACL_RX_COUNT_EXTRA)
159
156
#else
160
157
#define BT_BUF_ACL_RX_COUNT_EXTRA 0
161
158
#define BT_BUF_ACL_RX_COUNT 0
162
159
#endif /* CONFIG_BT_CONN && CONFIG_BT_HCI_HOST */
163
160
164
- #if defined(CONFIG_BT_BUF_ACL_RX_COUNT ) && CONFIG_BT_BUF_ACL_RX_COUNT > 0
165
- #warning "CONFIG_BT_BUF_ACL_RX_COUNT is deprecated, see Zephyr 4.1 migration guide"
166
- #endif /* CONFIG_BT_BUF_ACL_RX_COUNT && CONFIG_BT_BUF_ACL_RX_COUNT > 0 */
167
-
168
161
BUILD_ASSERT (BT_BUF_ACL_RX_COUNT <= BT_BUF_ACL_RX_COUNT_MAX ,
169
162
"Maximum number of ACL RX buffer is 65535, reduce CONFIG_BT_BUF_ACL_RX_COUNT_EXTRA" );
170
163
0 commit comments