* [PATCH] Bluetooth: MGMT: Fix runtime config status opcode
@ 2026-11-10 3:07 raoxu
2026-11-10 11:16 ` bluez.test.bot
0 siblings, 1 reply; 2+ messages in thread
From: raoxu @ 2026-11-10 3:07 UTC (permalink / raw)
To: marcel
Cc: luiz.dentz, johan.hedberg, alainm, linux-bluetooth, linux-kernel,
raoxu, stable
From: Xu Rao <raoxu@uniontech.com>
The Set Default Runtime Configuration command uses opcode 0x004e,
but set_def_runtime_config() reports its invalid-parameter status with
the Set Default System Configuration opcode, 0x004c.
A management client that matches Command Status events to its pending
request by opcode therefore cannot associate the response with the
request it sent. Runtime configuration parameters are not implemented,
so the command still returns MGMT_STATUS_INVALID_PARAMS.
Use MGMT_OP_SET_DEF_RUNTIME_CONFIG for the status event so the response
identifies the command that was actually handled.
Fixes: aececa645dc7 ("Bluetooth: mgmt: Add commands for runtime configuration")
Signed-off-by: Xu Rao <raoxu@uniontech.com>
Cc: stable@vger.kernel.org
---
net/bluetooth/mgmt_config.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/net/bluetooth/mgmt_config.c b/net/bluetooth/mgmt_config.c
index fdcc752c6f13..6a617656bfbe 100644
--- a/net/bluetooth/mgmt_config.c
+++ b/net/bluetooth/mgmt_config.c
@@ -362,6 +362,6 @@ int set_def_runtime_config(struct sock *sk, struct hci_dev *hdev, void *data,
{
bt_dev_dbg(hdev, "sock %p", sk);
- return mgmt_cmd_status(sk, hdev->id, MGMT_OP_SET_DEF_SYSTEM_CONFIG,
+ return mgmt_cmd_status(sk, hdev->id, MGMT_OP_SET_DEF_RUNTIME_CONFIG,
MGMT_STATUS_INVALID_PARAMS);
}
--
2.50.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-11-10 11:16 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-10 3:07 [PATCH] Bluetooth: MGMT: Fix runtime config status opcode raoxu
2026-11-10 11:16 ` bluez.test.bot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox