Ticket #990: madwifi_softled.patch

File madwifi_softled.patch, 1.5 kB (added by deller@gmx.de, 6 years ago)

patch to enable softleds on HP compaq notebooks

  • ath/if_ath_pci.c

    old new  
    220220                        break; 
    221221                } 
    222222        } 
     223 
     224        /* enable softled on PIN1 on HP Compaq nc6xx, nc4000 & nx5000 laptops */ 
     225        if (pdev->subsystem_vendor == PCI_VENDOR_ID_COMPAQ) { 
     226                sc->aps_sc.sc_softled = 1; 
     227                sc->aps_sc.sc_ledpin = 1; 
     228        } 
     229 
    223230        if (ath_attach(vdevice, dev, NULL) != 0) 
    224231                goto bad4; 
    225232 
  • ath/if_ath.c

    old new  
    648648         * 5211 minipci cards.  Users can also manually enable/disable 
    649649         * support with a sysctl. 
    650650         */ 
    651         sc->sc_softled = (devid == AR5212_DEVID_IBM || devid == AR5211_DEVID); 
     651        if (devid == AR5212_DEVID_IBM || devid == AR5211_DEVID) 
     652                sc->sc_softled = 1; 
    652653        if (sc->sc_softled) { 
    653654                ath_hal_gpioCfgOutput(ah, sc->sc_ledpin); 
    654655                ath_hal_gpioset(ah, sc->sc_ledpin, !sc->sc_ledon);