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.

141 lines
5.1 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../at76c503a/linux-2.6.17.patch
  5. # Copyright (C) 2006 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. # --- SDE-COPYRIGHT-NOTE-END ---
  16. --- at76c503a/at76c503-fw_skel.c.vanilla 2006-07-01 16:41:07.000000000 +0000
  17. +++ at76c503a/at76c503-fw_skel.c 2006-07-01 17:03:19.000000000 +0000
  18. @@ -56,13 +58,12 @@
  19. /* Module paramaters */
  20. static char netdev_name[IFNAMSIZ+1] = "eth%d";
  21. -MODULE_PARM(netdev_name, "c" __MODULE_STRING(IFNAMSIZ));
  22. +module_param(netdev_name, charp, 0);
  23. MODULE_PARM_DESC(netdev_name,
  24. "network device name (default is eth%d)");
  25. static int debug = 1;
  26. -MODULE_PARM(debug, "i");
  27. -MODULE_PARM_DESC(debug,
  28. - "debug output (default: 1)");
  29. +module_param(debug, int, 0);
  30. +MODULE_PARM_DESC(debug, "debug output (default: 1)");
  31. /* Use our own dbg macro */
  32. #undef dbg
  33. --- at76c503a/at76c503.c.vanilla 2006-07-01 17:04:21.000000000 +0000
  34. +++ at76c503a/at76c503.c 2006-07-01 17:13:11.000000000 +0000
  35. @@ -310,60 +310,60 @@
  36. #define DRIVER_DESC "Generic Atmel at76c503/at76c505 routines"
  37. /* Module paramaters */
  38. -MODULE_PARM(debug, "i");
  39. +module_param(debug, int, 0);
  40. #define DRIVER_AUTHOR \
  41. "Oliver Kurth, Joerg Albert <joerg.albert@gmx.de>, Alex, Nick Jones, "\
  42. "Balint Seeber <n0_5p4m_p13453@hotmail.com>"
  43. MODULE_PARM_DESC(debug, "Debugging level");
  44. static int rx_copybreak = 200;
  45. -MODULE_PARM(rx_copybreak, "i");
  46. +module_param(rx_copybreak, int, 0);
  47. MODULE_PARM_DESC(rx_copybreak, "rx packet copy threshold");
  48. static int scan_min_time = 10;
  49. -MODULE_PARM(scan_min_time, "i");
  50. +module_param(scan_min_time, int, 0);
  51. MODULE_PARM_DESC(scan_min_time, "scan min channel time (default: 10)");
  52. static int scan_max_time = 120;
  53. -MODULE_PARM(scan_max_time, "i");
  54. +module_param(scan_max_time, int, 0);
  55. MODULE_PARM_DESC(scan_max_time, "scan max channel time (default: 120)");
  56. static int scan_mode = SCAN_TYPE_ACTIVE;
  57. -MODULE_PARM(scan_mode, "i");
  58. +module_param(scan_mode, int, 0);
  59. MODULE_PARM_DESC(scan_mode, "scan mode: 0 active (with ProbeReq, default), 1 passive");
  60. static int preamble_type = PREAMBLE_TYPE_LONG;
  61. -MODULE_PARM(preamble_type, "i");
  62. +module_param (preamble_type, int, 0);
  63. MODULE_PARM_DESC(preamble_type, "preamble type: 0 long (default), 1 short");
  64. static int auth_mode = 0;
  65. -MODULE_PARM(auth_mode, "i");
  66. +module_param(auth_mode, int, 0);
  67. MODULE_PARM_DESC(auth_mode, "authentication mode: 0 open system (default), "
  68. "1 shared secret");
  69. static int pm_mode = PM_ACTIVE;
  70. -MODULE_PARM(pm_mode, "i");
  71. +module_param(pm_mode, int, 0);
  72. MODULE_PARM_DESC(pm_mode, "power management mode: 1 active (def.), 2 powersave, 3 smart save");
  73. static int pm_period = 0;
  74. -MODULE_PARM(pm_period, "i");
  75. +module_param(pm_period, int, 0);
  76. MODULE_PARM_DESC(pm_period, "period of waking up the device in usec");
  77. static int international_roaming = IR_OFF;
  78. -MODULE_PARM(international_roaming, "i");
  79. +module_param(international_roaming, int, 0);
  80. MODULE_PARM_DESC(international_roaming, "enable international roaming: 0 (no, default), 1 (yes)");
  81. static int default_iw_mode = IW_MODE_INFRA;
  82. -MODULE_PARM(default_iw_mode, "i");
  83. +module_param(default_iw_mode, int, 0);
  84. MODULE_PARM_DESC(default_iw_mode, "default IW mode for a new device: "
  85. "1 (ad-hoc), 2 (infrastructure, def.), 6 (monitor mode)");
  86. static int monitor_scan_min_time = 50;
  87. -MODULE_PARM(monitor_scan_min_time, "i");
  88. +module_param(monitor_scan_min_time, int, 0);
  89. MODULE_PARM_DESC(monitor_scan_min_time, "scan min channel time in MONITOR MODE (default: 50)");
  90. static int monitor_scan_max_time = 600;
  91. -MODULE_PARM(monitor_scan_max_time, "i");
  92. +module_param(monitor_scan_max_time, int, 0);
  93. MODULE_PARM_DESC(monitor_scan_max_time, "scan max channel time in MONITOR MODE (default: 600)");
  94. #define DEF_RTS_THRESHOLD 1536
  95. @@ -7155,14 +7155,14 @@
  96. dbg(DBG_PROC_ENTRY, "%s: ENTER",__FUNCTION__);
  97. if (dev->flags & AT76C503A_NETDEV_REGISTERED) {
  98. - if ((sem_taken=down_trylock(&rtnl_sem)) != 0)
  99. - info("%s: rtnl_sem already down'ed", __FUNCTION__);
  100. + //if ((sem_taken=down_trylock(&rtnl_sem)) != 0)
  101. + // info("%s: rtnl_sem already down'ed", __FUNCTION__);
  102. /* synchronously calls at76c503_stop() */
  103. unregister_netdevice(dev->netdev);
  104. - if (!sem_taken)
  105. - rtnl_unlock();
  106. + //if (!sem_taken)
  107. + // rtnl_unlock();
  108. }
  109. PUT_DEV(dev->udev);
  110. --- at76c503a/at76_usbdfu.c.vanilla 2006-07-01 17:13:58.000000000 +0000
  111. +++ at76c503a/at76_usbdfu.c 2006-07-01 17:14:08.000000000 +0000
  112. @@ -57,7 +57,7 @@
  113. #define DRIVER_DESC "USB Device Firmware Upgrade (DFU) handler"
  114. /* Module paramaters */
  115. -MODULE_PARM(debug, "i");
  116. +module_param(debug, int, 0);
  117. MODULE_PARM_DESC(debug, "debug enabled (=1)");
  118. /* DFU states */