1 #ifndef B43legacy_RFKILL_H_
2 #define B43legacy_RFKILL_H_
4 struct b43legacy_wldev
;
6 #ifdef CONFIG_B43LEGACY_RFKILL
8 #include <linux/rfkill.h>
9 #include <linux/workqueue.h>
12 struct b43legacy_rfkill
{
13 /* The RFKILL subsystem data structure */
14 struct rfkill
*rfkill
;
15 /* The unique name of this rfkill switch */
17 /* Workqueue for asynchronous notification. */
18 struct work_struct notify_work
;
21 void b43legacy_rfkill_init(struct b43legacy_wldev
*dev
);
22 void b43legacy_rfkill_exit(struct b43legacy_wldev
*dev
);
23 void b43legacy_rfkill_toggled(struct b43legacy_wldev
*dev
, bool on
);
24 char *b43legacy_rfkill_led_name(struct b43legacy_wldev
*dev
);
27 #else /* CONFIG_B43LEGACY_RFKILL */
28 /* No RFKILL support. */
30 struct b43legacy_rfkill
{
34 static inline void b43legacy_rfkill_init(struct b43legacy_wldev
*dev
)
37 static inline void b43legacy_rfkill_exit(struct b43legacy_wldev
*dev
)
40 static inline void b43legacy_rfkill_toggled(struct b43legacy_wldev
*dev
,
44 static inline char *b43legacy_rfkill_led_name(struct b43legacy_wldev
*dev
)
49 #endif /* CONFIG_B43LEGACY_RFKILL */
51 #endif /* B43legacy_RFKILL_H_ */