Bluetooth: MGMT: Use hci_dev_test_and_{set,clear}_flag
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Wed, 1 Dec 2021 19:49:49 +0000 (11:49 -0800)
committerMarcel Holtmann <marcel@holtmann.org>
Tue, 7 Dec 2021 16:05:51 +0000 (17:05 +0100)
commit6f59f991b4e735323f099ac6490e725ae8c750a5
tree43f97708270e0815a0aa62b04a96599a8241acae
parent801b4c027b44a185292007d3cf7513999d644723
Bluetooth: MGMT: Use hci_dev_test_and_{set,clear}_flag

This make use of hci_dev_test_and_{set,clear}_flag instead of doing 2
operations in a row.

Fixes: cbbdfa6f33198 ("Bluetooth: Enable controller RPA resolution using Experimental feature")
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/mgmt.c