1
0
mirror of https://git.openwrt.org/openwrt/openwrt.git synced 2024-06-13 18:53:52 +02:00

broadcom-wl: improve setting leddc

Use leddc value from other routers and improve the script.

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

SVN-Revision: 41519
This commit is contained in:
Hauke Mehrtens 2014-07-05 23:24:41 +00:00
parent 4ec8908669
commit d6c7ab2358

View 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)"