]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
Bluetooth: hci_core: Rate limit the logging of invalid ISO handle
authorPauli Virtanen <pav@iki.fi>
Tue, 3 Feb 2026 19:57:21 +0000 (21:57 +0200)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Fri, 10 Apr 2026 14:20:04 +0000 (10:20 -0400)
Some controller firmwares (eg for MT7925) continuously send invalid ISO
packet, which result to "ISO unknown handle" error spam in logs.  It's
not important to show all of them to the user.

Rate limit these ISO error messages, similarly as we do for SCO.

Signed-off-by: Pauli Virtanen <pav@iki.fi>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
net/bluetooth/hci_core.c

index 01f8ceeb1c0c84391616542af1e4c9194c2606ab..c46c1236ebfab4e64811f3cf8a2e69e2566844c8 100644 (file)
@@ -3917,8 +3917,8 @@ static void hci_isodata_packet(struct hci_dev *hdev, struct sk_buff *skb)
 
        err = iso_recv(hdev, handle, skb, flags);
        if (err == -ENOENT)
-               bt_dev_err(hdev, "ISO packet for unknown connection handle %d",
-                          handle);
+               bt_dev_err_ratelimited(hdev, "ISO packet for unknown connection handle %d",
+                                      handle);
        else if (err)
                bt_dev_dbg(hdev, "ISO packet recv for handle %d failed: %d",
                           handle, err);