diff options
author | Karel Zak | 2017-08-31 20:40:37 +0200 |
---|---|---|
committer | Karel Zak | 2017-08-31 20:40:37 +0200 |
commit | ea05c23ab79cd9adbfe91d2b210e652c2e5097ab (patch) | |
tree | cc5975d27f417ba8ac6259f492e8354c3ffe92f1 /sys-utils/rfkill.c | |
parent | wipefs: cleanup offsets list usage, fix -t filter (diff) | |
download | kernel-qcow2-util-linux-ea05c23ab79cd9adbfe91d2b210e652c2e5097ab.tar.gz kernel-qcow2-util-linux-ea05c23ab79cd9adbfe91d2b210e652c2e5097ab.tar.xz kernel-qcow2-util-linux-ea05c23ab79cd9adbfe91d2b210e652c2e5097ab.zip |
rfkill: add NFC fallback for old headers
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'sys-utils/rfkill.c')
-rw-r--r-- | sys-utils/rfkill.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sys-utils/rfkill.c b/sys-utils/rfkill.c index 21adc2176..380d29e56 100644 --- a/sys-utils/rfkill.c +++ b/sys-utils/rfkill.c @@ -37,6 +37,15 @@ #include "widechar.h" #include "xalloc.h" + +/* + * NFC supported by kernel since v3.10 (year 2013); FM and another types are from + * year 2009 (2.6.33) or older. + */ +#ifndef RFKILL_TYPE_NFC +# define RFKILL_TYPE_NFC RFKILL_TYPE_FM + 1 +#endif + struct rfkill_type_str { enum rfkill_type type; const char *name; |