Skip to content

Commit 47f59b1

Browse files
olivier-le-sagerlubos
authored andcommitted
[nrf fromtree] bluetooth: host: rename bool scan_enabled -> scan_disabled
It represents whether scanning was disabled as part of this flow. Signed-off-by: Olivier Lesage <[email protected]> (cherry picked from commit 11782db)
1 parent b0ab105 commit 47f59b1

File tree

1 file changed

+3
-3
lines changed
  • subsys/bluetooth/host

1 file changed

+3
-3
lines changed

subsys/bluetooth/host/id.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2173,21 +2173,21 @@ int bt_id_set_adv_own_addr(struct bt_le_ext_adv *adv, uint32_t options,
21732173
* problem.
21742174
*/
21752175
#if defined(CONFIG_BT_OBSERVER)
2176-
bool scan_enabled = false;
2176+
bool scan_disabled = false;
21772177

21782178
/* If active scan with NRPA is ongoing refresh NRPA */
21792179
if (!IS_ENABLED(CONFIG_BT_PRIVACY) &&
21802180
!IS_ENABLED(CONFIG_BT_SCAN_WITH_IDENTITY) &&
21812181
atomic_test_bit(bt_dev.flags, BT_DEV_SCANNING)) {
2182-
scan_enabled = true;
2182+
scan_disabled = true;
21832183
bt_le_scan_set_enable(BT_HCI_LE_SCAN_DISABLE);
21842184
}
21852185
#endif /* defined(CONFIG_BT_OBSERVER) */
21862186
err = bt_id_set_adv_private_addr(adv);
21872187
*own_addr_type = BT_HCI_OWN_ADDR_RANDOM;
21882188

21892189
#if defined(CONFIG_BT_OBSERVER)
2190-
if (scan_enabled) {
2190+
if (scan_disabled) {
21912191
bt_le_scan_set_enable(BT_HCI_LE_SCAN_ENABLE);
21922192
}
21932193
#endif /* defined(CONFIG_BT_OBSERVER) */

0 commit comments

Comments
 (0)