Skip to content

Commit 52dd5e9

Browse files
bgixVudentz
authored andcommitted
Bluetooth: Remove "Power-on" check from Mesh feature
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: af6bcc1 ("Bluetooth: Add experimental wrapper for MGMT based mesh") Signed-off-by: Brian Gix <[email protected]> Signed-off-by: Luiz Augusto von Dentz <[email protected]>
1 parent 1c66bee commit 52dd5e9

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

net/bluetooth/mgmt.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4639,12 +4639,6 @@ static int set_mgmt_mesh_func(struct sock *sk, struct hci_dev *hdev,
46394639
MGMT_OP_SET_EXP_FEATURE,
46404640
MGMT_STATUS_INVALID_INDEX);
46414641

4642-
/* Changes can only be made when controller is powered down */
4643-
if (hdev_is_powered(hdev))
4644-
return mgmt_cmd_status(sk, hdev->id,
4645-
MGMT_OP_SET_EXP_FEATURE,
4646-
MGMT_STATUS_REJECTED);
4647-
46484642
/* Parameters are limited to a single octet */
46494643
if (data_len != MGMT_SET_EXP_FEATURE_SIZE + 1)
46504644
return mgmt_cmd_status(sk, hdev->id,

0 commit comments

Comments
 (0)