broadcom-wl: fix bash comparison error
authorHauke Mehrtens <hauke@hauke-m.de>
Sat, 29 Aug 2015 17:38:15 +0000 (17:38 +0000)
committerHauke Mehrtens <hauke@hauke-m.de>
Sat, 29 Aug 2015 17:38:15 +0000 (17:38 +0000)
This fixes #17495

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
SVN-Revision: 46746

package/kernel/broadcom-wl/files/lib/wifi/broadcom.sh

index 65179a569274b3c195ce02703c4b21b77f3180d0..271fc45a62dcb122b380a9c19503490f5b6029c7 100644 (file)
@@ -218,7 +218,7 @@ enable_broadcom() {
        }
 
        local leddc=$(wlc ifname "$device" leddc)
-       [ "$leddc" -eq 0xffff ] || {
+       [ $((leddc)) -eq $((0xffff)) ] && {
                leddc=0x005a000a;
        }