Ticket #990: madwifi_softled.patch
| File madwifi_softled.patch, 1.5 kB (added by deller@gmx.de, 6 years ago) |
|---|
-
ath/if_ath_pci.c
old new 220 220 break; 221 221 } 222 222 } 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 223 230 if (ath_attach(vdevice, dev, NULL) != 0) 224 231 goto bad4; 225 232 -
ath/if_ath.c
old new 648 648 * 5211 minipci cards. Users can also manually enable/disable 649 649 * support with a sysctl. 650 650 */ 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; 652 653 if (sc->sc_softled) { 653 654 ath_hal_gpioCfgOutput(ah, sc->sc_ledpin); 654 655 ath_hal_gpioset(ah, sc->sc_ledpin, !sc->sc_ledon);
