[backfire] generic-2.6: merge r21073 (#10419)
[openwrt-10.03/.git] / target / linux / generic-2.6 / patches-2.6.32 / 411-add-KEY_WPS_BUTTON-definition.patch
1 From 492d4f25416528ffb900e6edf0fd70eafd098cfc Mon Sep 17 00:00:00 2001
2 From: Dmitry Torokhov <dmitry.torokhov@gmail.com>
3 Date: Fri, 26 Feb 2010 00:16:05 -0800
4 Subject: [PATCH] Input: add KEY_WPS_BUTTON definition
5
6 The new key definition is supposed to be used for buttons that initiate
7 WiFi Protected setup sequence:
8
9         http://en.wikipedia.org/wiki/Wi-Fi_Protected_Setup
10
11 Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
12 ---
13  include/linux/input.h |    1 +
14  1 files changed, 1 insertions(+), 0 deletions(-)
15
16 --- a/include/linux/input.h
17 +++ b/include/linux/input.h
18 @@ -595,6 +595,8 @@ struct input_absinfo {
19  #define KEY_NUMERIC_STAR       0x20a
20  #define KEY_NUMERIC_POUND      0x20b
21  
22 +#define KEY_WPS_BUTTON         0x211   /* WiFi Protected Setup key */
23 +
24  /* We avoid low common keys in module aliases so they don't get huge. */
25  #define KEY_MIN_INTERESTING    KEY_MUTE
26  #define KEY_MAX                        0x2ff