unbreak allmodconfig KCONFIG_ALLCONFIG=...
[carl9170fw.git] / carlfw / include / wol.h
1 /*
2  * carl9170 firmware - used by the ar9170 wireless device
3  *
4  * WakeUp on WLAN definitions
5  *
6  * Copyright (c) 2000-2005 ZyDAS Technology Corporation
7  * Copyright (c) 2007-2009 Atheros Communications, Inc.
8  * Copyright    2009    Johannes Berg <johannes@sipsolutions.net>
9  * Copyright 2009-2011  Christian Lamparter <chunkeey@googlemail.com>
10  *
11  * This program is free software; you can redistribute it and/or modify
12  * it under the terms of the GNU General Public License as published by
13  * the Free Software Foundation; either version 2 of the License, or
14  * (at your option) any later version.
15  *
16  * This program is distributed in the hope that it will be useful,
17  * but WITHOUT ANY WARRANTY; without even the implied warranty of
18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19  * GNU General Public License for more details.
20  *
21  * You should have received a copy of the GNU General Public License along
22  * with this program; If not, see <http://www.gnu.org/licenses/>.
23  */
24
25 #ifndef __CARL9170FW_WOL_H
26 #define __CARL9170FW_WOL_H
27
28 #include "config.h"
29 #include "compiler.h"
30 #include "types.h"
31
32 #include "fwcmd.h"
33
34 #ifdef CONFIG_CARL9170FW_WOL
35
36 struct ieee80211_hdr;
37
38 void wol_prepare(void);
39 void wol_janitor(void);
40 void wol_rx(const unsigned int rx_filter __unused,
41             const struct ieee80211_hdr *hdr __unused,
42             const unsigned int len __unused);
43 void wol_cmd(const struct carl9170_wol_cmd *cmd);
44
45 #else
46
47 static inline void wol_cmd(const struct carl9170_wol_cmd *cmd __unused)
48 {
49 }
50
51 static inline void wol_prepare(void)
52 {
53 }
54
55 static inline void wol_janitor(void)
56 {
57 }
58
59 static inline void wol_rx(const unsigned int rx_filter __unused,
60                           const struct ieee80211_hdr *hdr __unused,
61                           const unsigned int len __unused)
62 {
63 }
64 #endif /* CONFIG_CARL9170FW_WOL */
65
66 #endif /* __CARL9170FW_CMD_H */