[atheros] fix size calculation of the radio_config
[openwrt.git] / target / linux / atheros / patches-2.6.23 / 200-ar2313_enable_mvswitch.patch
1 Index: linux-2.6.23.16/drivers/net/ar2313/ar2313.c
2 ===================================================================
3 --- linux-2.6.23.16.orig/drivers/net/ar2313/ar2313.c 2008-04-29 14:51:39.000000000 +0200
4 +++ linux-2.6.23.16/drivers/net/ar2313/ar2313.c 2008-04-29 14:52:14.000000000 +0200
5 @@ -219,7 +219,7 @@
6 dev->do_ioctl = &ar2313_ioctl;
7
8 // SAMEER: do we need this?
9 - dev->features |= NETIF_F_SG | NETIF_F_HIGHDMA;
10 + dev->features |= NETIF_F_HIGHDMA | NETIF_F_HW_CSUM;
11
12 tasklet_init(&sp->rx_tasklet, rx_tasklet_func, (unsigned long) dev);
13 tasklet_disable(&sp->rx_tasklet);
14 @@ -953,9 +953,9 @@
15 ((status >> DMA_RX_LEN_SHIFT) & 0x3fff) - CRC_LEN);
16
17 dev->stats.rx_bytes += skb->len;
18 - skb->protocol = eth_type_trans(skb, dev);
19 +
20 /* pass the packet to upper layers */
21 - netif_rx(skb);
22 + sp->rx(skb);
23
24 skb_new->dev = dev;
25 /* 16 bit align */
26 @@ -1370,6 +1370,8 @@
27 return PTR_ERR(phydev);
28 }
29
30 + sp->rx = phydev->netif_rx;
31 +
32 /* mask with MAC supported features */
33 phydev->supported &= (SUPPORTED_10baseT_Half
34 | SUPPORTED_10baseT_Full
35 Index: linux-2.6.23.16/drivers/net/ar2313/ar2313.h
36 ===================================================================
37 --- linux-2.6.23.16.orig/drivers/net/ar2313/ar2313.h 2008-04-29 14:51:39.000000000 +0200
38 +++ linux-2.6.23.16/drivers/net/ar2313/ar2313.h 2008-04-29 14:52:15.000000000 +0200
39 @@ -107,6 +107,8 @@
40 */
41 struct ar2313_private {
42 struct net_device *dev;
43 + int (*rx)(struct sk_buff *skb);
44 +
45 int version;
46 u32 mb[2];
47
This page took 0.039854 seconds and 5 git commands to generate.