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)
commit0d3be662ce722011f000dfd4ddee2e8f45067980
tree778bdb37f656409430ef6b4c009a36ae6f3cd177
parent746e63201bef8fcbe8a333a8834976b2d7f3d82d
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>
tools/firmware-utils/src/tplink-safeloader.c