2010-07-18 17:30:25 -04:00
|
|
|
/*
|
|
|
|
* hostapd / P2P integration
|
2010-07-08 20:14:24 -04:00
|
|
|
* Copyright (c) 2009-2010, Atheros Communications
|
2010-07-18 17:30:25 -04:00
|
|
|
*
|
2012-02-11 09:31:36 -05:00
|
|
|
* This software may be distributed under the terms of the BSD license.
|
|
|
|
* See README for more details.
|
2010-07-18 17:30:25 -04:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef P2P_HOSTAPD_H
|
|
|
|
#define P2P_HOSTAPD_H
|
|
|
|
|
|
|
|
#ifdef CONFIG_P2P
|
|
|
|
|
|
|
|
int hostapd_p2p_get_mib_sta(struct hostapd_data *hapd, struct sta_info *sta,
|
|
|
|
char *buf, size_t buflen);
|
2010-07-08 20:14:24 -04:00
|
|
|
int hostapd_p2p_set_noa(struct hostapd_data *hapd, u8 count, int start,
|
|
|
|
int duration);
|
|
|
|
void hostapd_p2p_non_p2p_sta_connected(struct hostapd_data *hapd);
|
|
|
|
void hostapd_p2p_non_p2p_sta_disconnected(struct hostapd_data *hapd);
|
|
|
|
|
2010-07-18 17:30:25 -04:00
|
|
|
|
|
|
|
#else /* CONFIG_P2P */
|
|
|
|
|
2010-09-09 10:20:28 -04:00
|
|
|
static inline int hostapd_p2p_get_mib_sta(struct hostapd_data *hapd,
|
|
|
|
struct sta_info *sta,
|
|
|
|
char *buf, size_t buflen)
|
2010-07-18 17:30:25 -04:00
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif /* CONFIG_P2P */
|
|
|
|
|
2010-10-08 11:16:07 -04:00
|
|
|
u8 * hostapd_eid_p2p_manage(struct hostapd_data *hapd, u8 *eid);
|
|
|
|
|
2010-07-18 17:30:25 -04:00
|
|
|
#endif /* P2P_HOSTAPD_H */
|