Hi,
During provisioning of a device the Device Name is changed to the default "nRF5x" after completion of the PB-GATT connection. The name is later on changed back when the initial configuration of the device is complete.
When the PB-GATT connection is closed the cpu ends up in sd_state_evt_handler() in mesh_provisionee.c after both the softdevice and the mesh stack has been disabled. The code starts up the softdevice and enables transmission of advertisements of the Mesh Proxy Service with Node Identity. After that the mesh stack is again enabled and the prov_complete_cb is called.
The prov_complete_cb will call gap_params_init() from ble_softdevice_support.c to reconfigure the device name using sd_ble_gap_device_name_set() but this doesn't seem to take effect immediately.
A pcap file is attach, captured using the nRF Sniffer that shows this behavior. The software running on the device is the unmodified example light_switch_server_nrf52832_xxAA_s132_6.1.0 from SDK for Mesh v3.1.0. The device is provisioned using the nRF Mesh iOS app.
Compare packet 2 (before provisioning), packet 164 (after provision, before configuration) and packet 373 (after configuration).
Thanks.