blob: 0e3921c614611de13ea3aeccd6c0fd5f94a4e813 [file] [log] [blame]
Dmitry Shmidt8d520ff2011-05-09 14:06:53 -07001/*
2 * hostapd / P2P integration
3 * Copyright (c) 2009-2010, Atheros Communications
4 *
Dmitry Shmidtc5ec7f52012-03-06 16:33:24 -08005 * This software may be distributed under the terms of the BSD license.
6 * See README for more details.
Dmitry Shmidt8d520ff2011-05-09 14:06:53 -07007 */
8
9#ifndef P2P_HOSTAPD_H
10#define P2P_HOSTAPD_H
11
12#ifdef CONFIG_P2P
13
14int hostapd_p2p_get_mib_sta(struct hostapd_data *hapd, struct sta_info *sta,
15 char *buf, size_t buflen);
16int hostapd_p2p_set_noa(struct hostapd_data *hapd, u8 count, int start,
17 int duration);
18void hostapd_p2p_non_p2p_sta_connected(struct hostapd_data *hapd);
19void hostapd_p2p_non_p2p_sta_disconnected(struct hostapd_data *hapd);
20
21
22#else /* CONFIG_P2P */
23
24static inline int hostapd_p2p_get_mib_sta(struct hostapd_data *hapd,
25 struct sta_info *sta,
26 char *buf, size_t buflen)
27{
28 return 0;
29}
30
31#endif /* CONFIG_P2P */
32
33u8 * hostapd_eid_p2p_manage(struct hostapd_data *hapd, u8 *eid);
34
35#endif /* P2P_HOSTAPD_H */