blob: 95b31d9bf128213ea1d3f936eebdd596c1700898 [file] [log] [blame]
Dmitry Shmidt8d520ff2011-05-09 14:06:53 -07001/*
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
20int hostapd_p2p_get_mib_sta(struct hostapd_data *hapd, struct sta_info *sta,
21 char *buf, size_t buflen);
22int hostapd_p2p_set_noa(struct hostapd_data *hapd, u8 count, int start,
23 int duration);
24void hostapd_p2p_non_p2p_sta_connected(struct hostapd_data *hapd);
25void hostapd_p2p_non_p2p_sta_disconnected(struct hostapd_data *hapd);
26
27
28#else /* CONFIG_P2P */
29
30static inline int hostapd_p2p_get_mib_sta(struct hostapd_data *hapd,
31 struct sta_info *sta,
32 char *buf, size_t buflen)
33{
34 return 0;
35}
36
37#endif /* CONFIG_P2P */
38
39u8 * hostapd_eid_p2p_manage(struct hostapd_data *hapd, u8 *eid);
40
41#endif /* P2P_HOSTAPD_H */