broadcom-wl: improve setting leddc
[openwrt/svn-archive/archive.git] / package / kernel / broadcom-wl / files / lib / wifi / broadcom.sh
index df5072c..c5c0ede 100644 (file)
@@ -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)"