madwifi: disable softled by default on pci devices (fixes #4484)
SVN-Revision: 20195
This commit is contained in:
parent
95a8e6a7dd
commit
f434771b7a
2 changed files with 19 additions and 1 deletions
|
@ -87,7 +87,7 @@ enable_atheros() {
|
|||
config_get_bool antdiv "$device" diversity
|
||||
config_get antrx "$device" rxantenna
|
||||
config_get anttx "$device" txantenna
|
||||
config_get_bool softled "$device" softled 1
|
||||
config_get_bool softled "$device" softled
|
||||
config_get antenna "$device" antenna
|
||||
|
||||
devname="$(cat /proc/sys/dev/$device/dev_name)"
|
||||
|
|
18
package/madwifi/patches/460-pci_softled_disable.patch
Normal file
18
package/madwifi/patches/460-pci_softled_disable.patch
Normal file
|
@ -0,0 +1,18 @@
|
|||
--- a/ath/if_ath_pci.c
|
||||
+++ b/ath/if_ath_pci.c
|
||||
@@ -264,6 +264,7 @@ ath_pci_probe(struct pci_dev *pdev, cons
|
||||
}
|
||||
}
|
||||
|
||||
+#if 0
|
||||
/*
|
||||
* Auto-enable soft led processing for IBM cards and for
|
||||
* 5211 minipci cards. Users can also manually enable/disable
|
||||
@@ -279,6 +280,7 @@ ath_pci_probe(struct pci_dev *pdev, cons
|
||||
sc->aps_sc.sc_softled = 1;
|
||||
sc->aps_sc.sc_ledpin = 1;
|
||||
}
|
||||
+#endif
|
||||
|
||||
if ((i = ath_attach(vdevice, dev, NULL)) != 0) {
|
||||
printk(KERN_ERR "%s: ath_attach failed: %d\n", dev_info, i);
|
Loading…
Reference in a new issue