openwrt/package/kernel/broadcom-wl/patches/013-interface-name.patch

12 lines
361 B
Diff
Raw Normal View History

--- a/driver/wl_linux.c
+++ b/driver/wl_linux.c
@@ -1556,7 +1556,7 @@ wl_add_if(wl_info_t *wl, struct wlc_if*
wl_if_setup(wlif->dev);
- sprintf(wlif->dev->name, "%s%d.%d", devname, wl->pub->unit, wlif->subunit);
+ sprintf(wlif->dev->name, "%s%d-%d", devname, wl->pub->unit, wlif->subunit);
if (remote)
bcopy(remote, &wlif->remote, ETHER_ADDR_LEN);