linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] hostap: convert to net_device_ops
@ 2009-01-26 18:33 Stephen Hemminger
  2009-01-26 18:44 ` Gábor Stefanik
  0 siblings, 1 reply; 2+ messages in thread
From: Stephen Hemminger @ 2009-01-26 18:33 UTC (permalink / raw)
  To: linux-wireless

Convert to net_device_ops, compile tested only.

--- a/drivers/net/wireless/hostap/hostap_hw.c	2009-01-07 03:03:33.000000000 +1100
+++ b/drivers/net/wireless/hostap/hostap_hw.c	2009-01-25 21:10:43.977634507 +1100
@@ -3075,6 +3075,13 @@ static void prism2_set_lockdep_class(str
 	netdev_for_each_tx_queue(dev, prism2_set_lockdep_class_one, NULL);
 }
 
+static const struct net_device_ops hostap_netdev_ops = {
+	.ndo_start_xmit 	= hostap_master_start_xmit,
+	.ndo_change_mtu		= eth_change_mtu,
+	.ndo_set_mac_address 	= eth_mac_addr,
+	.ndo_validate_addr	= eth_validate_addr,
+};
+
 static struct net_device *
 prism2_init_local_data(struct prism2_helper_functions *funcs, int card_idx,
 		       struct device *sdev)
@@ -3228,9 +3235,9 @@ while (0)
 
 	hostap_setup_dev(dev, local, HOSTAP_INTERFACE_MASTER);
 
-	dev->hard_start_xmit = hostap_master_start_xmit;
 	dev->type = ARPHRD_IEEE80211;
 	dev->header_ops = &hostap_80211_ops;
+	dev->netdev_ops = &hostap_netdev-ops;
 
 	rtnl_lock();
 	ret = dev_alloc_name(dev, "wifi%d");

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] hostap: convert to net_device_ops
  2009-01-26 18:33 [PATCH] hostap: convert to net_device_ops Stephen Hemminger
@ 2009-01-26 18:44 ` Gábor Stefanik
  0 siblings, 0 replies; 2+ messages in thread
From: Gábor Stefanik @ 2009-01-26 18:44 UTC (permalink / raw)
  To: Stephen Hemminger; +Cc: linux-wireless

On Mon, Jan 26, 2009 at 7:33 PM, Stephen Hemminger
<shemminger@vyatta.com> wrote:
> +       dev->netdev_ops = &hostap_netdev-ops;

I guess this should be
+       dev->netdev_ops = &hostap_netdev_ops;

-- 
Vista: [V]iruses, [I]ntruders, [S]pyware, [T]rojans and [A]dware. :-)

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-01-26 18:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-26 18:33 [PATCH] hostap: convert to net_device_ops Stephen Hemminger
2009-01-26 18:44 ` Gábor Stefanik

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).