mirror of
https://github.com/hak5/wifipineapple-openwrt.git
synced 2025-10-29 16:57:19 +00:00
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
This commit is contained in:
@@ -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)"
|
||||
|
||||
Reference in New Issue
Block a user