From: Hauke Mehrtens Date: Sat, 5 Jul 2014 23:24:41 +0000 (+0000) Subject: broadcom-wl: improve setting leddc X-Git-Tag: reboot~6646 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=d6c7ab235879fcc7e2c28d973d717af7e961ea4a;p=openwrt%2Fstaging%2Flynxis.git broadcom-wl: improve setting leddc Use leddc value from other routers and improve the script. Signed-off-by: Hauke Mehrtens SVN-Revision: 41519 --- diff --git a/package/kernel/broadcom-wl/files/lib/wifi/broadcom.sh b/package/kernel/broadcom-wl/files/lib/wifi/broadcom.sh index df5072c5b0..c5c0edebf8 100644 --- a/package/kernel/broadcom-wl/files/lib/wifi/broadcom.sh +++ b/package/kernel/broadcom-wl/files/lib/wifi/broadcom.sh @@ -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)"