1 commit 2e302ebfeac04beb5a5d6af1ac583c6a1fb76d1a
2 Author: chas williams - CONTRACTOR <chas@cmf.nrl.navy.mil>
3 Date: Fri Dec 4 11:06:32 2009 +0000
5 atm: [br2684] allow routed mode operation again
7 in routed mode, we don't have a hardware address so netdev_ops doesnt
8 need to validate our hardware address via .ndo_validate_addr
10 Reported-by: Manuel Fuentes <mfuentes@agenciaefe.com>
11 Signed-off-by: Chas Williams - CONTRACTOR <chas@cmf.nrl.navy.mil>
12 Signed-off-by: David S. Miller <davem@davemloft.net>
14 --- a/net/atm/br2684.c
15 +++ b/net/atm/br2684.c
16 @@ -536,6 +536,12 @@ static const struct net_device_ops br268
17 .ndo_validate_addr = eth_validate_addr,
20 +static const struct net_device_ops br2684_netdev_ops_routed = {
21 + .ndo_start_xmit = br2684_start_xmit,
22 + .ndo_set_mac_address = br2684_mac_addr,
23 + .ndo_change_mtu = eth_change_mtu
26 static void br2684_setup(struct net_device *netdev)
28 struct br2684_dev *brdev = BRPRIV(netdev);
29 @@ -551,11 +557,10 @@ static void br2684_setup(struct net_devi
30 static void br2684_setup_routed(struct net_device *netdev)
32 struct br2684_dev *brdev = BRPRIV(netdev);
33 - brdev->net_dev = netdev;
35 + brdev->net_dev = netdev;
36 netdev->hard_header_len = 0;
38 - netdev->netdev_ops = &br2684_netdev_ops;
39 + netdev->netdev_ops = &br2684_netdev_ops_routed;
42 netdev->type = ARPHRD_PPP;