mirror of
https://github.com/espressif/esp-idf.git
synced 2026-09-22 13:01:16 +03:00
fix(iso): correct ISO data length mask from 0x7fff to 0x3fff
(cherry picked from commit b0f2f482d64e1d0c5f1ba2817f54d12fcb870e75) Co-authored-by: wangjialiang <wangjialiang@espressif.com>
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user