broadcom-wl: improve setting leddc
authorHauke Mehrtens <hauke@hauke-m.de>
Sat, 5 Jul 2014 23:24:41 +0000 (23:24 +0000)
committerHauke Mehrtens <hauke@hauke-m.de>
Sat, 5 Jul 2014 23:24:41 +0000 (23:24 +0000)
Use leddc value from other routers and improve the script.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
SVN-Revision: 41519

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

index df5072c5b0992d833f1aa90950662f7c2532fde7..c5c0edebf8bc8488f0aafbdaad433d778b048916 100644 (file)
@@ -208,10 +208,10 @@ enable_broadcom() {
                esac
        }
 
-       local leddc = $(wlc ifname "$device" leddc)
-       if [ "$leddc" -eq 0xffff ]; then
-               leddc = 0x0;
-       fi
+       local leddc=$(wlc ifname "$device" leddc)
+       [ "$leddc" -eq 0xffff ] || {
+               leddc=0x005a000a;
+       }
 
        local _c=0
        local nas="$(which nas)"