aboutsummaryrefslogtreecommitdiffstats
path: root/package/kernel/broadcom-wl/files
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@hauke-m.de>2014-07-05 23:24:41 +0000
committerHauke Mehrtens <hauke@hauke-m.de>2014-07-05 23:24:41 +0000
commitd6c7ab235879fcc7e2c28d973d717af7e961ea4a (patch)
tree68a623a1626b380e0c318d5328ad8672fada6290 /package/kernel/broadcom-wl/files
parent4ec890866929ac48773791b3a9d78a169d504bae (diff)
downloadupstream-d6c7ab235879fcc7e2c28d973d717af7e961ea4a.tar.gz
upstream-d6c7ab235879fcc7e2c28d973d717af7e961ea4a.tar.bz2
upstream-d6c7ab235879fcc7e2c28d973d717af7e961ea4a.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> SVN-Revision: 41519
Diffstat (limited to 'package/kernel/broadcom-wl/files')
-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)"