[PATCH] Bluetooth: btmtk: Fix FUNC_CTRL parsing for devices with zero-length payloads
Tristan Madani
tristmd at gmail.com
Sat May 16 12:15:42 PDT 2026
On Thu, 14 May 2026 23:18:13 +0530, Shivam Kalra wrote:
> Fix this by making skb_pull_data() conditional: if the status payload is
> present, parse it as before; if omitted, default to BTMTK_WMT_ON_UNDONE.
Makes sense. The original check was too strict for devices that
legitimately omit the status field on FUNC_CTRL responses.
Reviewed-by: Tristan Madani <tristan at talencesecurity.com>
More information about the Linux-mediatek
mailing list