2012-11-26 04:11:15 +08:00
|
|
|
--- a/driver/wl_linux.c
|
|
|
|
+++ b/driver/wl_linux.c
|
2013-11-12 06:03:58 +08:00
|
|
|
@@ -1416,7 +1416,7 @@ wl_alloc_if(wl_info_t *wl, int iftype, u
|
2012-11-26 04:11:15 +08: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;
|