aboutsummaryrefslogtreecommitdiffstats
path: root/tools/firmware-utils/src/nec-enc.c
Commit message (Collapse)AuthorAgeFilesLines
* firmware-utils: fix mistake and improve logic in nec-encINAGAKI Hiroshi2020-11-121-4/+4
| | | | | | | | | this patch fixes/improves follows: - PATTERN_LEN is defined as a macro but unused - redundant logic in count-up for "ptn" Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
* firmware-utils: add nec-encINAGAKI Hiroshi2019-04-061-0/+129
nec-enc provides firmware encoding/decoding with model specific key for NEC devices. known devices: - Aterm WF1200CR - Aterm WG1200CR - Aterm WG2600HS usage: nec-enc -i infile -o outfile -k key Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com> Signed-off-by: Christian Lamparter <chunkeey@gmail.com> [checkpatch fixes, marked usage as noreturn, added static function, moved buf* from stack to the global data segment]