blob: d209d69fed2e6ec5902390e366280df75106ed89 [file] [log] [blame]
/* Copyright 2013 The Chromium OS Authors. All rights reserved.
* 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 */