Trying to start and stop BLE periodically

Hello,

In order to limit consumption, I would like to stop BLE and to restart it when I need, on the nRF5340 using Zephyr.
For this, I'm calling those function to stop the BLE :

	bt_le_adv_stop();
	bt_disable();

Unfortunately, when I try to restart the BLE, the function bt_enable() throw an error, and BLE is not restarted properly.
The error code is -120, which seems to correspond to "Operation already in progress". So I assume that I don't really stop the BLE correctly but I cannot figure what is missing.

Does anyone have a clue on how I could restart the BLE properly ?

Thank you

Related