summaryrefslogtreecommitdiff
path: root/net/bluetooth/mgmt_config.c
diff options
context:
space:
mode:
authorEdward Vear <edwardvear@gmail.com>2020-10-27 10:02:03 +0300
committerJohan Hedberg <johan.hedberg@intel.com>2020-12-07 18:00:38 +0300
commita31489d2a368d2f9225ed6a6f595c63bc7d10de8 (patch)
treee6543724b6fbc295cad47f2f564b4bd804780acd /net/bluetooth/mgmt_config.c
parentaeeae47d3414e8884370c19a7175c46ce14c66c1 (diff)
downloadlinux-a31489d2a368d2f9225ed6a6f595c63bc7d10de8.tar.xz
Bluetooth: Fix attempting to set RPA timeout when unsupported
During controller initialization, an LE Set RPA Timeout command is sent to the controller if supported. However, the value checked to determine if the command is supported is incorrect. Page 1921 of the Bluetooth Core Spec v5.2 shows that bit 2 of octet 35 of the Supported_Commands field corresponds to the LE Set RPA Timeout command, but currently bit 6 of octet 35 is checked. This patch checks the correct value instead. This issue led to the error seen in the following btmon output during initialization of an adapter (rtl8761b) and prevented initialization from completing. < HCI Command: LE Set Resolvable Private Address Timeout (0x08|0x002e) plen 2 Timeout: 900 seconds > HCI Event: Command Complete (0x0e) plen 4 LE Set Resolvable Private Address Timeout (0x08|0x002e) ncmd 2 Status: Unsupported Remote Feature / Unsupported LMP Feature (0x1a) = Close Index: 00:E0:4C:6B:E5:03 The error did not appear when running with this patch. Signed-off-by: Edward Vear <edwardvear@gmail.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org> Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Diffstat (limited to 'net/bluetooth/mgmt_config.c')
0 files changed, 0 insertions, 0 deletions