3 @@ -94,7 +94,7 @@ static char *dev_info = "ath_pci";
4 * "new way" to do things, we may want to switch back to having
5 * the HAL check them by defining a probe method.
7 -static struct pci_device_id ath_pci_id_table[] __devinitdata = {
8 +static struct pci_device_id ath_pci_id_table[] = {
9 { 0x168c, 0x0007, PCI_ANY_ID, PCI_ANY_ID },
10 { 0x168c, 0x0012, PCI_ANY_ID, PCI_ANY_ID },
11 { 0x168c, 0x0013, PCI_ANY_ID, PCI_ANY_ID },
14 @@ -11615,228 +11615,190 @@ static int mincalibrate = 1; /* once a
15 static int maxint = 0x7fffffff; /* 32-bit big */
17 static const ctl_table ath_sysctl_template[] = {
18 - { .ctl_name = CTL_AUTO,
19 - .procname = "dev_vendor",
20 + { .procname = "dev_vendor",
22 .proc_handler = ath_sysctl_hwinfo,
23 - .strategy = &sysctl_string,
26 .extra2 = (void *)ATH_CARD_VENDOR,
28 - { .ctl_name = CTL_AUTO,
29 - .procname = "dev_name",
30 + { .procname = "dev_name",
32 .proc_handler = ath_sysctl_hwinfo,
33 - .strategy = &sysctl_string,
36 .extra2 = (void *)ATH_CARD_NAME,
38 - { .ctl_name = CTL_AUTO,
39 - .procname = "slottime",
40 + { .procname = "slottime",
42 .proc_handler = ath_sysctl_halparam,
43 .extra2 = (void *)ATH_SLOTTIME,
45 - { .ctl_name = CTL_AUTO,
46 - .procname = "acktimeout",
47 + { .procname = "acktimeout",
49 .proc_handler = ath_sysctl_halparam,
50 .extra2 = (void *)ATH_ACKTIMEOUT,
52 - { .ctl_name = CTL_AUTO,
53 - .procname = "ctstimeout",
54 + { .procname = "ctstimeout",
56 .proc_handler = ath_sysctl_halparam,
57 .extra2 = (void *)ATH_CTSTIMEOUT,
59 - { .ctl_name = CTL_AUTO,
60 - .procname = "distance",
61 + { .procname = "distance",
63 .proc_handler = ath_sysctl_halparam,
64 .extra2 = (void *)ATH_DISTANCE,
66 - { .ctl_name = CTL_AUTO,
67 - .procname = "silent",
68 + { .procname = "silent",
70 .proc_handler = ath_sysctl_halparam,
71 .extra2 = (void *)ATH_SILENT,
73 - { .ctl_name = CTL_AUTO,
74 - .procname = "softled",
75 + { .procname = "softled",
77 .proc_handler = ath_sysctl_halparam,
78 .extra2 = (void *)ATH_SOFTLED,
80 - { .ctl_name = CTL_AUTO,
81 - .procname = "ledpin",
82 + { .procname = "ledpin",
84 .proc_handler = ath_sysctl_halparam,
85 .extra2 = (void *)ATH_LEDPIN,
87 - { .ctl_name = CTL_AUTO,
88 - .procname = "countrycode",
89 + { .procname = "countrycode",
91 .proc_handler = ath_sysctl_halparam,
92 .extra2 = (void *)ATH_COUNTRYCODE,
94 - { .ctl_name = CTL_AUTO,
95 - .procname = "outdoor",
96 + { .procname = "outdoor",
98 .proc_handler = ath_sysctl_halparam,
99 .extra2 = (void *)ATH_OUTDOOR,
101 - { .ctl_name = CTL_AUTO,
102 - .procname = "regdomain",
103 + { .procname = "regdomain",
105 .proc_handler = ath_sysctl_halparam,
106 .extra2 = (void *)ATH_REGDOMAIN,
109 - { .ctl_name = CTL_AUTO,
110 - .procname = "debug",
111 + { .procname = "debug",
113 .proc_handler = ath_sysctl_halparam,
114 .extra2 = (void *)ATH_DEBUG,
117 - { .ctl_name = CTL_AUTO,
118 - .procname = "poweroffset",
119 + { .procname = "poweroffset",
121 .proc_handler = ath_sysctl_halparam,
122 .extra2 = (void *)ATH_POWEROFFSET,
124 - { .ctl_name = CTL_AUTO,
125 - .procname = "txantenna",
126 + { .procname = "txantenna",
128 .proc_handler = ath_sysctl_halparam,
129 .extra2 = (void *)ATH_TXANTENNA,
131 - { .ctl_name = CTL_AUTO,
132 - .procname = "rxantenna",
133 + { .procname = "rxantenna",
135 .proc_handler = ath_sysctl_halparam,
136 .extra2 = (void *)ATH_RXANTENNA,
138 - { .ctl_name = CTL_AUTO,
139 - .procname = "diversity",
140 + { .procname = "diversity",
142 .proc_handler = ath_sysctl_halparam,
143 .extra2 = (void *)ATH_DIVERSITY,
145 - { .ctl_name = CTL_AUTO,
146 - .procname = "txintrperiod",
147 + { .procname = "txintrperiod",
149 .proc_handler = ath_sysctl_halparam,
150 .extra2 = (void *)ATH_TXINTRPERIOD,
152 - { .ctl_name = CTL_AUTO,
153 - .procname = "fftxqmin",
154 + { .procname = "fftxqmin",
156 .proc_handler = ath_sysctl_halparam,
157 .extra2 = (void *)ATH_FFTXQMIN,
160 - { .ctl_name = CTL_AUTO,
161 - .procname = "xrpollperiod",
162 + { .procname = "xrpollperiod",
164 .proc_handler = ath_sysctl_halparam,
165 .extra2 = (void *)ATH_XR_POLL_PERIOD,
167 - { .ctl_name = CTL_AUTO,
168 - .procname = "xrpollcount",
169 + { .procname = "xrpollcount",
171 .proc_handler = ath_sysctl_halparam,
172 .extra2 = (void *)ATH_XR_POLL_COUNT,
175 - { .ctl_name = CTL_AUTO,
176 - .procname = "ackrate",
177 + { .procname = "ackrate",
179 .proc_handler = ath_sysctl_halparam,
180 .extra2 = (void *)ATH_ACKRATE,
182 - { .ctl_name = CTL_AUTO,
183 - .procname = "channelbw",
184 + { .procname = "channelbw",
186 .proc_handler = ath_sysctl_halparam,
187 .extra2 = (void *)ATH_CHANBW,
189 - { .ctl_name = CTL_AUTO,
191 + { .procname = "rp",
193 .proc_handler = ath_sysctl_halparam,
194 .extra2 = (void *)ATH_RP,
196 - { .ctl_name = CTL_AUTO,
197 - .procname = "radar_print",
198 + { .procname = "radar_print",
200 .proc_handler = ath_sysctl_halparam,
201 .extra2 = (void *)ATH_RP_PRINT,
203 - { .ctl_name = CTL_AUTO,
204 - .procname = "radar_print_all",
205 + { .procname = "radar_print_all",
207 .proc_handler = ath_sysctl_halparam,
208 .extra2 = (void *)ATH_RP_PRINT_ALL,
210 - { .ctl_name = CTL_AUTO,
211 - .procname = "radar_dump",
212 + { .procname = "radar_dump",
214 .proc_handler = ath_sysctl_halparam,
215 .extra2 = (void *)ATH_RP_PRINT_MEM,
217 - { .ctl_name = CTL_AUTO,
218 - .procname = "radar_dump_all",
219 + { .procname = "radar_dump_all",
221 .proc_handler = ath_sysctl_halparam,
222 .extra2 = (void *)ATH_RP_PRINT_MEM_ALL,
224 - { .ctl_name = CTL_AUTO,
225 - .procname = "rp_flush",
226 + { .procname = "rp_flush",
228 .proc_handler = ath_sysctl_halparam,
229 .extra2 = (void *)ATH_RP_FLUSH,
231 - { .ctl_name = CTL_AUTO,
232 - .procname = "panic",
233 + { .procname = "panic",
235 .proc_handler = ath_sysctl_halparam,
236 .extra2 = (void *)ATH_PANIC,
238 - { .ctl_name = CTL_AUTO,
239 - .procname = "rp_ignored",
240 + { .procname = "rp_ignored",
242 .proc_handler = ath_sysctl_halparam,
243 .extra2 = (void *)ATH_RP_IGNORED,
245 - { .ctl_name = CTL_AUTO,
246 - .procname = "radar_ignored",
247 + { .procname = "radar_ignored",
249 .proc_handler = ath_sysctl_halparam,
250 .extra2 = (void *)ATH_RADAR_IGNORED,
252 - { .ctl_name = CTL_AUTO,
253 - .procname = "intmit",
254 + { .procname = "intmit",
256 .proc_handler = ath_sysctl_halparam,
257 .extra2 = (void *)ATH_INTMIT,
259 - { .ctl_name = CTL_AUTO,
260 - .procname = "noise_immunity",
261 + { .procname = "noise_immunity",
263 .proc_handler = ath_sysctl_halparam,
264 .extra2 = (void *)ATH_NOISE_IMMUNITY,
266 - { .ctl_name = CTL_AUTO,
267 - .procname = "ofdm_weak_det",
268 + { .procname = "ofdm_weak_det",
270 .proc_handler = ath_sysctl_halparam,
271 .extra2 = (void *)ATH_OFDM_WEAK_DET,
273 - { .ctl_name = CTL_AUTO,
274 - .procname = "cca_thresh",
275 + { .procname = "cca_thresh",
277 .proc_handler = ath_sysctl_halparam,
278 .extra2 = (void *)ATH_CCA_THRESH,
279 @@ -11873,12 +11835,10 @@ ath_dynamic_sysctl_register(struct ath_s
281 /* setup the table */
282 memset(sc->sc_sysctls, 0, space);
283 - sc->sc_sysctls[0].ctl_name = CTL_DEV;
284 sc->sc_sysctls[0].procname = "dev";
285 sc->sc_sysctls[0].mode = 0555;
286 sc->sc_sysctls[0].child = &sc->sc_sysctls[2];
287 /* [1] is NULL terminator */
288 - sc->sc_sysctls[2].ctl_name = CTL_AUTO;
289 sc->sc_sysctls[2].procname = dev_name;
290 sc->sc_sysctls[2].mode = 0555;
291 sc->sc_sysctls[2].child = &sc->sc_sysctls[4];
292 @@ -12001,23 +11961,20 @@ ath_announce(struct net_device *dev)
294 static ctl_table ath_static_sysctls[] = {
296 - { .ctl_name = CTL_AUTO,
297 - .procname = "debug",
298 + { .procname = "debug",
301 .maxlen = sizeof(ath_debug),
302 .proc_handler = proc_dointvec
305 - { .ctl_name = CTL_AUTO,
306 - .procname = "xchanmode",
307 + { .procname = "xchanmode",
309 .data = &ath_xchanmode,
310 .maxlen = sizeof(ath_xchanmode),
311 .proc_handler = proc_dointvec
313 - { .ctl_name = CTL_AUTO,
314 - .procname = "calibrate",
315 + { .procname = "calibrate",
317 .data = &ath_calinterval,
318 .maxlen = sizeof(ath_calinterval),
319 @@ -12028,15 +11985,13 @@ static ctl_table ath_static_sysctls[] =
322 static ctl_table ath_ath_table[] = {
323 - { .ctl_name = DEV_ATH,
325 + { .procname = "ath",
327 .child = ath_static_sysctls
330 static ctl_table ath_root_table[] = {
331 - { .ctl_name = CTL_DEV,
333 + { .procname = "dev",
335 .child = ath_ath_table
337 --- a/net80211/ieee80211_linux.c
338 +++ b/net80211/ieee80211_linux.c
339 @@ -699,40 +699,33 @@ IEEE80211_SYSCTL_DECL(ieee80211_sysctl_m
341 static const ctl_table ieee80211_sysctl_template[] = {
342 #ifdef IEEE80211_DEBUG
343 - { .ctl_name = CTL_AUTO,
344 - .procname = "debug",
345 + { .procname = "debug",
347 .proc_handler = ieee80211_sysctl_debug
350 - { .ctl_name = CTL_AUTO,
351 - .procname = "dev_type",
352 + { .procname = "dev_type",
354 .proc_handler = ieee80211_sysctl_dev_type
356 - { .ctl_name = CTL_AUTO,
357 - .procname = "monitor_nods_only",
358 + { .procname = "monitor_nods_only",
360 .proc_handler = ieee80211_sysctl_monitor_nods_only
362 - { .ctl_name = CTL_AUTO,
363 - .procname = "monitor_txf_len",
364 + { .procname = "monitor_txf_len",
366 .proc_handler = ieee80211_sysctl_monitor_txf_len
368 - { .ctl_name = CTL_AUTO,
369 - .procname = "monitor_phy_errors",
370 + { .procname = "monitor_phy_errors",
372 .proc_handler = ieee80211_sysctl_monitor_phy_errors
374 - { .ctl_name = CTL_AUTO,
375 - .procname = "monitor_crc_errors",
376 + { .procname = "monitor_crc_errors",
378 .proc_handler = ieee80211_sysctl_monitor_crc_errors
380 /* NB: must be last entry before NULL */
381 - { .ctl_name = CTL_AUTO,
382 - .procname = "%parent",
383 + { .procname = "%parent",
386 .proc_handler = proc_dostring
387 @@ -786,12 +779,10 @@ ieee80211_virtfs_latevattach(struct ieee
389 /* setup the table */
390 memset(vap->iv_sysctls, 0, space);
391 - vap->iv_sysctls[0].ctl_name = CTL_NET;
392 vap->iv_sysctls[0].procname = "net";
393 vap->iv_sysctls[0].mode = 0555;
394 vap->iv_sysctls[0].child = &vap->iv_sysctls[2];
395 /* [1] is NULL terminator */
396 - vap->iv_sysctls[2].ctl_name = CTL_AUTO;
397 vap->iv_sysctls[2].procname = devname; /* XXX bad idea? */
398 vap->iv_sysctls[2].mode = 0555;
399 vap->iv_sysctls[2].child = &vap->iv_sysctls[4];
400 --- a/ath_hal/ah_os.c
401 +++ b/ath_hal/ah_os.c
402 @@ -518,50 +518,43 @@ EXPORT_SYMBOL(ath_hal_memcmp);
404 static ctl_table ath_hal_sysctls[] = {
406 - { .ctl_name = CTL_AUTO,
407 - .procname = "debug",
408 + { .procname = "debug",
410 .data = &ath_hal_debug,
411 .maxlen = sizeof(ath_hal_debug),
412 .proc_handler = proc_dointvec
415 - { .ctl_name = CTL_AUTO,
416 - .procname = "dma_beacon_response_time",
417 + { .procname = "dma_beacon_response_time",
418 .data = &ath_hal_dma_beacon_response_time,
419 .maxlen = sizeof(ath_hal_dma_beacon_response_time),
421 .proc_handler = proc_dointvec
423 - { .ctl_name = CTL_AUTO,
424 - .procname = "sw_beacon_response_time",
425 + { .procname = "sw_beacon_response_time",
427 .data = &ath_hal_sw_beacon_response_time,
428 .maxlen = sizeof(ath_hal_sw_beacon_response_time),
429 .proc_handler = proc_dointvec
431 - { .ctl_name = CTL_AUTO,
432 - .procname = "swba_backoff",
433 + { .procname = "swba_backoff",
435 .data = &ath_hal_additional_swba_backoff,
436 .maxlen = sizeof(ath_hal_additional_swba_backoff),
437 .proc_handler = proc_dointvec
440 - { .ctl_name = CTL_AUTO,
442 + { .procname = "alq",
444 .proc_handler = sysctl_hw_ath_hal_log
446 - { .ctl_name = CTL_AUTO,
447 - .procname = "alq_size",
448 + { .procname = "alq_size",
450 .data = &ath_hal_alq_qsize,
451 .maxlen = sizeof(ath_hal_alq_qsize),
452 .proc_handler = proc_dointvec
454 - { .ctl_name = CTL_AUTO,
455 - .procname = "alq_lost",
456 + { .procname = "alq_lost",
458 .data = &ath_hal_alq_lost,
459 .maxlen = sizeof(ath_hal_alq_lost),
460 @@ -571,22 +564,19 @@ static ctl_table ath_hal_sysctls[] = {
463 static ctl_table ath_hal_table[] = {
464 - { .ctl_name = CTL_AUTO,
466 + { .procname = "hal",
468 .child = ath_hal_sysctls
471 static ctl_table ath_ath_table[] = {
472 - { .ctl_name = DEV_ATH,
474 + { .procname = "ath",
476 .child = ath_hal_table
479 static ctl_table ath_root_table[] = {
480 - { .ctl_name = CTL_DEV,
482 + { .procname = "dev",
484 .child = ath_ath_table
486 --- a/ath_rate/amrr/amrr.c
487 +++ b/ath_rate/amrr/amrr.c
488 @@ -482,8 +482,7 @@ static int min_threshold = 1;
491 static ctl_table ath_rate_static_sysctls[] = {
492 - { .ctl_name = CTL_AUTO,
493 - .procname = "interval",
494 + { .procname = "interval",
496 .data = &ath_rateinterval,
497 .maxlen = sizeof(ath_rateinterval),
498 @@ -491,8 +490,7 @@ static ctl_table ath_rate_static_sysctls
500 .proc_handler = proc_dointvec_minmax
502 - { .ctl_name = CTL_AUTO,
503 - .procname = "max_success_threshold",
504 + { .procname = "max_success_threshold",
506 .data = &ath_rate_max_success_threshold,
507 .maxlen = sizeof(ath_rate_max_success_threshold),
508 @@ -500,8 +498,7 @@ static ctl_table ath_rate_static_sysctls
510 .proc_handler = proc_dointvec_minmax
512 - { .ctl_name = CTL_AUTO,
513 - .procname = "min_success_threshold",
514 + { .procname = "min_success_threshold",
516 .data = &ath_rate_min_success_threshold,
517 .maxlen = sizeof(ath_rate_min_success_threshold),
518 @@ -512,22 +509,19 @@ static ctl_table ath_rate_static_sysctls
521 static ctl_table ath_rate_table[] = {
522 - { .ctl_name = CTL_AUTO,
523 - .procname = "rate",
524 + { .procname = "rate",
526 .child = ath_rate_static_sysctls
529 static ctl_table ath_ath_table[] = {
530 - { .ctl_name = DEV_ATH,
532 + { .procname = "ath",
534 .child = ath_rate_table
537 static ctl_table ath_root_table[] = {
538 - { .ctl_name = CTL_DEV,
540 + { .procname = "dev",
542 .child = ath_ath_table
544 --- a/ath_rate/onoe/onoe.c
545 +++ b/ath_rate/onoe/onoe.c
546 @@ -427,8 +427,7 @@ static int maxint = 0x7fffffff; /* 32-b
547 * Static (i.e. global) sysctls.
549 static ctl_table ath_rate_static_sysctls[] = {
550 - { .ctl_name = CTL_AUTO,
551 - .procname = "interval",
552 + { .procname = "interval",
554 .data = &ath_rateinterval,
555 .maxlen = sizeof(ath_rateinterval),
556 @@ -436,8 +435,7 @@ static ctl_table ath_rate_static_sysctls
558 .proc_handler = proc_dointvec_minmax
560 - { .ctl_name = CTL_AUTO,
561 - .procname = "raise",
562 + { .procname = "raise",
564 .data = &ath_rate_raise,
565 .maxlen = sizeof(ath_rate_raise),
566 @@ -445,8 +443,7 @@ static ctl_table ath_rate_static_sysctls
567 .extra2 = &maxpercent,
568 .proc_handler = proc_dointvec_minmax
570 - { .ctl_name = CTL_AUTO,
571 - .procname = "raise_threshold",
572 + { .procname = "raise_threshold",
574 .data = &ath_rate_raise_threshold,
575 .maxlen = sizeof(ath_rate_raise_threshold),
576 @@ -455,22 +452,19 @@ static ctl_table ath_rate_static_sysctls
579 static ctl_table ath_rate_table[] = {
580 - { .ctl_name = CTL_AUTO,
581 - .procname = "rate",
582 + { .procname = "rate",
584 .child = ath_rate_static_sysctls
587 static ctl_table ath_ath_table[] = {
588 - { .ctl_name = DEV_ATH,
590 + { .procname = "ath",
592 .child = ath_rate_table
595 static ctl_table ath_root_table[] = {
596 - { .ctl_name = CTL_DEV,
598 + { .procname = "dev",
600 .child = ath_ath_table