diff options
Diffstat (limited to 'drivers/net/wireless/libertas/main.c')
-rw-r--r-- | drivers/net/wireless/libertas/main.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/wireless/libertas/main.c b/drivers/net/wireless/libertas/main.c index 89575e448015..8df1cfd5f93a 100644 --- a/drivers/net/wireless/libertas/main.c +++ b/drivers/net/wireless/libertas/main.c | |||
@@ -1176,7 +1176,7 @@ struct lbs_private *lbs_add_card(void *card, struct device *dmdev) | |||
1176 | /* Allocate an Ethernet device and register it */ | 1176 | /* Allocate an Ethernet device and register it */ |
1177 | dev = alloc_etherdev(sizeof(struct lbs_private)); | 1177 | dev = alloc_etherdev(sizeof(struct lbs_private)); |
1178 | if (!dev) { | 1178 | if (!dev) { |
1179 | lbs_pr_err("init ethX device failed\n"); | 1179 | lbs_pr_err("init wlanX device failed\n"); |
1180 | goto done; | 1180 | goto done; |
1181 | } | 1181 | } |
1182 | priv = netdev_priv(dev); | 1182 | priv = netdev_priv(dev); |
@@ -1204,6 +1204,7 @@ struct lbs_private *lbs_add_card(void *card, struct device *dmdev) | |||
1204 | SET_NETDEV_DEV(dev, dmdev); | 1204 | SET_NETDEV_DEV(dev, dmdev); |
1205 | 1205 | ||
1206 | priv->rtap_net_dev = NULL; | 1206 | priv->rtap_net_dev = NULL; |
1207 | strcpy(dev->name, "wlan%d"); | ||
1207 | 1208 | ||
1208 | lbs_deb_thread("Starting main thread...\n"); | 1209 | lbs_deb_thread("Starting main thread...\n"); |
1209 | init_waitqueue_head(&priv->waitq); | 1210 | init_waitqueue_head(&priv->waitq); |