This adds a check when performing the energy scan to make sure that at least one channel has a better energy value than the CCA level. If not, an error is thrown.
The error return from the network initialisation now propagates back to the startup and can cause the network start to fail in the event that the scan finds all channels are too noisy.
Signed-off-by: Chris Jackson chris@cd-jackson.com
This adds a check when performing the energy scan to make sure that at least one channel has a better energy value than the CCA level. If not, an error is thrown. The error return from the network initialisation now propagates back to the startup and can cause the network start to fail in the event that the scan finds all channels are too noisy. Signed-off-by: Chris Jackson chris@cd-jackson.com