diff options
Diffstat (limited to 'drivers/net/wireless/hostap/hostap_hw.c')
-rw-r--r-- | drivers/net/wireless/hostap/hostap_hw.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/wireless/hostap/hostap_hw.c b/drivers/net/wireless/hostap/hostap_hw.c index 039ef7f61be..7572050db32 100644 --- a/drivers/net/wireless/hostap/hostap_hw.c +++ b/drivers/net/wireless/hostap/hostap_hw.c | |||
@@ -3268,7 +3268,8 @@ static void prism2_clear_set_tim_queue(local_info_t *local) | |||
3268 | 3268 | ||
3269 | 3269 | ||
3270 | static struct net_device * | 3270 | static struct net_device * |
3271 | prism2_init_local_data(struct prism2_helper_functions *funcs, int card_idx) | 3271 | prism2_init_local_data(struct prism2_helper_functions *funcs, int card_idx, |
3272 | struct device *sdev) | ||
3272 | { | 3273 | { |
3273 | struct net_device *dev; | 3274 | struct net_device *dev; |
3274 | struct hostap_interface *iface; | 3275 | struct hostap_interface *iface; |
@@ -3439,6 +3440,7 @@ while (0) | |||
3439 | 3440 | ||
3440 | rtnl_lock(); | 3441 | rtnl_lock(); |
3441 | ret = dev_alloc_name(dev, "wifi%d"); | 3442 | ret = dev_alloc_name(dev, "wifi%d"); |
3443 | SET_NETDEV_DEV(dev, sdev); | ||
3442 | if (ret >= 0) | 3444 | if (ret >= 0) |
3443 | ret = register_netdevice(dev); | 3445 | ret = register_netdevice(dev); |
3444 | rtnl_unlock(); | 3446 | rtnl_unlock(); |