openwrt/target/linux/lantiq
Adrian Schmutzler 0aab49d234 treewide: fix hex2dec conversion for MAC address checksum offset
If chksum_offset is converted by $(($...)) at the beginning, the
check [ -n "$chksum_offset" ] will always return true, as the
conversion yields "0" for an empty argument, and [ -n "0" ] is
true.

With this patch, the variable is not converted before the check,
but only when it's used in dd.

No conversion is done for use in hexdump, as this can deal with
hex value offsets.

Fixes: b133e466b0 ("treewide: convert WiFi caldata size and offset to hexadecimal")
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
2019-09-29 00:46:13 +02:00
..
ase lantiq: drop kernel 4.14 support 2019-07-04 08:29:14 +02:00
base-files treewide: fix hex2dec conversion for MAC address checksum offset 2019-09-29 00:46:13 +02:00
falcon lantiq: drop kernel 4.14 support 2019-07-04 08:29:14 +02:00
files lantiq: unify Fritz!Box LED mappings 2019-08-15 14:25:51 +02:00
image lantiq: add device alias for Alpha ASL56026 2019-08-22 16:26:05 +02:00
patches-4.19 kernel: bump 4.19 to 4.19.62 2019-07-31 16:51:46 +02:00
xrx200 lantiq: drop kernel 4.14 support 2019-07-04 08:29:14 +02:00
xway lantiq: drop kernel 4.14 support 2019-07-04 08:29:14 +02:00
xway_legacy lantiq: drop kernel 4.14 support 2019-07-04 08:29:14 +02:00
config-4.19 lantiq: make patches apply 2019-07-04 08:29:13 +02:00
Makefile lantiq: switch to kernel 4.19 2019-07-04 08:29:13 +02:00
modules.mk fix i2c-lantiq module 2012-12-16 10:03:18 +00:00