Skip to content

Commit 477c0fc

Browse files
jori-nordicfabiobaltieri
authored andcommitted
Bluetooth: l2cap: reword unknown pdu warning
This is a scary-looking warning for users, and should only really matter to stack developers. It will eventually show up in the wild for embedded devices that don't get updated to the latest and greatest. Reword it to make it clear we are rejecting it, and it doesn't impact the stack in any way. Signed-off-by: Jonathan Rico <[email protected]>
1 parent 5d96b9e commit 477c0fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

subsys/bluetooth/host/l2cap.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2230,7 +2230,7 @@ static int l2cap_recv(struct bt_l2cap_chan *chan, struct net_buf *buf)
22302230
}
22312231
__fallthrough;
22322232
default:
2233-
BT_WARN("Unknown L2CAP PDU code 0x%02x", hdr->code);
2233+
BT_WARN("Rejecting unknown L2CAP PDU code 0x%02x", hdr->code);
22342234
l2cap_send_reject(chan->conn, hdr->ident,
22352235
BT_L2CAP_REJ_NOT_UNDERSTOOD, NULL, 0);
22362236
break;

0 commit comments

Comments
 (0)