Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 324775
b: refs/heads/master
c: 96bc8c7
h: refs/heads/master
i:
  324773: 83a657a
  324771: c4e9e59
  324767: 67b35ff
v: v3
  • Loading branch information
Priit Laes authored and Greg Kroah-Hartman committed Sep 4, 2012
1 parent 23cd463 commit 979ebc0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 28 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a1a18726f48f290f18608653b1babf2ab27bffd1
refs/heads/master: 96bc8c7ab85b0ed27190a66f05d1677953b8bfb3
27 changes: 0 additions & 27 deletions trunk/drivers/staging/csr/netdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,6 @@ struct uf_tx_packet_data {

#endif /* CONFIG_NET_SCHED */

#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,29)
static const struct net_device_ops uf_netdev_ops =
{
.ndo_open = uf_net_open,
Expand All @@ -173,7 +172,6 @@ static const struct net_device_ops uf_netdev_ops =
.ndo_set_rx_mode = uf_set_multicast_list,
.ndo_select_queue = uf_net_select_queue,
};
#endif

static u8 oui_rfc1042[P80211_OUI_LEN] = { 0x00, 0x00, 0x00 };
static u8 oui_8021h[P80211_OUI_LEN] = { 0x00, 0x00, 0xf8 };
Expand Down Expand Up @@ -257,20 +255,7 @@ uf_alloc_netdevice(CsrSdioFunction *sdio_dev, int bus_id)
priv->interfacePriv[0] = interfacePriv;

/* Setup / override net_device fields */
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,29)
dev->netdev_ops = &uf_netdev_ops;
#else
dev->open = uf_net_open;
dev->stop = uf_net_stop;
dev->hard_start_xmit = uf_net_xmit;
dev->do_ioctl = uf_net_ioctl;

/* called by /proc/net/dev */
dev->get_stats = uf_net_get_stats;

dev->set_multicast_list = uf_set_multicast_list;
dev->select_queue = uf_net_select_queue;
#endif

#ifdef CSR_SUPPORT_WEXT
dev->wireless_handlers = &unifi_iw_handler_def;
Expand Down Expand Up @@ -504,19 +489,7 @@ uf_alloc_netdevice_for_other_interfaces(unifi_priv_t *priv, u16 interfaceTag)
INIT_LIST_HEAD(&interfacePriv->rx_controlled_list);

/* Setup / override net_device fields */
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,29)
dev->netdev_ops = &uf_netdev_ops;
#else
dev->open = uf_net_open;
dev->stop = uf_net_stop;
dev->hard_start_xmit = uf_net_xmit;
dev->do_ioctl = uf_net_ioctl;

/* called by /proc/net/dev */
dev->get_stats = uf_net_get_stats;

dev->set_multicast_list = uf_set_multicast_list;
#endif

#ifdef CSR_SUPPORT_WEXT
dev->wireless_handlers = &unifi_iw_handler_def;
Expand Down

0 comments on commit 979ebc0

Please sign in to comment.