]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
Bluetooth: hci_core: fix typos in macros
authorChristian Eggers <ceggers@arri.de>
Mon, 14 Jul 2025 20:27:43 +0000 (22:27 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 24 Jul 2025 06:58:37 +0000 (08:58 +0200)
[ Upstream commit dfef8d87a031ac1a46dde3de804e0fcf3c3a6afd ]

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>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
include/net/bluetooth/hci_core.h

index 1cf60ed7ac89b3afb51572e50d91edb3d12562f4..08cc5db8240ed4f7bde7b7d90d195076610659ff 100644 (file)
@@ -1934,11 +1934,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 && \