From b4de38cdc3d2ecbbcfed596a1d4e066139c7d81d Mon Sep 17 00:00:00 2001 From: Octavian Purdila Date: Tue, 11 Oct 2022 22:51:50 +0000 Subject: [PATCH] Fix address resolution handling In one of the refactors the command address_resolution field was changed to address_reslution_enable but the controller code was not updated. --- bumble/controller.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bumble/controller.py b/bumble/controller.py index c2824166..9ca9b59c 100644 --- a/bumble/controller.py +++ b/bumble/controller.py @@ -857,9 +857,9 @@ class Controller: See Bluetooth spec Vol 2, Part E - 7.8.44 LE Set Address Resolution Enable Command ''' ret = HCI_SUCCESS - if command.address_resolution == 1: + if command.address_resolution_enable == 1: self.le_address_resolution = True - elif command.address_resolution == 0: + elif command.address_resolution_enable == 0: self.le_address_resolution = False else: ret = HCI_INVALID_HCI_COMMAND_PARAMETERS_ERROR