aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@openwrt.org>2014-07-05 23:24:41 +0000
committerHauke Mehrtens <hauke@openwrt.org>2014-07-05 23:24:41 +0000
commit7b6657b8ba50f058ac9fc955a741f5593ecc0812 (patch)
tree11090e2efefb4b983e34a34afce47dc6b72e25a8
parenta91dd18ada61fab16b1cd2a0cd701d94dd02057c (diff)
downloadupstream-7b6657b8ba50f058ac9fc955a741f5593ecc0812.tar.gz
upstream-7b6657b8ba50f058ac9fc955a741f5593ecc0812.tar.bz2
upstream-7b6657b8ba50f058ac9fc955a741f5593ecc0812.zip
broadcom-wl: improve setting leddc
Use leddc value from other routers and improve the script. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41519 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r--package/kernel/broadcom-wl/files/lib/wifi/broadcom.sh8
1 files changed, 4 insertions, 4 deletions
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)"