Skip to content

Commit dfef8d8

Browse files
ceggers-arriVudentz
authored andcommitted
Bluetooth: hci_core: fix typos in macros
The provided macro parameter is named 'dev' (rather than 'hdev', which may be a variable on the stack where the macro is used). Fixes: a9a830a ("Bluetooth: hci_event: Fix sending HCI_OP_READ_ENC_KEY_SIZE") Fixes: 6126ffa ("Bluetooth: Introduce HCI_CONN_FLAG_DEVICE_PRIVACY device flag") Signed-off-by: Christian Eggers <[email protected]> Signed-off-by: Luiz Augusto von Dentz <[email protected]>
1 parent 6ef99c9 commit dfef8d8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/net/bluetooth/hci_core.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1940,11 +1940,11 @@ void hci_conn_del_sysfs(struct hci_conn *conn);
19401940
#define ll_privacy_capable(dev) ((dev)->le_features[0] & HCI_LE_LL_PRIVACY)
19411941

19421942
#define privacy_mode_capable(dev) (ll_privacy_capable(dev) && \
1943-
(hdev->commands[39] & 0x04))
1943+
((dev)->commands[39] & 0x04))
19441944

19451945
#define read_key_size_capable(dev) \
19461946
((dev)->commands[20] & 0x10 && \
1947-
!test_bit(HCI_QUIRK_BROKEN_READ_ENC_KEY_SIZE, &hdev->quirks))
1947+
!test_bit(HCI_QUIRK_BROKEN_READ_ENC_KEY_SIZE, &(dev)->quirks))
19481948

19491949
#define read_voice_setting_capable(dev) \
19501950
((dev)->commands[9] & 0x04 && \

0 commit comments

Comments
 (0)