OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

44 lines
1.9 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../linux/eth-naming.patch
  5. # Copyright (C) 2015 The OpenSDE Project
  6. # Copyright (C) 2006 The T2 SDE Project
  7. #
  8. # More information can be found in the files COPYING and README.
  9. #
  10. # This patch file is dual-licensed. It is available under the license the
  11. # patched project is licensed under, as long as it is an OpenSource license
  12. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  13. # of the GNU General Public License as published by the Free Software
  14. # Foundation; either version 2 of the License, or (at your option) any later
  15. # version.
  16. # --- SDE-COPYRIGHT-NOTE-END ---
  17. diff -ur linux-2.6.16/drivers/net/wireless/hostap/hostap_hw.c linux-2.6.16/drivers/net/wireless-unified/hostap/hostap_hw.c
  18. --- linux-2.6.16/drivers/net/wireless/hostap/hostap_hw.c 2006-03-20 06:53:29.000000000 +0100
  19. +++ linux-2.6.16/drivers/net/wireless-unified/hostap/hostap_hw.c 2006-06-06 17:26:58.000000000 +0200
  20. @@ -82,10 +82,10 @@
  21. module_param_array(dtim_period, int, NULL, 0444);
  22. MODULE_PARM_DESC(dtim_period, "DTIM period");
  23. -static char dev_template[16] = "wlan%d";
  24. +static char dev_template[16] = "eth%d";
  25. module_param_string(dev_template, dev_template, sizeof(dev_template), 0444);
  26. MODULE_PARM_DESC(dev_template, "Prefix for network device name (default: "
  27. - "wlan%d)");
  28. + "eth%d)");
  29. #ifdef final_version
  30. #define EXTRA_EVENTS_WTERR 0
  31. --- linux-3.18/drivers/net/wireless/airo.c.orig 2014-12-07 23:21:05.000000000 +0100
  32. +++ linux-3.18/drivers/net/wireless/airo.c 2015-02-11 18:36:26.014467875 +0100
  33. @@ -2685,7 +2685,7 @@
  34. struct net_device *ethdev)
  35. {
  36. int err;
  37. - struct net_device *dev = alloc_netdev(0, "wifi%d", NET_NAME_UNKNOWN,
  38. + struct net_device *dev = alloc_netdev(0, "eth%d", NET_NAME_UNKNOWN,
  39. wifi_setup);
  40. if (!dev)
  41. return NULL;