diff options
author | Hauke Mehrtens <hauke@hauke-m.de> | 2013-11-11 21:57:26 +0000 |
---|---|---|
committer | Hauke Mehrtens <hauke@hauke-m.de> | 2013-11-11 21:57:26 +0000 |
commit | cac4ccca2f064a29c640db2eba90b7f8de271a41 (patch) | |
tree | 9c6a85bddbf5ae2f2a3ed8e395c2a718a06dab98 /package/kernel/broadcom-wl/patches | |
parent | c36d24ec823fb600bc9eb7ccb53e495c0fea531f (diff) | |
download | mtk-20170518-cac4ccca2f064a29c640db2eba90b7f8de271a41.zip mtk-20170518-cac4ccca2f064a29c640db2eba90b7f8de271a41.tar.gz mtk-20170518-cac4ccca2f064a29c640db2eba90b7f8de271a41.tar.bz2 |
broadcom-wl: change interface names
'netifd' treats all devices with a "." in their name as vlan devices.
Modify the name of virtual/WDS interfaces created by broadcom-wl to use
a "-" instead of a ".", so they will be treated as simple devices
by 'netifd'.
Signed-off-by: Nathan Hintz <nlhintz@hotmail.com>
SVN-Revision: 38748
Diffstat (limited to 'package/kernel/broadcom-wl/patches')
-rw-r--r-- | package/kernel/broadcom-wl/patches/013-interface-name.patch | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/package/kernel/broadcom-wl/patches/013-interface-name.patch b/package/kernel/broadcom-wl/patches/013-interface-name.patch new file mode 100644 index 0000000..3a136de --- /dev/null +++ b/package/kernel/broadcom-wl/patches/013-interface-name.patch @@ -0,0 +1,11 @@ +--- 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); + |