All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Bluetooth: mgmt: Fix TLV parameter code type conversion
@ 2025-12-18 12:08 Stefan Sørensen
  2025-12-18 12:41 ` Paul Menzel
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Stefan Sørensen @ 2025-12-18 12:08 UTC (permalink / raw)
  To: marcel, johan.hedberg, luiz.dentz, linux-bluetooth; +Cc: Stefan Sørensen

Use the correct le16 conversion for the TLV type field when adding a
TLV using a u32 data field.

Fixes: afa20d8099ddf ("Bluetooth: mgmt: Add idle_timeout to configurable system parameters")
Signed-off-by: Stefan Sørensen <ssorensen@roku.com>
---
 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 4ec6c008cb7e6..fdcc752c6f13f 100644
--- a/net/bluetooth/mgmt_config.c
+++ b/net/bluetooth/mgmt_config.c
@@ -37,7 +37,7 @@
 
 #define TLV_SET_U32(_param_code_, _param_name_) \
 	{ \
-		{ cpu_to_le32(_param_code_), sizeof(__u32) }, \
+		{ cpu_to_le16(_param_code_), sizeof(__u32) }, \
 		cpu_to_le32(hdev->_param_name_) \
 	}
 
-- 
2.52.0


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2025-12-18 14:18 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-12-18 12:08 [PATCH] Bluetooth: mgmt: Fix TLV parameter code type conversion Stefan Sørensen
2025-12-18 12:41 ` Paul Menzel
2025-12-18 13:00   ` [EXTERNAL] " Stefan Sørensen
2025-12-18 12:52 ` bluez.test.bot
2025-12-18 14:18 ` [PATCH] " Luiz Augusto von Dentz

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.