nimble/transport/h4: Assert on H4 failure
We can't recover from H4 failure so let's just assert for now, it will
be easier to spot the issue.
@@ -264,6 +264,7 @@ hci_h4_sm_rx(struct hci_h4_sm *h4sm, const uint8_t *buf, uint16_t len)
/* no break */
case HCI_H4_SM_W4_HEADER:
rc = hci_h4_sm_w4_header(h4sm, &ib);
+ assert(rc >= 0);
if (rc) {
break;
}
@@ -271,6 +272,7 @@ hci_h4_sm_rx(struct hci_h4_sm *h4sm, const uint8_t *buf, uint16_t len)
/* no break */
case HCI_H4_SM_W4_PAYLOAD:
rc = hci_h4_sm_w4_payload(h4sm, &ib);
+ assert(rc >= 0);
if (rc) {
break;
}
