Skip to contentSkip to conversation

Bluetooth: Remove "Power-on" check from Mesh feature

PATCH Applied Brian Gix 3 participants 3 messages Mar 6, 2023 – Mar 7, 2023

Subsystems (2)
lore
Share & tools
lore

Brian Gix

author
#0 lore raw

PATCH 1/1 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 Unintended Bluetooth startup order dependancy
---
 net/bluetooth/mgmt.c | 6 ------
 1 file changed, 6 deletions(-)
net/bluetooth/mgmt.c +0 -6
index 0dd30a3beb77..7576db8eb83e 100644
@@ -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,
Signature · 1 line
2.39.2
#1 lore raw

This is automated email and please do not reply to this email!

Dear submitter,

Thank you for submitting the patches to the linux bluetooth mailing list. This is a CI test results with your patch series:
PW Link:https://patchwork.kernel.org/project/bluetooth/list/?series=727113

---Test result---

Test Summary:

CheckPatch                    FAIL      1.05 seconds
GitLint                       PASS      0.26 seconds
SubjectPrefix                 PASS      0.07 seconds
BuildKernel                   PASS      43.10 seconds
CheckAllWarning               PASS      47.38 seconds
CheckSparse                   PASS      52.48 seconds
CheckSmatch                   PASS      142.54 seconds
BuildKernel32                 PASS      41.20 seconds
TestRunnerSetup               PASS      590.44 seconds
TestRunner_l2cap-tester       PASS      19.97 seconds
TestRunner_iso-tester         PASS      23.30 seconds
TestRunner_bnep-tester        PASS      7.69 seconds
TestRunner_mgmt-tester        PASS      142.76 seconds
TestRunner_rfcomm-tester      PASS      12.07 seconds
TestRunner_sco-tester         PASS      10.67 seconds
TestRunner_ioctl-tester       PASS      12.58 seconds
TestRunner_mesh-tester        PASS      9.36 seconds
TestRunner_smp-tester         PASS      10.42 seconds
TestRunner_userchan-tester    PASS      7.90 seconds
IncrementalBuild              PASS      39.43 seconds

Details
##############################
Test: CheckPatch - FAIL
Desc: Run checkpatch.pl script
Output:
Bluetooth: Remove "Power-on" check from Mesh feature
WARNING: 'dependancy' may be misspelled - perhaps 'dependency'? #85:
Fixes: Unintended Bluetooth startup order dependancy

                                          ^^^^^^^^^^

total: 0 errors, 1 warnings, 0 checks, 12 lines checked

NOTE: For some of the reported defects, checkpatch may be able to
mechanically convert to the typical style using --fix or --fix-inplace.

/github/workspace/src/src/13162455.patch has style problems, please review.

NOTE: Ignored message types: UNKNOWN_COMMIT_ID

NOTE: If any of the errors are false positives, please report
them to the maintainer, see CHECKPATCH in MAINTAINERS.

---
Regards,
Linux Bluetooth

#2 lore raw
In reply to Brian Gix
This patch was applied to bluetooth/bluetooth-next.git (master) by Luiz Augusto von Dentz <[email protected]>:

Hello:

This patch was applied to bluetooth/bluetooth-next.git (master) by Luiz Augusto von Dentz <[email protected]>:

Quoted 10 lines · On Mon, 6 Mar 2023 14:32:21 -0800 you wrote:

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 Unintended Bluetooth startup order dependancy

[...]

Here is the summary with links:
- Bluetooth: Remove "Power-on" check from Mesh feature

    https://git.kernel.org/bluetooth/bluetooth-next/c/eaa2b72585a3

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html