summaryrefslogtreecommitdiff
path: root/package
diff options
context:
space:
mode:
authorMatteo Croce <rootkit85@yahoo.it>2007-09-17 00:08:24 +0000
committerMatteo Croce <rootkit85@yahoo.it>2007-09-17 00:08:24 +0000
commit16d7058facb0a7989eb47fc09ff4afca3f08ab7b (patch)
tree0164e0a53b816dcf39d7ee728518bce4d0374500 /package
parentf25342dd7fd6c5feef043e19239d1c412ebb25ff (diff)
downloadmtk-20170518-16d7058facb0a7989eb47fc09ff4afca3f08ab7b.zip
mtk-20170518-16d7058facb0a7989eb47fc09ff4afca3f08ab7b.tar.gz
mtk-20170518-16d7058facb0a7989eb47fc09ff4afca3f08ab7b.tar.bz2
disable powersave, vlynq can't handle this
SVN-Revision: 8818
Diffstat (limited to 'package')
-rw-r--r--package/acx-mac80211/patches/011-no_pm.patch32
-rw-r--r--package/acx/patches/011-no_pm.patch33
2 files changed, 65 insertions, 0 deletions
diff --git a/package/acx-mac80211/patches/011-no_pm.patch b/package/acx-mac80211/patches/011-no_pm.patch
new file mode 100644
index 0000000..09a00b0
--- /dev/null
+++ b/package/acx-mac80211/patches/011-no_pm.patch
@@ -0,0 +1,32 @@
+--- acx-mac80211-20070610/pci.c 2007-06-10 20:23:27.000000000 +0200
++++ acx-mac80211-20070610.new/pci.c 2007-09-17 01:07:38.000000000 +0200
+@@ -1693,7 +1693,9 @@
+ /** done with board specific setup **/
+
+ /* need to be able to restore PCI state after a suspend */
++#ifdef CONFIG_PM
+ pci_save_state(pdev);
++#endif
+
+
+ acx_init_task_scheduler(adev);
+@@ -1740,7 +1742,9 @@
+ pci_disable_device(pdev);
+ fail_pci_enable_device:
+
++#ifdef CONFIG_PM
+ pci_set_power_state(pdev, PCI_D3hot);
++#endif
+ fail_register_netdev:
+ ieee80211_free_hw(ieee);
+ done:
+@@ -1872,7 +1876,9 @@
+ ieee80211_free_hw(adev->ieee);
+
+ /* put device into ACPI D3 mode (shutdown) */
++#ifdef CONFIG_PM
+ pci_set_power_state(pdev, PCI_D3hot);
++#endif
+ // kfree(ieee);
+ end:
+ FN_EXIT0;
diff --git a/package/acx/patches/011-no_pm.patch b/package/acx/patches/011-no_pm.patch
new file mode 100644
index 0000000..d1d0feb
--- /dev/null
+++ b/package/acx/patches/011-no_pm.patch
@@ -0,0 +1,33 @@
+diff -ruN acx-20070610-old/pci.c acx-20070610-new/pci.c
+--- acx-20070610-old/pci.c 2007-09-16 17:57:55.000000000 +0200
++++ acx-20070610-new/pci.c 2007-09-16 17:59:25.000000000 +0200
+@@ -1630,7 +1630,9 @@
+ log(L_IRQ|L_INIT, "using IRQ %d\n", pdev->irq);
+
+ /* need to be able to restore PCI state after a suspend */
++#ifdef CONFIG_PM
+ pci_save_state(pdev);
++#endif
+ pci_set_drvdata(pdev, ndev);
+
+ /* ok, pci setup is finished, now start initializing the card */
+@@ -1728,7 +1730,9 @@
+ pci_disable_device(pdev);
+ fail_pci_enable_device:
+
++#ifdef CONFIG_PM
+ pci_set_power_state(pdev, PCI_D3hot);
++#endif
+
+ done:
+ FN_EXIT1(result);
+@@ -1848,7 +1852,9 @@
+ free_netdev(ndev);
+
+ /* put device into ACPI D3 mode (shutdown) */
++#ifdef CONFIG_PM
+ pci_set_power_state(pdev, PCI_D3hot);
++#endif
+
+ end:
+ FN_EXIT0;