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
wlc ifname "$device" stdin <<EOF
$ifdown
+leddc 0xffff
EOF
)
true
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
${nmode:+nmode $nmode}
${nmode:+${nreqd:+nreqd $nreqd}}
${gmode:+gmode $gmode}
+leddc $leddc
apsta $apsta
ap $ap
${mssid:+mssid $mssid}
.data.str = "cap",
.desc = "Number of VIF's supported"
},
+ {
+ .name = "leddc",
+ .param = INT,
+ .handler = wlc_iovar,
+ .data.str = "leddc",
+ .desc = "LED Duty Cycle"
+ },
+
};
#define wlc_calls_size (sizeof(wlc_calls) / sizeof(struct wlc_call))