altos: ao_fec_prepare using wrong value for input len
authorKeith Packard <keithp@keithp.com>
Wed, 27 Mar 2024 04:38:48 +0000 (21:38 -0700)
committerKeith Packard <keithp@keithp.com>
Wed, 27 Mar 2024 04:38:48 +0000 (21:38 -0700)
commitabfa580ad700415f5ea240450a1621f9de35de82
tree2b249548547780c48a229e542d5d6f6ac2e98f10
parentd7a91278051ff75e3edc3e999a6d8096fa4deec4
altos: ao_fec_prepare using wrong value for input len

The FEC code always sends a multiple of four bytes, padding by two
bytes for even inputs and one byte for odd. But the preparation step
was using the wrong value for the length, so the output was getting
mangled.

Signed-off-by: Keith Packard <keithp@keithp.com>
src/kernel/ao_fec_tx.c