nimble/ll: Fix scan proc handling
Fall-through for ll_state was not handled properly after some changes
and this means scan proc could disable phy mid-event.
@@ -1093,12 +1093,18 @@ ble_ll_scan_event_proc(struct ble_npl_event *ev)
switch (ble_ll_state_get()) {
#if MYNEWT_VAL(BLE_LL_ROLE_BROADCASTER)
case BLE_LL_STATE_ADV:
+ start_scan = false;
+ break;
#endif
#if MYNEWT_VAL(BLE_LL_ROLE_PERIPHERAL) || MYNEWT_VAL(BLE_LL_ROLE_CENTRAL)
case BLE_LL_STATE_CONNECTION:
+ start_scan = false;
+ break;
#endif
#if MYNEWT_VAL(BLE_LL_CFG_FEAT_LL_PERIODIC_ADV)
case BLE_LL_STATE_SYNC:
+ start_scan = false;
+ break;
#endif
#if MYNEWT_VAL(BLE_LL_CFG_FEAT_LL_EXT_ADV)
case BLE_LL_STATE_SCAN_AUX:
