Skip to content

Commit 1dbb20f

Browse files
m-alperen-senernordicjm
authored andcommitted
[nrf fromlist] Bluetooth: Mesh: Stop Private NID advs upon subnet removal
Private Node Identity advertisement on a subnet should stop as soon as the network is removed. Upstream PR #: 87891 Signed-off-by: alperen sener <[email protected]>
1 parent e48bca4 commit 1dbb20f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

subsys/bluetooth/mesh/proxy_srv.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -897,10 +897,13 @@ static void subnet_evt(struct bt_mesh_subnet *sub, enum bt_mesh_key_evt evt)
897897
if (sub == beacon_sub) {
898898
beacon_sub = NULL;
899899
}
900+
901+
bt_mesh_proxy_identity_stop(sub);
900902
} else {
901903
bt_mesh_proxy_beacon_send(sub);
902-
bt_mesh_adv_gatt_update();
903904
}
905+
906+
bt_mesh_adv_gatt_update();
904907
}
905908

906909
BT_MESH_SUBNET_CB_DEFINE(gatt_services) = {

0 commit comments

Comments
 (0)