Merge branch 'bugfix/fix_iso_data_len_get' into 'master'

fix(iso): correct ISO data length mask from 0x7fff to 0x3fff

See merge request espressif/esp-idf!51509
This commit is contained in:
Island
2026-09-09 14:38:27 +08:00
2 changed files with 2 additions and 2 deletions

View File

@@ -178,7 +178,7 @@ hci_h4_sm_w4_header(struct hci_h4_sm *h4sm, struct hci_h4_input_buffer *ib)
}
os_mbuf_append(h4sm->om, h4sm->hdr, h4sm->len);
h4sm->exp_len = (get_le16(&h4sm->hdr[2]) & 0x7fff) + 4;
h4sm->exp_len = (get_le16(&h4sm->hdr[2]) & 0x3fff) + 4;
break;
default:
return -2;

View File

@@ -227,7 +227,7 @@ hci_h4_sm_w4_header(struct hci_h4_sm *h4sm, struct hci_h4_input_buffer *ib)
#endif // !CONFIG_BT_CONTROLLER_ENABLED
#if CONFIG_BT_LE_ISO_SUPPORT
case HCI_H4_ISO:
h4sm->exp_len = (btdm_get_le16(&h4sm->hdr[2]) & 0x7fff) + 4;
h4sm->exp_len = (btdm_get_le16(&h4sm->hdr[2]) & 0x3fff) + 4;
h4sm->buf = h4sm->allocs->iso(h4sm->exp_len);
if (!h4sm->buf) {
return -1;