aboutsummaryrefslogtreecommitdiffstats
path: root/package/kernel/broadcom-wl/files/lib
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@hauke-m.de>2014-07-05 22:55:40 +0000
committerHauke Mehrtens <hauke@hauke-m.de>2014-07-05 22:55:40 +0000
commit4ec890866929ac48773791b3a9d78a169d504bae (patch)
tree20d6ccc52e8650801bd8ef80da2258b1d4317cbb /package/kernel/broadcom-wl/files/lib
parent8e4efd42d98bbb5b5c4d891db3b889cb02dced01 (diff)
downloadupstream-4ec890866929ac48773791b3a9d78a169d504bae.tar.gz
upstream-4ec890866929ac48773791b3a9d78a169d504bae.tar.bz2
upstream-4ec890866929ac48773791b3a9d78a169d504bae.zip
broadcom-wl: fix led support
Some devices have an nvram setting, which make broadcom-wl turn of the led all the time. When the driver is switched on and we find such a setting we replace it with a better value. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> SVN-Revision: 41518
Diffstat (limited to 'package/kernel/broadcom-wl/files/lib')
-rw-r--r--package/kernel/broadcom-wl/files/lib/wifi/broadcom.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/package/kernel/broadcom-wl/files/lib/wifi/broadcom.sh b/package/kernel/broadcom-wl/files/lib/wifi/broadcom.sh
index ba31518c1f..df5072c5b0 100644
--- a/package/kernel/broadcom-wl/files/lib/wifi/broadcom.sh
+++ b/package/kernel/broadcom-wl/files/lib/wifi/broadcom.sh
@@ -120,6 +120,7 @@ disable_broadcom() {
wlc ifname "$device" stdin <<EOF
$ifdown
+leddc 0xffff
EOF
)
true
@@ -207,6 +208,11 @@ enable_broadcom() {
esac
}
+ local leddc = $(wlc ifname "$device" leddc)
+ if [ "$leddc" -eq 0xffff ]; then
+ leddc = 0x0;
+ fi
+
local _c=0
local nas="$(which nas)"
local if_pre_up if_up nas_cmd
@@ -384,6 +390,7 @@ band ${band:-0}
${nmode:+nmode $nmode}
${nmode:+${nreqd:+nreqd $nreqd}}
${gmode:+gmode $gmode}
+leddc $leddc
apsta $apsta
ap $ap
${mssid:+mssid $mssid}