From: Hauke Mehrtens Date: Sat, 29 Aug 2015 17:38:15 +0000 (+0000) Subject: broadcom-wl: fix bash comparison error X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=9893aa395ce99ce01795ec86e4005271d8942dc9;p=openwrt%2Fstaging%2Fstintel.git broadcom-wl: fix bash comparison error This fixes #17495 Signed-off-by: Álvaro Fernández Rojas Signed-off-by: Hauke Mehrtens SVN-Revision: 46746 --- diff --git a/package/kernel/broadcom-wl/files/lib/wifi/broadcom.sh b/package/kernel/broadcom-wl/files/lib/wifi/broadcom.sh index 65179a5692..271fc45a62 100644 --- a/package/kernel/broadcom-wl/files/lib/wifi/broadcom.sh +++ b/package/kernel/broadcom-wl/files/lib/wifi/broadcom.sh @@ -218,7 +218,7 @@ enable_broadcom() { } local leddc=$(wlc ifname "$device" leddc) - [ "$leddc" -eq 0xffff ] || { + [ $((leddc)) -eq $((0xffff)) ] && { leddc=0x005a000a; }