broadcom-wl: fix two problems when more then one wifi card is available.
[openwrt/svn-archive/archive.git] / package / broadcom-wl / patches / 008-fix_virtual_interfaces.patch
1 --- a/driver/wl_linux.c
2 +++ b/driver/wl_linux.c
3 @@ -1541,6 +1541,8 @@ wl_add_if(wl_info_t *wl, struct wlc_if*
4 return NULL;
5 }
6
7 + wl_if_setup(wlif->dev);
8 +
9 sprintf(wlif->dev->name, "%s%d.%d", devname, wl->pub->unit, wlif->subunit);
10 if (remote)
11 bcopy(remote, &wlif->remote, ETHER_ADDR_LEN);