18d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt/*
28d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * hostapd / P2P integration
38d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt * Copyright (c) 2009-2010, Atheros Communications
48d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt *
5c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidt * This software may be distributed under the terms of the BSD license.
6c5ec7f57ead87efa365800228aa0b09a12d9e6c4Dmitry Shmidt * See README for more details.
78d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt */
88d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
98d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt#ifndef P2P_HOSTAPD_H
108d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt#define P2P_HOSTAPD_H
118d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
128d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt#ifdef CONFIG_P2P
138d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
148d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtint hostapd_p2p_get_mib_sta(struct hostapd_data *hapd, struct sta_info *sta,
158d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt			    char *buf, size_t buflen);
168d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtint hostapd_p2p_set_noa(struct hostapd_data *hapd, u8 count, int start,
178d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt			int duration);
188d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtvoid hostapd_p2p_non_p2p_sta_connected(struct hostapd_data *hapd);
198d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtvoid hostapd_p2p_non_p2p_sta_disconnected(struct hostapd_data *hapd);
208d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
218d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
228d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt#else /* CONFIG_P2P */
238d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
248d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtstatic inline int hostapd_p2p_get_mib_sta(struct hostapd_data *hapd,
258d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt					  struct sta_info *sta,
268d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt					  char *buf, size_t buflen)
278d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt{
288d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt	return 0;
298d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt}
308d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
318d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt#endif /* CONFIG_P2P */
328d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
338d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidtu8 * hostapd_eid_p2p_manage(struct hostapd_data *hapd, u8 *eid);
348d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt
358d520ff1dc2da35cdca849e982051b86468016d8Dmitry Shmidt#endif /* P2P_HOSTAPD_H */
36