Patch "Bluetooth: Remove "Power-on" check from Mesh feature" has been added to the 6.1-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: Remove "Power-on" check from Mesh feature

to the 6.1-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-remove-power-on-check-from-mesh-feature.patch
and it can be found in the queue-6.1 subdirectory.

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



commit e2b89ee8b98d4511ca768001052d59f8699895c8
Author: Brian Gix <brian.gix@xxxxxxxxx>
Date:   Mon Mar 6 14:32:21 2023 -0800

    Bluetooth: Remove "Power-on" check from Mesh feature
    
    [ Upstream commit 52dd5e964a55c98c1b0bcf5fc737a5ddd00e7d4d ]
    
    The Bluetooth mesh experimental feature enable was requiring the
    controller to be powered off in order for the Enable to work. Mesh is
    supposed to be enablable regardless of the controller state, and created
    an unintended requirement that the mesh daemon be started before the
    classic bluetoothd daemon.
    
    Fixes: af6bcc1921ff ("Bluetooth: Add experimental wrapper for MGMT based mesh")
    Signed-off-by: Brian Gix <brian.gix@xxxxxxxxx>
    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 0dd30a3beb776..7576db8eb83e2 100644
--- a/net/bluetooth/mgmt.c
+++ b/net/bluetooth/mgmt.c
@@ -4627,12 +4627,6 @@ static int set_mgmt_mesh_func(struct sock *sk, struct hci_dev *hdev,
 				       MGMT_OP_SET_EXP_FEATURE,
 				       MGMT_STATUS_INVALID_INDEX);
 
-	/* Changes can only be made when controller is powered down */
-	if (hdev_is_powered(hdev))
-		return mgmt_cmd_status(sk, hdev->id,
-				       MGMT_OP_SET_EXP_FEATURE,
-				       MGMT_STATUS_REJECTED);
-
 	/* Parameters are limited to a single octet */
 	if (data_len != MGMT_SET_EXP_FEATURE_SIZE + 1)
 		return mgmt_cmd_status(sk, hdev->id,



[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