diff options
author | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2010-03-14 12:25:23 +0000 |
---|---|---|
committer | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2010-03-14 12:25:23 +0000 |
commit | 60521a7fc852679890332b0d7696c0b0ccb2521e (patch) | |
tree | 39fd83783377400941ca699bcd8e19840d72fc72 /package | |
parent | c1819c7610a0b350e28e6c295dbb3c549bca91c4 (diff) |
madwifi: disable softled by default on pci devices (fixes #4484)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20195 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package')
-rwxr-xr-x | package/madwifi/files/lib/wifi/madwifi.sh | 2 | ||||
-rw-r--r-- | package/madwifi/patches/460-pci_softled_disable.patch | 18 |
2 files changed, 19 insertions, 1 deletions
diff --git a/package/madwifi/files/lib/wifi/madwifi.sh b/package/madwifi/files/lib/wifi/madwifi.sh index 29e9f37918..2b2e699d08 100755 --- a/package/madwifi/files/lib/wifi/madwifi.sh +++ b/package/madwifi/files/lib/wifi/madwifi.sh @@ -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)" 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 0000000000..328e8c3505 --- /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); |