Skip to content

Commit 70f62ad

Browse files
Tronilcarlescufi
authored andcommitted
Bluetooth: Controller: Fix bug in read_codecs_v2()
The loop for copying the vendor specific codecs was using num_std_codecs instead of num_vs_codecs Signed-off-by: Troels Nilsson <[email protected]>
1 parent 321db85 commit 70f62ad

File tree

1 file changed

+1
-1
lines changed
  • subsys/bluetooth/controller/hci

1 file changed

+1
-1
lines changed

subsys/bluetooth/controller/hci/hci.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1165,7 +1165,7 @@ static void read_codecs_v2(struct net_buf *buf, struct net_buf **evt)
11651165
/* copy vendor specific codec information */
11661166
vs_codecs = (struct bt_hci_vs_codecs_v2 *)&rp->codecs[std_codecs_bytes];
11671167
vs_codecs->num_codecs = num_vs_codecs;
1168-
for (i = 0; i < num_std_codecs; i++) {
1168+
for (i = 0; i < num_vs_codecs; i++) {
11691169
struct bt_hci_vs_codec_info_v2 *codec;
11701170

11711171
codec = &vs_codecs->codec_info[i];

0 commit comments

Comments
 (0)