Changelog
Latest Changes
- Branch:
- develop
- Commit:
kiss: propagate driver write failures instead of discarding them by Kohei Otsuka at 2026-09-10 06:42:40
csp_kiss_tx() ignored every csp_kiss_driver_tx_t return value and always returned CSP_ERR_NONE. csp_send_direct_iface() therefore always took the success branch, so iface->tx_error could never increment on a KISS interface, and a frame the driver failed to write was still counted as transmitted. The only symptom was a CRC failure at the far end. Check each tx_func() result and return CSP_ERR_TX on failure. The packet is deliberately not freed on that path: csp_send_direct_iface() frees it and counts iface->tx_error when the interface reports a failure.