* mark python sqlite DEP opt and update .cache
[t2sde.git] / package / kernel / linux / eth-naming.patch
blob77e3379da3af0a419c675e85a1c827f65c691799
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # T2 SDE: package/*/linux/eth-naming.patch
3 # Copyright (C) 2006 - 2024 The T2 SDE Project
4 #
5 # This Copyright note is generated by scripts/Create-CopyPatch,
6 # more information can be found in the files COPYING and README.
7 #
8 # This patch file is dual-licensed. It is available under the license the
9 # patched project is licensed under, as long as it is an OpenSource license
10 # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
11 # of the GNU General Public License version 2 as used by the T2 SDE.
12 # --- T2-COPYRIGHT-NOTE-END ---
14 Ever chaning wlan^Wwifi^Weth interface names do not only annoy users, but
15 also prevent reusing configuration from one machine to another.
17 Sanitze naming to alway be wlan* regardless of who wrote the driver.
19 - Rene Rebe <rene@exactcode.de>
21 --- linux-4.12/drivers/net/wireless/marvell/mwifiex/main.c.vanilla 2017-07-06 14:02:56.949536458 +0200
22 +++ linux-4.12/drivers/net/wireless/marvell/mwifiex/main.c 2017-07-06 14:03:08.189536198 +0200
23 @@ -594,7 +594,7 @@
25 rtnl_lock();
26 /* Create station interface by default */
27 - wdev = mwifiex_add_virtual_intf(adapter->wiphy, "mlan%d", NET_NAME_ENUM,
28 + wdev = mwifiex_add_virtual_intf(adapter->wiphy, "wlan%d", NET_NAME_ENUM,
29 NL80211_IFTYPE_STATION, NULL);
30 if (IS_ERR(wdev)) {
31 mwifiex_dbg(adapter, ERROR,
32 --- linux-6.8/drivers/net/wireless/intersil/orinoco/main.c.vanilla 2024-05-05 19:52:17.931742115 +0200
33 +++ linux-6.8/drivers/net/wireless/intersil/orinoco/main.c 2024-05-05 19:52:33.644743371 +0200
34 @@ -2274,6 +2274,7 @@
35 dev->max_mtu = ORINOCO_MAX_MTU;
37 SET_NETDEV_DEV(dev, priv->dev);
38 + strcpy(dev->name, "wlan%d");
39 ret = register_netdev(dev);
40 if (ret)
41 goto fail;