]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
Bluetooth: mgmt: Fix MGMT add advmon with RSSI command
authorHoward Chung <howardchung@google.com>
Thu, 16 Mar 2023 10:11:38 +0000 (18:11 +0800)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Thu, 23 Mar 2023 20:09:38 +0000 (13:09 -0700)
commit1a0291f81529e8044fb29845a0196ba47af894ce
tree7e21d4a3f45eb6e3e13be9bc9d2f4319460263e5
parent1e9ac114c4428fdb7ff4635b45d4f46017e8916f
Bluetooth: mgmt: Fix MGMT add advmon with RSSI command

The MGMT command: MGMT_OP_ADD_ADV_PATTERNS_MONITOR_RSSI uses variable
length argument. This causes host not able to register advmon with rssi.

This patch has been locally tested by adding monitor with rssi via
btmgmt on a kernel 6.1 machine.

Reviewed-by: Archie Pusaka <apusaka@chromium.org>
Fixes: b338d91703fa ("Bluetooth: Implement support for Mesh")
Signed-off-by: Howard Chung <howardchung@google.com>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
net/bluetooth/mgmt.c