diff options
Diffstat (limited to 'drivers/net/wireless/hostap/hostap_main.c')
-rw-r--r-- | drivers/net/wireless/hostap/hostap_main.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/drivers/net/wireless/hostap/hostap_main.c b/drivers/net/wireless/hostap/hostap_main.c index 25a2722c8a98..d5084829c9e5 100644 --- a/drivers/net/wireless/hostap/hostap_main.c +++ b/drivers/net/wireless/hostap/hostap_main.c | |||
@@ -79,13 +79,8 @@ struct net_device * hostap_add_interface(struct local_info *local, | |||
79 | if (!rtnl_locked) | 79 | if (!rtnl_locked) |
80 | rtnl_lock(); | 80 | rtnl_lock(); |
81 | 81 | ||
82 | ret = 0; | ||
83 | if (strchr(dev->name, '%')) | ||
84 | ret = dev_alloc_name(dev, dev->name); | ||
85 | |||
86 | SET_NETDEV_DEV(dev, mdev->dev.parent); | 82 | SET_NETDEV_DEV(dev, mdev->dev.parent); |
87 | if (ret >= 0) | 83 | ret = register_netdevice(dev); |
88 | ret = register_netdevice(dev); | ||
89 | 84 | ||
90 | if (!rtnl_locked) | 85 | if (!rtnl_locked) |
91 | rtnl_unlock(); | 86 | rtnl_unlock(); |
@@ -891,7 +886,6 @@ void hostap_setup_dev(struct net_device *dev, local_info_t *local, | |||
891 | 886 | ||
892 | SET_ETHTOOL_OPS(dev, &prism2_ethtool_ops); | 887 | SET_ETHTOOL_OPS(dev, &prism2_ethtool_ops); |
893 | 888 | ||
894 | netif_stop_queue(dev); | ||
895 | } | 889 | } |
896 | 890 | ||
897 | static int hostap_enable_hostapd(local_info_t *local, int rtnl_locked) | 891 | static int hostap_enable_hostapd(local_info_t *local, int rtnl_locked) |