aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuis R. Rodriguez <lrodriguez@atheros.com>2008-06-29 23:47:03 -0700
committerLuis R. Rodriguez <lrodriguez@atheros.com>2008-06-29 23:47:03 -0700
commit1f35f3caf8585801860992d8556a46fd1c2ae815 (patch)
tree33ce1cee2640b8dbc332b6484def47608f00b130
parent726a7354a813dbfee109ecaf5215b40fe0a5039b (diff)
downloadcompat-wireless-2.6-old-1f35f3caf8585801860992d8556a46fd1c2ae815.tar.gz
Backport new rfkill enums:
RFKILL_STATE_SOFT_BLOCKED RFKILL_STATE_UNBLOCKED and add the new one: RFKILL_STATE_HARD_BLOCKED This one won't be handled by older kernels unless we later add support for handling in compat.c Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
-rw-r--r--compat/compat.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/compat/compat.h b/compat/compat.h
index 7acf09b..8a23e35 100644
--- a/compat/compat.h
+++ b/compat/compat.h
@@ -476,6 +476,12 @@ static inline void led_classdev_unregister_suspended(struct led_classdev *lcd)
#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,26))
+/* This is from include/linux/rfkill.h */
+#define RFKILL_STATE_SOFT_BLOCKED RFKILL_STATE_OFF
+#define RFKILL_STATE_UNBLOCKED RFKILL_STATE_ON
+/* This one is new */
+#define RFKILL_STATE_HARD_BLOCKED 2
+
/* This is from include/linux/device.h, which was added as of 2.6.26 */
static inline const char *dev_name(struct device *dev)
{