|
@@ -2272,7 +2272,9 @@ static int l2cap_segment_sdu(struct l2cap_chan *chan,
|
|
|
/* PDU size is derived from the HCI MTU */
|
|
|
pdu_len = chan->conn->mtu;
|
|
|
|
|
|
- pdu_len = min_t(size_t, pdu_len, L2CAP_BREDR_MAX_PAYLOAD);
|
|
|
+ /* Constrain PDU size for BR/EDR connections */
|
|
|
+ if (!chan->hs_hcon)
|
|
|
+ pdu_len = min_t(size_t, pdu_len, L2CAP_BREDR_MAX_PAYLOAD);
|
|
|
|
|
|
/* Adjust for largest possible L2CAP overhead. */
|
|
|
if (chan->fcs)
|