2012-11-25 20:11:15 +00:00
|
|
|
--- a/driver/wl_linux.c
|
|
|
|
+++ b/driver/wl_linux.c
|
2013-11-11 22:03:58 +00:00
|
|
|
@@ -1416,7 +1416,7 @@ wl_alloc_if(wl_info_t *wl, int iftype, u
|
2012-11-25 20:11:15 +00:00
|
|
|
dev = alloc_etherdev(sizeof(wl_if_t));
|
|
|
|
wlif = netdev_priv(dev);
|
|
|
|
bzero(wlif, sizeof(wl_if_t));
|
|
|
|
- strncpy(dev->name, name, IFNAMSIZ);
|
|
|
|
+ snprintf(dev->name, IFNAMSIZ, name, subunit);
|
|
|
|
|
|
|
|
wlif->type = iftype;
|
|
|
|
wlif->dev = dev;
|