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