add acx-mac80211 (thanks to Matteo Croce)
[openwrt-10.03/.git] / package / acx-mac80211 / patches / 002-no_reset.diff
1 Index: acx-20070101/pci.c
2 ===================================================================
3 --- acx-20070101.orig/pci.c     2007-06-04 13:22:42.489395912 +0200
4 +++ acx-20070101/pci.c  2007-06-04 13:22:42.557385576 +0200
5 @@ -925,10 +925,13 @@
6  
7         acx_lock(adev, flags);
8  
9 -       acxpci_l_reset_mac(adev);
10 -
11         ecpu_ctrl = read_reg16(adev, IO_ACX_ECPU_CTRL) & 1;
12         if (!ecpu_ctrl) {
13 +               acxpci_l_reset_mac(adev);
14 +               ecpu_ctrl = read_reg16(adev, IO_ACX_ECPU_CTRL) & 1;
15 +       }
16 +
17 +       if (!ecpu_ctrl) {
18                 msg = "eCPU is already running. ";
19                 goto end_unlock;
20         }