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