P2P: Disable periodic NoA when non-P2P STA is connected
[libeap.git] / src / ap / p2p_hostapd.h
1 /*
2  * hostapd / P2P integration
3  * Copyright (c) 2009-2010, Atheros Communications
4  *
5  * This program is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License version 2 as
7  * published by the Free Software Foundation.
8  *
9  * Alternatively, this software may be distributed under the terms of BSD
10  * license.
11  *
12  * See README and COPYING for more details.
13  */
14
15 #ifndef P2P_HOSTAPD_H
16 #define P2P_HOSTAPD_H
17
18 #ifdef CONFIG_P2P
19
20 int hostapd_p2p_get_mib_sta(struct hostapd_data *hapd, struct sta_info *sta,
21                             char *buf, size_t buflen);
22 int hostapd_p2p_set_noa(struct hostapd_data *hapd, u8 count, int start,
23                         int duration);
24 void hostapd_p2p_non_p2p_sta_connected(struct hostapd_data *hapd);
25 void hostapd_p2p_non_p2p_sta_disconnected(struct hostapd_data *hapd);
26
27
28 #else /* CONFIG_P2P */
29
30 int hostapd_p2p_get_mib_sta(struct hostapd_data *hapd, struct sta_info *sta,
31                             char *buf, size_t buflen)
32 {
33         return 0;
34 }
35
36 #endif /* CONFIG_P2P */
37
38 #endif /* P2P_HOSTAPD_H */