# --- T2-COPYRIGHT-BEGIN --- # t2/package/*/linux/eth-naming.patch # Copyright (C) 2006 - 2026 The T2 SDE Project # SPDX-License-Identifier: GPL-2.0 or patched project license # --- T2-COPYRIGHT-END --- Ever chaning wlan^Wwifi^Weth interface names do not only annoy users, but also prevent reusing configuration from one machine to another. Sanitze naming to alway be wlan* regardless of who wrote the driver. - Rene Rebe --- linux-4.12/drivers/net/wireless/marvell/mwifiex/main.c.vanilla 2017-07-06 14:02:56.949536458 +0200 +++ linux-4.12/drivers/net/wireless/marvell/mwifiex/main.c 2017-07-06 14:03:08.189536198 +0200 @@ -594,7 +594,7 @@ rtnl_lock(); /* Create station interface by default */ - wdev = mwifiex_add_virtual_intf(adapter->wiphy, "mlan%d", NET_NAME_ENUM, + wdev = mwifiex_add_virtual_intf(adapter->wiphy, "wlan%d", NET_NAME_ENUM, NL80211_IFTYPE_STATION, NULL); if (IS_ERR(wdev)) { mwifiex_dbg(adapter, ERROR, --- linux-6.8/drivers/net/wireless/intersil/orinoco/main.c.vanilla 2024-05-05 19:52:17.931742115 +0200 +++ linux-6.8/drivers/net/wireless/intersil/orinoco/main.c 2024-05-05 19:52:33.644743371 +0200 @@ -2274,6 +2274,7 @@ dev->max_mtu = ORINOCO_MAX_MTU; SET_NETDEV_DEV(dev, priv->dev); + strcpy(dev->name, "wlan%d"); ret = register_netdev(dev); if (ret) goto fail;