firmware-utils: tplink-safeloader: keep per-device info on trailing char
authorRafał Miłecki <rafal@milecki.pl>
Sat, 19 Nov 2016 21:42:50 +0000 (22:42 +0100)
committerRafał Miłecki <rafal@milecki.pl>
Sun, 20 Nov 2016 16:17:48 +0000 (17:17 +0100)
commite9923a529b6d4e0daa4affc7f0291769a4989b0e
tree0ad7e96361e8a65289ef657f283d7ce6eaa8267e
parentf8df434de1eb96ac6f1a4b39c33b173101eaf56a
firmware-utils: tplink-safeloader: keep per-device info on trailing char

Recent refactoring introduced a regression. It ignored second argument
of make_support_list function which was originally true for C2600. The
new generic build_image function always passes false.

This patch allows specifying trailing char in a device specific info. It
also switches Archer C9 to the \0 char to make it compliant with vendor
images.

I verified generated images to be binary identical to the ones that
were created before whole refactoring.

Reported-by: Jo-Philipp Wich <jo@mein.io>
Fixes: fd924d2068f ("firmware-utils: tplink-safeloader: use one function for generating images")
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
src/tplink-safeloader.c