From: Stephen Hemminger <shemminger@vyatta.com>
To: johannes@sipsolutions.net, flamingice@sourmilk.net
Cc: linux-wireless@vger.kernel.org
Subject: [PATCH] mac80211: convert to net_device_ops
Date: Tue, 27 Jan 2009 05:29:25 +1100 [thread overview]
Message-ID: <20090127052926.44d3fd5f@s6510> (raw)
Convert to new net_device_ops in 2.6.28 and later.
Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
--- a/net/mac80211/iface.c 2009-01-17 12:27:00.000000000 +1100
+++ b/net/mac80211/iface.c 2009-01-25 21:03:03.737986092 +1100
@@ -569,18 +569,21 @@ static void ieee80211_set_multicast_list
dev_mc_sync(local->mdev, dev);
}
+static const struct net_device_ops ieee80211_netdev_ops = {
+ .ndo_open = ieee80211_open,
+ .ndo_stop = ieee80211_stop,
+ .ndo_start_xmit = ieee80211_subif_start_xmit,
+ .ndo_set_multicast_list = ieee80211_set_multicast_list,
+ .ndo_change_mtu = ieee80211_change_mtu,
+ .ndo_set_mac_address = eth_mac_addr,
+};
+
static void ieee80211_if_setup(struct net_device *dev)
{
ether_setup(dev);
- dev->hard_start_xmit = ieee80211_subif_start_xmit;
+ dev->netdev_ops = &ieee80211_netdev_ops;
dev->wireless_handlers = &ieee80211_iw_handler_def;
- dev->set_multicast_list = ieee80211_set_multicast_list;
- dev->change_mtu = ieee80211_change_mtu;
- dev->open = ieee80211_open;
- dev->stop = ieee80211_stop;
dev->destructor = free_netdev;
- /* we will validate the address ourselves in ->open */
- dev->validate_addr = NULL;
}
/*
* Called when the netdev is removed or, by the code below, before
next reply other threads:[~2009-01-26 18:30 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-01-26 18:29 Stephen Hemminger [this message]
2009-01-26 18:33 ` [PATCH] mac80211: convert to net_device_ops Johannes Berg
2009-01-30 11:17 ` Johannes Berg
2009-01-30 11:27 ` Johannes Berg
2009-01-30 11:27 ` Johannes Berg
2009-01-30 11:43 ` Kalle Valo
2009-01-30 18:36 ` John W. Linville
-- strict thread matches above, loose matches on Subject: below --
2009-01-30 12:35 Johannes Berg
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=20090127052926.44d3fd5f@s6510 \
--to=shemminger@vyatta.com \
--cc=flamingice@sourmilk.net \
--cc=johannes@sipsolutions.net \
--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.