We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a5265c5 commit f31b974Copy full SHA for f31b974
subsys/bluetooth/host/conn.c
@@ -132,10 +132,15 @@ struct k_sem *bt_conn_get_pkts(struct bt_conn *conn)
132
}
133
#endif /* CONFIG_BT_BREDR */
134
#if defined(CONFIG_BT_ISO)
135
- if (conn->type == BT_CONN_TYPE_ISO || bt_dev.le.iso_mtu) {
136
- if (bt_dev.le.iso_pkts.limit) {
+ /* Use ISO pkts semaphore if LE Read Buffer Size command returned
+ * dedicated ISO buffers.
137
+ */
138
+ if (conn->type == BT_CONN_TYPE_ISO) {
139
+ if (bt_dev.le.iso_mtu && bt_dev.le.iso_pkts.limit) {
140
return &bt_dev.le.iso_pkts;
141
142
+
143
+ return NULL;
144
145
#endif /* CONFIG_BT_ISO */
146
#if defined(CONFIG_BT_CONN)
0 commit comments