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>


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41518 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
hauke 2014-07-05 22:55:40 +00:00
parent f184525f08
commit c24208f4cc
2 changed files with 15 additions and 0 deletions

View file

@ -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}