Debian Codegraph @

patches/acx-20070101.patch

raw
1 diff -Naur acx_orig/common.c acx_rawtx/common.c
2 --- acx_orig/common.c 2007-01-10 22:15:27.000000000 +0100
3 +++ acx_rawtx/common.c 2007-05-20 12:58:55.000000000 +0200
4 @@ -3180,6 +3180,14 @@
5 goto end;
6 }
7
8 + if(unlikely(skb->len < 24)) {
9 + /* silently drop the packet, since fw won't send it */
10 + txresult = OK;
11 + /* ...but indicate an error nevertheless */
12 + adev->stats.tx_errors++;
13 + goto end;
14 + }
15 +
16 tx = acx_l_alloc_tx(adev);
17 if (unlikely(!tx)) {
18 printk_ratelimited("%s: start_xmit: txdesc ring is full, "
19 diff -Naur acx_orig/pci.c acx_rawtx/pci.c
20 --- acx_orig/pci.c 2007-01-10 13:27:16.000000000 +0100
21 +++ acx_rawtx/pci.c 2007-05-20 12:58:55.000000000 +0200
22 @@ -1992,7 +1992,12 @@
23 acx_set_status(adev, ACX_STATUS_1_SCANNING); break;
24 case ACX_MODE_3_AP:
25 case ACX_MODE_MONITOR:
26 - acx_set_status(adev, ACX_STATUS_4_ASSOCIATED); break;
27 + acx_set_status(adev, ACX_STATUS_4_ASSOCIATED);
28 + adev->msdu_lifetime = 0;/* no lifetime at all */
29 + adev->short_retry = 0; /* no retries for (short) non-RTS packets */
30 + adev->long_retry = 0; /* no retries for long (RTS) packets */
31 +
32 + break;
33 }
34
35 acx_s_start(adev);
36 @@ -3387,12 +3392,14 @@
37 break;
38 }
39 adev->stats.tx_errors++;
40 +#if 0
41 if (adev->stats.tx_errors <= 20)
42 printk("%s: tx error 0x%02X, buf %02u! (%s)\n",
43 adev->ndev->name, error, finger, err);
44 else
45 printk("%s: tx error 0x%02X, buf %02u!\n",
46 adev->ndev->name, error, finger);
47 +#endif
48 }
49
50