summaryrefslogtreecommitdiff
path: root/include/wireless.h
blob: 7232f92763c90703b367d8e21b8d094890a1e4de (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/* Copyright 2013 The ChromiumOS Authors
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 */

/* Wireless API for Chrome EC */

#ifndef __CROS_EC_WIRELESS_H
#define __CROS_EC_WIRELESS_H

#include "common.h"

/* Wireless power state for wireless_set_state() */
enum wireless_power_state { WIRELESS_OFF, WIRELESS_SUSPEND, WIRELESS_ON };

/**
 * Set wireless power state.
 */
#ifdef CONFIG_WIRELESS
void wireless_set_state(enum wireless_power_state state);
#else
static inline void wireless_set_state(enum wireless_power_state state)
{
}
#endif

#endif /* __CROS_EC_WIRELESS_H */