Patch "Bluetooth: mgmt: Fix MGMT add advmon with RSSI command" has been added to the 6.2-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    Bluetooth: mgmt: Fix MGMT add advmon with RSSI command

to the 6.2-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     bluetooth-mgmt-fix-mgmt-add-advmon-with-rssi-command.patch
and it can be found in the queue-6.2 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit 4e14718d39295b4cce783e63917105885f04ceab
Author: Howard Chung <howardchung@xxxxxxxxxx>
Date:   Thu Mar 16 18:11:38 2023 +0800

    Bluetooth: mgmt: Fix MGMT add advmon with RSSI command
    
    [ Upstream commit 1a0291f81529e8044fb29845a0196ba47af894ce ]
    
    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@xxxxxxxxxxxx>
    Fixes: b338d91703fa ("Bluetooth: Implement support for Mesh")
    Signed-off-by: Howard Chung <howardchung@xxxxxxxxxx>
    Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@xxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/net/bluetooth/mgmt.c b/net/bluetooth/mgmt.c
index 71b65ac6343a0..c4a7627b380da 100644
--- a/net/bluetooth/mgmt.c
+++ b/net/bluetooth/mgmt.c
@@ -9345,7 +9345,8 @@ static const struct hci_mgmt_handler mgmt_handlers[] = {
 	{ add_ext_adv_data,        MGMT_ADD_EXT_ADV_DATA_SIZE,
 						HCI_MGMT_VAR_LEN },
 	{ add_adv_patterns_monitor_rssi,
-				   MGMT_ADD_ADV_PATTERNS_MONITOR_RSSI_SIZE },
+				   MGMT_ADD_ADV_PATTERNS_MONITOR_RSSI_SIZE,
+						HCI_MGMT_VAR_LEN },
 	{ set_mesh,                MGMT_SET_MESH_RECEIVER_SIZE,
 						HCI_MGMT_VAR_LEN },
 	{ mesh_features,           MGMT_MESH_READ_FEATURES_SIZE },



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux