generic: platform/mikrotik: fix LZOR support
authorThibaut VARÈNE <hacks@slashdirt.org>
Sat, 16 May 2020 15:12:06 +0000 (17:12 +0200)
committerHauke Mehrtens <hauke@hauke-m.de>
Sat, 16 May 2020 18:30:46 +0000 (20:30 +0200)
commit2ea481193c1654c9cb42aa0331cdbc4570783e26
tree8b35b406c007cbfe3257fc9a349b84e62bb12fe7
parent78bebe680f67e8967c2baad8a5c07035d431f9d5
generic: platform/mikrotik: fix LZOR support

31e99fe3da which introduced this code was unfortunately untested.
This commit fixes a number of issues and works around the fact that in
this particular scheme, the LZO payload may be padded at the end which
will trigger a harmless lzo decompression error.
This commit also disambiguates the debug printks.

Tested-by: Robert Marko <robimarko@gmail.com>
Signed-off-by: Thibaut VARÈNE <hacks@slashdirt.org>
Fixes: 31e99fe3da ("generic: platform/mikrotik: support LZOR encoding")
target/linux/generic/files/drivers/platform/mikrotik/rb_hardconfig.c