summaryrefslogtreecommitdiffstats
path: root/rfkill.c
diff options
context:
space:
mode:
authorJohannes Berg2009-08-25 11:52:29 +0200
committerJohannes Berg2009-08-25 11:52:29 +0200
commit87d6ed52639007d200eeace220468dc0334492d2 (patch)
tree7277b24c9ce30a7fc2eec2d579855f4a598a1a6e /rfkill.c
parentadd manpage (diff)
downloadkernel-qcow2-util-linux-87d6ed52639007d200eeace220468dc0334492d2.tar.gz
kernel-qcow2-util-linux-87d6ed52639007d200eeace220468dc0334492d2.tar.xz
kernel-qcow2-util-linux-87d6ed52639007d200eeace220468dc0334492d2.zip
sync with kernel, add GPS
The kernel added a GPS rfkill type, and also the event size. Sync with the kernel's header file and add support for GPS.
Diffstat (limited to 'rfkill.c')
-rw-r--r--rfkill.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/rfkill.c b/rfkill.c
index 19b8dbd1e..ba43f790b 100644
--- a/rfkill.c
+++ b/rfkill.c
@@ -105,6 +105,8 @@ static const char *type2string(enum rfkill_type type)
return "WiMAX";
case RFKILL_TYPE_WWAN:
return "Wireless WAN";
+ case RFKILL_TYPE_GPS:
+ return "GPS";
case NUM_RFKILL_TYPES:
return NULL;
}
@@ -198,6 +200,7 @@ static struct rfkill_type_str rfkill_type_strings[] = {
{ .type = RFKILL_TYPE_UWB, .name = "uwb" },
{ .type = RFKILL_TYPE_WIMAX, .name = "wimax" },
{ .type = RFKILL_TYPE_WWAN, .name = "wwan" },
+ { .type = RFKILL_TYPE_GPS, .name = "gps" },
{ .name = NULL }
};
@@ -214,7 +217,7 @@ static enum rfkill_type rfkill_str_to_type(char *s)
static const char *argv0;
-#define BLOCK_PARAMS "{<idx>,all,wifi,bluetooth,uwb,wimax,wwan}"
+#define BLOCK_PARAMS "{<idx>,all,wifi,bluetooth,uwb,wimax,wwan,gps}"
static void usage(void)
{