linux-arm-msm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/3] Bluetooth: hci_core: fix typos in macros
@ 2025-07-14 20:27 Christian Eggers
  2025-07-14 20:27 ` [PATCH 2/3] Bluetooth: hci_core: add missing braces when using macro parameters Christian Eggers
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Christian Eggers @ 2025-07-14 20:27 UTC (permalink / raw)
  To: Marcel Holtmann, Luiz Augusto von Dentz, Pauli Virtanen,
	Johan Hedberg
  Cc: Matthias Brugger, AngeloGioacchino Del Regno, Sean Wang,
	Amitkumar Karwar, Neeraj Kale, Yang Li, Sven Peter, Janne Grunau,
	Alyssa Rosenzweig, Neal Gompa, linux-bluetooth, linux-kernel,
	linux-arm-kernel, linux-mediatek, linux-arm-msm, asahi, netdev,
	Christian Eggers

The provided macro parameter is named 'dev' (rather than 'hdev', which
may be a variable on the stack where the macro is used).

Fixes: a9a830a676a9 ("Bluetooth: hci_event: Fix sending HCI_OP_READ_ENC_KEY_SIZE")
Fixes: 6126ffabba6b ("Bluetooth: Introduce HCI_CONN_FLAG_DEVICE_PRIVACY device flag")
Signed-off-by: Christian Eggers <ceggers@arri.de>
---
 include/net/bluetooth/hci_core.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/net/bluetooth/hci_core.h b/include/net/bluetooth/hci_core.h
index 3ce1fb6f5822..acaaad55e75a 100644
--- a/include/net/bluetooth/hci_core.h
+++ b/include/net/bluetooth/hci_core.h
@@ -1921,11 +1921,11 @@ void hci_conn_del_sysfs(struct hci_conn *conn);
 #define ll_privacy_capable(dev) ((dev)->le_features[0] & HCI_LE_LL_PRIVACY)
 
 #define privacy_mode_capable(dev) (ll_privacy_capable(dev) && \
-				   (hdev->commands[39] & 0x04))
+				   ((dev)->commands[39] & 0x04))
 
 #define read_key_size_capable(dev) \
 	((dev)->commands[20] & 0x10 && \
-	 !test_bit(HCI_QUIRK_BROKEN_READ_ENC_KEY_SIZE, &hdev->quirks))
+	 !test_bit(HCI_QUIRK_BROKEN_READ_ENC_KEY_SIZE, &(dev)->quirks))
 
 #define read_voice_setting_capable(dev) \
 	((dev)->commands[9] & 0x04 && \
-- 
2.43.0


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

end of thread, other threads:[~2025-07-14 21:09 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-14 20:27 [PATCH 1/3] Bluetooth: hci_core: fix typos in macros Christian Eggers
2025-07-14 20:27 ` [PATCH 2/3] Bluetooth: hci_core: add missing braces when using macro parameters Christian Eggers
2025-07-14 20:27 ` [PATCH 3/3] Bluetooth: hci_dev: replace 'quirks' integer by 'quirk_flags' bitmap Christian Eggers
2025-07-14 21:10 ` [PATCH 1/3] Bluetooth: hci_core: fix typos in macros patchwork-bot+bluetooth

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).