Dash:
[t2-trunk.git] / architecture / riscv / package / linux / eth-naming.patch
blobbfbae5f3bbd65feb196d0aaad44070713f976e09
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by scripts/Create-CopyPatch.
3 #
4 # T2 SDE: architecture/riscv/package/*/eth-naming.patch
5 # Copyright (C) 2006 - 2021 The T2 SDE Project
6 #
7 # More information can be found in the files COPYING and README.
8 #
9 # This patch file is dual-licensed. It is available under the license the
10 # patched project is licensed under, as long as it is an OpenSource license
11 # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
12 # of the GNU General Public License as published by the Free Software
13 # Foundation; either version 2 of the License, or (at your option) any later
14 # version.
15 # --- T2-COPYRIGHT-NOTE-END ---
17 Ever chaning wlan^Wwifi^Weth interface names do not only annoy users, but
18 also prevent reusing configuration from one machine to another.
20 Sanitze naming to alway be wlan* regardless of who wrote the driver.
22 - Rene Rebe <rene@exactcode.de>
24 --- linux-3.17/drivers/net/wireless/cisco/airo.c.vanilla 2014-10-08 19:13:40.933902715 +0000
25 +++ linux-3.17/drivers/net/wireless/cisco/airo.c 2014-10-08 19:15:20.797903310 +0000
26 @@ -2685,7 +2685,7 @@
27 struct net_device *ethdev)
29 int err;
30 - struct net_device *dev = alloc_netdev(0, "wifi%d", NET_NAME_UNKNOWN,
31 + struct net_device *dev = alloc_netdev(0, "wlan%d", NET_NAME_UNKNOWN,
32 wifi_setup);
33 if (!dev)
34 return NULL;
35 --- linux-4.12/drivers/net/wireless/marvell/mwifiex/main.c.vanilla 2017-07-06 14:02:56.949536458 +0200
36 +++ linux-4.12/drivers/net/wireless/marvell/mwifiex/main.c 2017-07-06 14:03:08.189536198 +0200
37 @@ -594,7 +594,7 @@
39 rtnl_lock();
40 /* Create station interface by default */
41 - wdev = mwifiex_add_virtual_intf(adapter->wiphy, "mlan%d", NET_NAME_ENUM,
42 + wdev = mwifiex_add_virtual_intf(adapter->wiphy, "wlan%d", NET_NAME_ENUM,
43 NL80211_IFTYPE_STATION, NULL);
44 if (IS_ERR(wdev)) {
45 mwifiex_dbg(adapter, ERROR,
46 --- linux-4.16/drivers/net/wireless/cisco/airo.c.vanilla 2018-05-24 14:00:33.388748630 +0000
47 +++ linux-4.16/drivers/net/wireless/cisco/airo.c 2018-05-24 14:01:30.184749916 +0000
48 @@ -2846,7 +2846,7 @@
49 set_bit(FLAG_FLASHING, &ai->flags);
52 - strcpy(dev->name, "eth%d");
53 + strcpy(dev->name, "wlan%d");
54 rc = register_netdev(dev);
55 if (rc) {
56 airo_print_err(dev->name, "Couldn't register_netdev");