Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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: 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>

authored by

Christian Eggers and committed by
Luiz Augusto von Dentz
dfef8d87 6ef99c91

+2 -2
+2 -2
include/net/bluetooth/hci_core.h
··· 1940 1940 #define ll_privacy_capable(dev) ((dev)->le_features[0] & HCI_LE_LL_PRIVACY) 1941 1941 1942 1942 #define privacy_mode_capable(dev) (ll_privacy_capable(dev) && \ 1943 - (hdev->commands[39] & 0x04)) 1943 + ((dev)->commands[39] & 0x04)) 1944 1944 1945 1945 #define read_key_size_capable(dev) \ 1946 1946 ((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)) 1948 1948 1949 1949 #define read_voice_setting_capable(dev) \ 1950 1950 ((dev)->commands[9] & 0x04 && \