]>
Commit | Line | Data |
---|---|---|
3e65646b IPG |
1 | /* |
2 | * Linux WiMAX | |
3 | * RF-kill framework integration | |
4 | * | |
5 | * | |
6 | * Copyright (C) 2008 Intel Corporation <linux-wimax@intel.com> | |
7 | * Inaky Perez-Gonzalez <inaky.perez-gonzalez@intel.com> | |
8 | * | |
9 | * This program is free software; you can redistribute it and/or | |
10 | * modify it under the terms of the GNU General Public License version | |
11 | * 2 as published by the Free Software Foundation. | |
12 | * | |
13 | * This program is distributed in the hope that it will be useful, | |
14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
16 | * GNU General Public License for more details. | |
17 | * | |
18 | * You should have received a copy of the GNU General Public License | |
19 | * along with this program; if not, write to the Free Software | |
20 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA | |
21 | * 02110-1301, USA. | |
22 | * | |
23 | * | |
24 | * This integrates into the Linux Kernel rfkill susbystem so that the | |
25 | * drivers just have to do the bare minimal work, which is providing a | |
26 | * method to set the software RF-Kill switch and to report changes in | |
27 | * the software and hardware switch status. | |
28 | * | |
29 | * A non-polled generic rfkill device is embedded into the WiMAX | |
30 | * subsystem's representation of a device. | |
31 | * | |
32 | * FIXME: Need polled support? use a timer or add the implementation | |
33 | * to the stack. | |
34 | * | |
35 | * All device drivers have to do is after wimax_dev_init(), call | |
36 | * wimax_report_rfkill_hw() and wimax_report_rfkill_sw() to update | |
37 | * initial state and then every time it changes. See wimax.h:struct | |
38 | * wimax_dev for more information. | |
39 | * | |
40 | * ROADMAP | |
41 | * | |
42 | * wimax_gnl_doit_rfkill() User space calling wimax_rfkill() | |
43 | * wimax_rfkill() Kernel calling wimax_rfkill() | |
44 | * __wimax_rf_toggle_radio() | |
45 | * | |
46 | * wimax_rfkill_toggle_radio() RF-Kill subsytem calling | |
47 | * __wimax_rf_toggle_radio() | |
48 | * | |
49 | * __wimax_rf_toggle_radio() | |
50 | * wimax_dev->op_rfkill_sw_toggle() Driver backend | |
51 | * __wimax_state_change() | |
52 | * | |
53 | * wimax_report_rfkill_sw() Driver reports state change | |
54 | * __wimax_state_change() | |
55 | * | |
56 | * wimax_report_rfkill_hw() Driver reports state change | |
57 | * __wimax_state_change() | |
58 | * | |
59 | * wimax_rfkill_add() Initialize/shutdown rfkill support | |
60 | * wimax_rfkill_rm() [called by wimax_dev_add/rm()] | |
61 | */ | |
62 | ||
63 | #include <net/wimax.h> | |
64 | #include <net/genetlink.h> | |
65 | #include <linux/wimax.h> | |
66 | #include <linux/security.h> | |
67 | #include <linux/rfkill.h> | |
68 | #include <linux/input.h> | |
69 | #include "wimax-internal.h" | |
70 | ||
71 | #define D_SUBMODULE op_rfkill | |
72 | #include "debug-levels.h" | |
73 | ||
a2e9da4b | 74 | #if defined(CONFIG_RFKILL) || defined(CONFIG_RFKILL_MODULE) |
3e65646b IPG |
75 | |
76 | ||
77 | /** | |
78 | * wimax_report_rfkill_hw - Reports changes in the hardware RF switch | |
79 | * | |
80 | * @wimax_dev: WiMAX device descriptor | |
81 | * | |
82 | * @state: New state of the RF Kill switch. %WIMAX_RF_ON radio on, | |
83 | * %WIMAX_RF_OFF radio off. | |
84 | * | |
85 | * When the device detects a change in the state of thehardware RF | |
86 | * switch, it must call this function to let the WiMAX kernel stack | |
87 | * know that the state has changed so it can be properly propagated. | |
88 | * | |
89 | * The WiMAX stack caches the state (the driver doesn't need to). As | |
90 | * well, as the change is propagated it will come back as a request to | |
91 | * change the software state to mirror the hardware state. | |
92 | * | |
93 | * If the device doesn't have a hardware kill switch, just report | |
94 | * it on initialization as always on (%WIMAX_RF_ON, radio on). | |
95 | */ | |
96 | void wimax_report_rfkill_hw(struct wimax_dev *wimax_dev, | |
97 | enum wimax_rf_state state) | |
98 | { | |
99 | int result; | |
100 | struct device *dev = wimax_dev_to_dev(wimax_dev); | |
101 | enum wimax_st wimax_state; | |
102 | enum rfkill_state rfkill_state; | |
103 | ||
104 | d_fnstart(3, dev, "(wimax_dev %p state %u)\n", wimax_dev, state); | |
105 | BUG_ON(state == WIMAX_RF_QUERY); | |
106 | BUG_ON(state != WIMAX_RF_ON && state != WIMAX_RF_OFF); | |
107 | ||
108 | mutex_lock(&wimax_dev->mutex); | |
109 | result = wimax_dev_is_ready(wimax_dev); | |
110 | if (result < 0) | |
111 | goto error_not_ready; | |
112 | ||
113 | if (state != wimax_dev->rf_hw) { | |
114 | wimax_dev->rf_hw = state; | |
115 | rfkill_state = state == WIMAX_RF_ON ? | |
c1c6b14b | 116 | RFKILL_STATE_UNBLOCKED : RFKILL_STATE_SOFT_BLOCKED; |
3e65646b IPG |
117 | if (wimax_dev->rf_hw == WIMAX_RF_ON |
118 | && wimax_dev->rf_sw == WIMAX_RF_ON) | |
119 | wimax_state = WIMAX_ST_READY; | |
120 | else | |
121 | wimax_state = WIMAX_ST_RADIO_OFF; | |
122 | __wimax_state_change(wimax_dev, wimax_state); | |
123 | input_report_key(wimax_dev->rfkill_input, KEY_WIMAX, | |
124 | rfkill_state); | |
125 | } | |
126 | error_not_ready: | |
127 | mutex_unlock(&wimax_dev->mutex); | |
128 | d_fnend(3, dev, "(wimax_dev %p state %u) = void [%d]\n", | |
129 | wimax_dev, state, result); | |
130 | } | |
131 | EXPORT_SYMBOL_GPL(wimax_report_rfkill_hw); | |
132 | ||
133 | ||
134 | /** | |
135 | * wimax_report_rfkill_sw - Reports changes in the software RF switch | |
136 | * | |
137 | * @wimax_dev: WiMAX device descriptor | |
138 | * | |
139 | * @state: New state of the RF kill switch. %WIMAX_RF_ON radio on, | |
140 | * %WIMAX_RF_OFF radio off. | |
141 | * | |
142 | * Reports changes in the software RF switch state to the the WiMAX | |
143 | * stack. | |
144 | * | |
145 | * The main use is during initialization, so the driver can query the | |
146 | * device for its current software radio kill switch state and feed it | |
147 | * to the system. | |
148 | * | |
149 | * On the side, the device does not change the software state by | |
150 | * itself. In practice, this can happen, as the device might decide to | |
151 | * switch (in software) the radio off for different reasons. | |
152 | */ | |
153 | void wimax_report_rfkill_sw(struct wimax_dev *wimax_dev, | |
154 | enum wimax_rf_state state) | |
155 | { | |
156 | int result; | |
157 | struct device *dev = wimax_dev_to_dev(wimax_dev); | |
158 | enum wimax_st wimax_state; | |
159 | ||
160 | d_fnstart(3, dev, "(wimax_dev %p state %u)\n", wimax_dev, state); | |
161 | BUG_ON(state == WIMAX_RF_QUERY); | |
162 | BUG_ON(state != WIMAX_RF_ON && state != WIMAX_RF_OFF); | |
163 | ||
164 | mutex_lock(&wimax_dev->mutex); | |
165 | result = wimax_dev_is_ready(wimax_dev); | |
166 | if (result < 0) | |
167 | goto error_not_ready; | |
168 | ||
169 | if (state != wimax_dev->rf_sw) { | |
170 | wimax_dev->rf_sw = state; | |
171 | if (wimax_dev->rf_hw == WIMAX_RF_ON | |
172 | && wimax_dev->rf_sw == WIMAX_RF_ON) | |
173 | wimax_state = WIMAX_ST_READY; | |
174 | else | |
175 | wimax_state = WIMAX_ST_RADIO_OFF; | |
176 | __wimax_state_change(wimax_dev, wimax_state); | |
177 | } | |
178 | error_not_ready: | |
179 | mutex_unlock(&wimax_dev->mutex); | |
180 | d_fnend(3, dev, "(wimax_dev %p state %u) = void [%d]\n", | |
181 | wimax_dev, state, result); | |
182 | } | |
183 | EXPORT_SYMBOL_GPL(wimax_report_rfkill_sw); | |
184 | ||
185 | ||
186 | /* | |
187 | * Callback for the RF Kill toggle operation | |
188 | * | |
189 | * This function is called by: | |
190 | * | |
191 | * - The rfkill subsystem when the RF-Kill key is pressed in the | |
192 | * hardware and the driver notifies through | |
193 | * wimax_report_rfkill_hw(). The rfkill subsystem ends up calling back | |
194 | * here so the software RF Kill switch state is changed to reflect | |
195 | * the hardware switch state. | |
196 | * | |
197 | * - When the user sets the state through sysfs' rfkill/state file | |
198 | * | |
199 | * - When the user calls wimax_rfkill(). | |
200 | * | |
201 | * This call blocks! | |
202 | * | |
203 | * WARNING! When we call rfkill_unregister(), this will be called with | |
204 | * state 0! | |
205 | * | |
206 | * WARNING: wimax_dev must be locked | |
207 | */ | |
208 | static | |
209 | int __wimax_rf_toggle_radio(struct wimax_dev *wimax_dev, | |
210 | enum wimax_rf_state state) | |
211 | { | |
212 | int result = 0; | |
213 | struct device *dev = wimax_dev_to_dev(wimax_dev); | |
214 | enum wimax_st wimax_state; | |
215 | ||
216 | might_sleep(); | |
217 | d_fnstart(3, dev, "(wimax_dev %p state %u)\n", wimax_dev, state); | |
218 | if (wimax_dev->rf_sw == state) | |
219 | goto out_no_change; | |
220 | if (wimax_dev->op_rfkill_sw_toggle != NULL) | |
221 | result = wimax_dev->op_rfkill_sw_toggle(wimax_dev, state); | |
222 | else if (state == WIMAX_RF_OFF) /* No op? can't turn off */ | |
223 | result = -ENXIO; | |
224 | else /* No op? can turn on */ | |
225 | result = 0; /* should never happen tho */ | |
226 | if (result >= 0) { | |
227 | result = 0; | |
228 | wimax_dev->rf_sw = state; | |
229 | wimax_state = state == WIMAX_RF_ON ? | |
230 | WIMAX_ST_READY : WIMAX_ST_RADIO_OFF; | |
231 | __wimax_state_change(wimax_dev, wimax_state); | |
232 | } | |
233 | out_no_change: | |
234 | d_fnend(3, dev, "(wimax_dev %p state %u) = %d\n", | |
235 | wimax_dev, state, result); | |
236 | return result; | |
237 | } | |
238 | ||
239 | ||
240 | /* | |
241 | * Translate from rfkill state to wimax state | |
242 | * | |
243 | * NOTE: Special state handling rules here | |
244 | * | |
245 | * Just pretend the call didn't happen if we are in a state where | |
246 | * we know for sure it cannot be handled (WIMAX_ST_DOWN or | |
247 | * __WIMAX_ST_QUIESCING). rfkill() needs it to register and | |
248 | * unregister, as it will run this path. | |
249 | * | |
250 | * NOTE: This call will block until the operation is completed. | |
251 | */ | |
252 | static | |
253 | int wimax_rfkill_toggle_radio(void *data, enum rfkill_state state) | |
254 | { | |
255 | int result; | |
256 | struct wimax_dev *wimax_dev = data; | |
257 | struct device *dev = wimax_dev_to_dev(wimax_dev); | |
258 | enum wimax_rf_state rf_state; | |
259 | ||
260 | d_fnstart(3, dev, "(wimax_dev %p state %u)\n", wimax_dev, state); | |
261 | switch (state) { | |
c1c6b14b | 262 | case RFKILL_STATE_SOFT_BLOCKED: |
3e65646b IPG |
263 | rf_state = WIMAX_RF_OFF; |
264 | break; | |
c1c6b14b | 265 | case RFKILL_STATE_UNBLOCKED: |
3e65646b IPG |
266 | rf_state = WIMAX_RF_ON; |
267 | break; | |
268 | default: | |
269 | BUG(); | |
270 | } | |
271 | mutex_lock(&wimax_dev->mutex); | |
272 | if (wimax_dev->state <= __WIMAX_ST_QUIESCING) | |
273 | result = 0; /* just pretend it didn't happen */ | |
274 | else | |
275 | result = __wimax_rf_toggle_radio(wimax_dev, rf_state); | |
276 | mutex_unlock(&wimax_dev->mutex); | |
277 | d_fnend(3, dev, "(wimax_dev %p state %u) = %d\n", | |
278 | wimax_dev, state, result); | |
279 | return result; | |
280 | } | |
281 | ||
282 | ||
283 | /** | |
284 | * wimax_rfkill - Set the software RF switch state for a WiMAX device | |
285 | * | |
286 | * @wimax_dev: WiMAX device descriptor | |
287 | * | |
288 | * @state: New RF state. | |
289 | * | |
290 | * Returns: | |
291 | * | |
292 | * >= 0 toggle state if ok, < 0 errno code on error. The toggle state | |
293 | * is returned as a bitmap, bit 0 being the hardware RF state, bit 1 | |
294 | * the software RF state. | |
295 | * | |
296 | * 0 means disabled (%WIMAX_RF_ON, radio on), 1 means enabled radio | |
297 | * off (%WIMAX_RF_OFF). | |
298 | * | |
299 | * Description: | |
300 | * | |
301 | * Called by the user when he wants to request the WiMAX radio to be | |
302 | * switched on (%WIMAX_RF_ON) or off (%WIMAX_RF_OFF). With | |
303 | * %WIMAX_RF_QUERY, just the current state is returned. | |
304 | * | |
305 | * NOTE: | |
306 | * | |
307 | * This call will block until the operation is complete. | |
308 | */ | |
309 | int wimax_rfkill(struct wimax_dev *wimax_dev, enum wimax_rf_state state) | |
310 | { | |
311 | int result; | |
312 | struct device *dev = wimax_dev_to_dev(wimax_dev); | |
313 | ||
314 | d_fnstart(3, dev, "(wimax_dev %p state %u)\n", wimax_dev, state); | |
315 | mutex_lock(&wimax_dev->mutex); | |
316 | result = wimax_dev_is_ready(wimax_dev); | |
317 | if (result < 0) | |
318 | goto error_not_ready; | |
319 | switch (state) { | |
320 | case WIMAX_RF_ON: | |
321 | case WIMAX_RF_OFF: | |
322 | result = __wimax_rf_toggle_radio(wimax_dev, state); | |
323 | if (result < 0) | |
324 | goto error; | |
325 | break; | |
326 | case WIMAX_RF_QUERY: | |
327 | break; | |
328 | default: | |
329 | result = -EINVAL; | |
330 | goto error; | |
331 | } | |
332 | result = wimax_dev->rf_sw << 1 | wimax_dev->rf_hw; | |
333 | error: | |
334 | error_not_ready: | |
335 | mutex_unlock(&wimax_dev->mutex); | |
336 | d_fnend(3, dev, "(wimax_dev %p state %u) = %d\n", | |
337 | wimax_dev, state, result); | |
338 | return result; | |
339 | } | |
340 | EXPORT_SYMBOL(wimax_rfkill); | |
341 | ||
342 | ||
343 | /* | |
344 | * Register a new WiMAX device's RF Kill support | |
345 | * | |
346 | * WARNING: wimax_dev->mutex must be unlocked | |
347 | */ | |
348 | int wimax_rfkill_add(struct wimax_dev *wimax_dev) | |
349 | { | |
350 | int result; | |
351 | struct rfkill *rfkill; | |
352 | struct input_dev *input_dev; | |
353 | struct device *dev = wimax_dev_to_dev(wimax_dev); | |
354 | ||
355 | d_fnstart(3, dev, "(wimax_dev %p)\n", wimax_dev); | |
356 | /* Initialize RF Kill */ | |
357 | result = -ENOMEM; | |
358 | rfkill = rfkill_allocate(dev, RFKILL_TYPE_WIMAX); | |
359 | if (rfkill == NULL) | |
360 | goto error_rfkill_allocate; | |
361 | wimax_dev->rfkill = rfkill; | |
362 | ||
363 | rfkill->name = wimax_dev->name; | |
c1c6b14b | 364 | rfkill->state = RFKILL_STATE_UNBLOCKED; |
3e65646b IPG |
365 | rfkill->data = wimax_dev; |
366 | rfkill->toggle_radio = wimax_rfkill_toggle_radio; | |
3e65646b IPG |
367 | |
368 | /* Initialize the input device for the hw key */ | |
369 | input_dev = input_allocate_device(); | |
370 | if (input_dev == NULL) | |
371 | goto error_input_allocate; | |
372 | wimax_dev->rfkill_input = input_dev; | |
373 | d_printf(1, dev, "rfkill %p input %p\n", rfkill, input_dev); | |
374 | ||
375 | input_dev->name = wimax_dev->name; | |
376 | /* FIXME: get a real device bus ID and stuff? do we care? */ | |
377 | input_dev->id.bustype = BUS_HOST; | |
378 | input_dev->id.vendor = 0xffff; | |
379 | input_dev->evbit[0] = BIT(EV_KEY); | |
380 | set_bit(KEY_WIMAX, input_dev->keybit); | |
381 | ||
382 | /* Register both */ | |
383 | result = input_register_device(wimax_dev->rfkill_input); | |
384 | if (result < 0) | |
385 | goto error_input_register; | |
386 | result = rfkill_register(wimax_dev->rfkill); | |
387 | if (result < 0) | |
388 | goto error_rfkill_register; | |
389 | ||
390 | /* If there is no SW toggle op, SW RFKill is always on */ | |
391 | if (wimax_dev->op_rfkill_sw_toggle == NULL) | |
392 | wimax_dev->rf_sw = WIMAX_RF_ON; | |
393 | ||
394 | d_fnend(3, dev, "(wimax_dev %p) = 0\n", wimax_dev); | |
395 | return 0; | |
396 | ||
397 | /* if rfkill_register() suceeds, can't use rfkill_free() any | |
398 | * more, only rfkill_unregister() [it owns the refcount]; with | |
399 | * the input device we have the same issue--hence the if. */ | |
400 | error_rfkill_register: | |
401 | input_unregister_device(wimax_dev->rfkill_input); | |
402 | wimax_dev->rfkill_input = NULL; | |
403 | error_input_register: | |
404 | if (wimax_dev->rfkill_input) | |
405 | input_free_device(wimax_dev->rfkill_input); | |
406 | error_input_allocate: | |
407 | rfkill_free(wimax_dev->rfkill); | |
408 | error_rfkill_allocate: | |
409 | d_fnend(3, dev, "(wimax_dev %p) = %d\n", wimax_dev, result); | |
410 | return result; | |
411 | } | |
412 | ||
413 | ||
414 | /* | |
415 | * Deregister a WiMAX device's RF Kill support | |
416 | * | |
417 | * Ick, we can't call rfkill_free() after rfkill_unregister()...oh | |
418 | * well. | |
419 | * | |
420 | * WARNING: wimax_dev->mutex must be unlocked | |
421 | */ | |
422 | void wimax_rfkill_rm(struct wimax_dev *wimax_dev) | |
423 | { | |
424 | struct device *dev = wimax_dev_to_dev(wimax_dev); | |
425 | d_fnstart(3, dev, "(wimax_dev %p)\n", wimax_dev); | |
426 | rfkill_unregister(wimax_dev->rfkill); /* frees */ | |
427 | input_unregister_device(wimax_dev->rfkill_input); | |
428 | d_fnend(3, dev, "(wimax_dev %p)\n", wimax_dev); | |
429 | } | |
430 | ||
431 | ||
432 | #else /* #ifdef CONFIG_RFKILL */ | |
433 | ||
434 | void wimax_report_rfkill_hw(struct wimax_dev *wimax_dev, | |
435 | enum wimax_rf_state state) | |
436 | { | |
437 | } | |
438 | EXPORT_SYMBOL_GPL(wimax_report_rfkill_hw); | |
439 | ||
440 | void wimax_report_rfkill_sw(struct wimax_dev *wimax_dev, | |
441 | enum wimax_rf_state state) | |
442 | { | |
443 | } | |
444 | EXPORT_SYMBOL_GPL(wimax_report_rfkill_sw); | |
445 | ||
446 | int wimax_rfkill(struct wimax_dev *wimax_dev, | |
447 | enum wimax_rf_state state) | |
448 | { | |
449 | return WIMAX_RF_ON << 1 | WIMAX_RF_ON; | |
450 | } | |
451 | EXPORT_SYMBOL_GPL(wimax_rfkill); | |
452 | ||
453 | int wimax_rfkill_add(struct wimax_dev *wimax_dev) | |
454 | { | |
455 | return 0; | |
456 | } | |
457 | ||
458 | void wimax_rfkill_rm(struct wimax_dev *wimax_dev) | |
459 | { | |
460 | } | |
461 | ||
462 | #endif /* #ifdef CONFIG_RFKILL */ | |
463 | ||
464 | ||
465 | /* | |
466 | * Exporting to user space over generic netlink | |
467 | * | |
468 | * Parse the rfkill command from user space, return a combination | |
469 | * value that describe the states of the different toggles. | |
470 | * | |
471 | * Only one attribute: the new state requested (on, off or no change, | |
472 | * just query). | |
473 | */ | |
474 | ||
475 | static const | |
476 | struct nla_policy wimax_gnl_rfkill_policy[WIMAX_GNL_ATTR_MAX + 1] = { | |
477 | [WIMAX_GNL_RFKILL_IFIDX] = { | |
478 | .type = NLA_U32, | |
479 | }, | |
480 | [WIMAX_GNL_RFKILL_STATE] = { | |
481 | .type = NLA_U32 /* enum wimax_rf_state */ | |
482 | }, | |
483 | }; | |
484 | ||
485 | ||
486 | static | |
487 | int wimax_gnl_doit_rfkill(struct sk_buff *skb, struct genl_info *info) | |
488 | { | |
489 | int result, ifindex; | |
490 | struct wimax_dev *wimax_dev; | |
491 | struct device *dev; | |
492 | enum wimax_rf_state new_state; | |
493 | ||
494 | d_fnstart(3, NULL, "(skb %p info %p)\n", skb, info); | |
495 | result = -ENODEV; | |
496 | if (info->attrs[WIMAX_GNL_RFKILL_IFIDX] == NULL) { | |
497 | printk(KERN_ERR "WIMAX_GNL_OP_RFKILL: can't find IFIDX " | |
498 | "attribute\n"); | |
499 | goto error_no_wimax_dev; | |
500 | } | |
501 | ifindex = nla_get_u32(info->attrs[WIMAX_GNL_RFKILL_IFIDX]); | |
502 | wimax_dev = wimax_dev_get_by_genl_info(info, ifindex); | |
503 | if (wimax_dev == NULL) | |
504 | goto error_no_wimax_dev; | |
505 | dev = wimax_dev_to_dev(wimax_dev); | |
506 | result = -EINVAL; | |
507 | if (info->attrs[WIMAX_GNL_RFKILL_STATE] == NULL) { | |
508 | dev_err(dev, "WIMAX_GNL_RFKILL: can't find RFKILL_STATE " | |
509 | "attribute\n"); | |
510 | goto error_no_pid; | |
511 | } | |
512 | new_state = nla_get_u32(info->attrs[WIMAX_GNL_RFKILL_STATE]); | |
513 | ||
514 | /* Execute the operation and send the result back to user space */ | |
515 | result = wimax_rfkill(wimax_dev, new_state); | |
516 | error_no_pid: | |
517 | dev_put(wimax_dev->net_dev); | |
518 | error_no_wimax_dev: | |
519 | d_fnend(3, NULL, "(skb %p info %p) = %d\n", skb, info, result); | |
520 | return result; | |
521 | } | |
522 | ||
523 | ||
524 | struct genl_ops wimax_gnl_rfkill = { | |
525 | .cmd = WIMAX_GNL_OP_RFKILL, | |
526 | .flags = GENL_ADMIN_PERM, | |
527 | .policy = wimax_gnl_rfkill_policy, | |
528 | .doit = wimax_gnl_doit_rfkill, | |
529 | .dumpit = NULL, | |
530 | }; | |
531 |