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