All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stephen Hemminger <shemminger@vyatta.com>
To: linux-wireless@vger.kernel.org
Subject: [PATCH] hostap: convert to net_device_ops
Date: Tue, 27 Jan 2009 05:33:57 +1100	[thread overview]
Message-ID: <20090127053357.689baabe@s6510> (raw)

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");

             reply	other threads:[~2009-01-26 18:34 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-26 18:33 Stephen Hemminger [this message]
2009-01-26 18:44 ` [PATCH] hostap: convert to net_device_ops Gábor Stefanik

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20090127053357.689baabe@s6510 \
    --to=shemminger@vyatta.com \
    --cc=linux-wireless@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.