netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] libertas: name the network device wlan%d
@ 2009-08-11 14:13 Daniel Mack
  2009-08-11 14:34 ` John W. Linville
       [not found] ` <20090811151051.GA18186@guralp.com>
  0 siblings, 2 replies; 8+ messages in thread
From: Daniel Mack @ 2009-08-11 14:13 UTC (permalink / raw)
  To: libertas-dev; +Cc: Daniel Mack, Roel Kluin, John W. Linville, netdev

Devices created by the libertas driver are currently called eth%d. Which
is wrong, because the device does not at all have anything to do with
Ethernet. And it is also confusing when used on devices with more than
one network device.

Fix this by calling it wlan%d.

Signed-off-by: Daniel Mack <daniel@caiaq.de>
Cc: Roel Kluin <roel.kluin@gmail.com>
Cc: John W. Linville <linville@tuxdriver.com>
Cc: netdev@vger.kernel.org
---
 drivers/net/wireless/libertas/main.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/drivers/net/wireless/libertas/main.c b/drivers/net/wireless/libertas/main.c
index 89575e4..584022f 100644
--- a/drivers/net/wireless/libertas/main.c
+++ b/drivers/net/wireless/libertas/main.c
@@ -1204,6 +1204,7 @@ struct lbs_private *lbs_add_card(void *card, struct device *dmdev)
 	SET_NETDEV_DEV(dev, dmdev);
 
 	priv->rtap_net_dev = NULL;
+	strcpy(dev->name, "wlan%d");
 
 	lbs_deb_thread("Starting main thread...\n");
 	init_waitqueue_head(&priv->waitq);
-- 
1.6.3.3


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

end of thread, other threads:[~2009-08-13 17:29 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-11 14:13 [PATCH] libertas: name the network device wlan%d Daniel Mack
2009-08-11 14:34 ` John W. Linville
2009-08-12  7:56   ` Bob Dunlop
2009-08-12  8:55     ` Daniel Mack
2009-08-12 16:31   ` Dan Williams
2009-08-13  3:48     ` Daniel Drake
2009-08-13 17:28       ` Dan Williams
     [not found] ` <20090811151051.GA18186@guralp.com>
2009-08-11 15:33   ` Daniel Mack

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).