Skip to content

Commit 855639a

Browse files
alxelaxkartben
authored andcommitted
bluetooth: mesh: keep scanner enabled if lpn has been disabled
Commit fixes the issue when scanner is disabled when lpn is disabled. Signed-off-by: Aleksandr Khromykh <aleksandr.khromykh@nordicsemi.no>
1 parent a7bdddd commit 855639a

File tree

1 file changed

+1
-1
lines changed
  • subsys/bluetooth/mesh

1 file changed

+1
-1
lines changed

subsys/bluetooth/mesh/lpn.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ static void clear_friendship(bool force, bool disable)
254254
/* The timer handler returns without any actions if this fails. */
255255
(void)k_work_cancel_delayable(&lpn->timer);
256256

257-
if (IS_ENABLED(CONFIG_BT_MESH_LPN_ESTABLISHMENT) || disable) {
257+
if (IS_ENABLED(CONFIG_BT_MESH_LPN_ESTABLISHMENT)) {
258258
bt_mesh_scan_disable();
259259
}
260260

0 commit comments

Comments
 (0)