Skip to content

Commit 11782db

Browse files
olivier-le-sagedanieldegrasse
authored andcommitted
bluetooth: host: rename bool scan_enabled -> scan_disabled
It represents whether scanning was disabled as part of this flow. Signed-off-by: Olivier Lesage <olivier.lesage@nordicsemi.no>
1 parent 43223a1 commit 11782db

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
@@ -1997,21 +1997,21 @@ int bt_id_set_adv_own_addr(struct bt_le_ext_adv *adv, uint32_t options,
19971997
* problem.
19981998
*/
19991999
#if defined(CONFIG_BT_OBSERVER)
2000-
bool scan_enabled = false;
2000+
bool scan_disabled = false;
20012001

20022002
/* If active scan with NRPA is ongoing refresh NRPA */
20032003
if (!IS_ENABLED(CONFIG_BT_PRIVACY) &&
20042004
!IS_ENABLED(CONFIG_BT_SCAN_WITH_IDENTITY) &&
20052005
atomic_test_bit(bt_dev.flags, BT_DEV_SCANNING)) {
2006-
scan_enabled = true;
2006+
scan_disabled = true;
20072007
bt_le_scan_set_enable(BT_HCI_LE_SCAN_DISABLE);
20082008
}
20092009
#endif /* defined(CONFIG_BT_OBSERVER) */
20102010
err = bt_id_set_adv_private_addr(adv);
20112011
*own_addr_type = BT_HCI_OWN_ADDR_RANDOM;
20122012

20132013
#if defined(CONFIG_BT_OBSERVER)
2014-
if (scan_enabled) {
2014+
if (scan_disabled) {
20152015
bt_le_scan_set_enable(BT_HCI_LE_SCAN_ENABLE);
20162016
}
20172017
#endif /* defined(CONFIG_BT_OBSERVER) */

0 commit comments

Comments
 (0)