Changeset 41518


Ignore:
Timestamp:
2014-07-06T00:55:40+02:00 (4 years ago)
Author:
hauke
Message:

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

Location:
trunk/package/kernel/broadcom-wl
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/kernel/broadcom-wl/files/lib/wifi/broadcom.sh

    r40749 r41518  
    121121                wlc ifname "$device" stdin <<EOF 
    122122$ifdown 
     123leddc 0xffff 
    123124EOF 
    124125        ) 
     
    208209        } 
    209210 
     211        local leddc = $(wlc ifname "$device" leddc) 
     212        if [ "$leddc" -eq 0xffff ]; then 
     213                leddc = 0x0; 
     214        fi 
     215 
    210216        local _c=0 
    211217        local nas="$(which nas)" 
     
    385391${nmode:+${nreqd:+nreqd $nreqd}} 
    386392${gmode:+gmode $gmode} 
     393leddc $leddc 
    387394apsta $apsta 
    388395ap $ap 
  • trunk/package/kernel/broadcom-wl/src/wlc.c

    r38759 r41518  
    10001000                .desc = "Number of VIF's supported" 
    10011001        }, 
     1002        { 
     1003                .name = "leddc", 
     1004                .param = INT, 
     1005                .handler = wlc_iovar, 
     1006                .data.str = "leddc", 
     1007                .desc = "LED Duty Cycle" 
     1008        }, 
     1009         
    10021010}; 
    10031011#define wlc_calls_size (sizeof(wlc_calls) / sizeof(struct wlc_call)) 
Note: See TracChangeset for help on using the changeset viewer.