Commit c00552c6 authored by Daniel Mack's avatar Daniel Mack Committed by John W. Linville

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: default avatarDaniel Mack <daniel@caiaq.de>
Cc: Roel Kluin <roel.kluin@gmail.com>
Acked-by: default avatarDan Williams <dcbw@redhat.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent cca89496
...@@ -1176,7 +1176,7 @@ struct lbs_private *lbs_add_card(void *card, struct device *dmdev) ...@@ -1176,7 +1176,7 @@ struct lbs_private *lbs_add_card(void *card, struct device *dmdev)
/* Allocate an Ethernet device and register it */ /* Allocate an Ethernet device and register it */
dev = alloc_etherdev(sizeof(struct lbs_private)); dev = alloc_etherdev(sizeof(struct lbs_private));
if (!dev) { if (!dev) {
lbs_pr_err("init ethX device failed\n"); lbs_pr_err("init wlanX device failed\n");
goto done; goto done;
} }
priv = netdev_priv(dev); priv = netdev_priv(dev);
...@@ -1204,6 +1204,7 @@ struct lbs_private *lbs_add_card(void *card, struct device *dmdev) ...@@ -1204,6 +1204,7 @@ struct lbs_private *lbs_add_card(void *card, struct device *dmdev)
SET_NETDEV_DEV(dev, dmdev); SET_NETDEV_DEV(dev, dmdev);
priv->rtap_net_dev = NULL; priv->rtap_net_dev = NULL;
strcpy(dev->name, "wlan%d");
lbs_deb_thread("Starting main thread...\n"); lbs_deb_thread("Starting main thread...\n");
init_waitqueue_head(&priv->waitq); init_waitqueue_head(&priv->waitq);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment