[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1250000012-25673-1-git-send-email-daniel@caiaq.de>
Date: Tue, 11 Aug 2009 16:13:32 +0200
From: Daniel Mack <daniel@...aq.de>
To: libertas-dev@...ts.infradead.org
Cc: Daniel Mack <daniel@...aq.de>, Roel Kluin <roel.kluin@...il.com>,
"John W. Linville" <linville@...driver.com>, netdev@...r.kernel.org
Subject: [PATCH] libertas: name the network device wlan%d
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@...aq.de>
Cc: Roel Kluin <roel.kluin@...il.com>
Cc: John W. Linville <linville@...driver.com>
Cc: netdev@...r.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
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists