summaryrefslogtreecommitdiff
path: root/package/madwifi/patches/460-pci_softled_disable.patch
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2010-03-14 12:25:23 +0000
committerFelix Fietkau <nbd@openwrt.org>2010-03-14 12:25:23 +0000
commitf434771b7a1f284e99dcf68c7e46f1ef2031c584 (patch)
treed8e200049dd7ff7210c5a31f0f5b4e92418a2075 /package/madwifi/patches/460-pci_softled_disable.patch
parent95a8e6a7dd1f0d70cb42f205b625f5cba839fc71 (diff)
downloadmtk-20170518-f434771b7a1f284e99dcf68c7e46f1ef2031c584.zip
mtk-20170518-f434771b7a1f284e99dcf68c7e46f1ef2031c584.tar.gz
mtk-20170518-f434771b7a1f284e99dcf68c7e46f1ef2031c584.tar.bz2
madwifi: disable softled by default on pci devices (fixes #4484)
SVN-Revision: 20195
Diffstat (limited to 'package/madwifi/patches/460-pci_softled_disable.patch')
-rw-r--r--package/madwifi/patches/460-pci_softled_disable.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/package/madwifi/patches/460-pci_softled_disable.patch b/package/madwifi/patches/460-pci_softled_disable.patch
new file mode 100644
index 0000000..328e8c3
--- /dev/null
+++ b/package/madwifi/patches/460-pci_softled_disable.patch
@@ -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);