Home | History | Annotate | Download | only in ap
      1 /*
      2  * hostapd / P2P integration
      3  * Copyright (c) 2009-2010, Atheros Communications
      4  *
      5  * This program is free software; you can redistribute it and/or modify
      6  * it under the terms of the GNU General Public License version 2 as
      7  * published by the Free Software Foundation.
      8  *
      9  * Alternatively, this software may be distributed under the terms of BSD
     10  * license.
     11  *
     12  * See README and COPYING for more details.
     13  */
     14 
     15 #ifndef P2P_HOSTAPD_H
     16 #define P2P_HOSTAPD_H
     17 
     18 #ifdef CONFIG_P2P
     19 
     20 int hostapd_p2p_get_mib_sta(struct hostapd_data *hapd, struct sta_info *sta,
     21 			    char *buf, size_t buflen);
     22 int hostapd_p2p_set_noa(struct hostapd_data *hapd, u8 count, int start,
     23 			int duration);
     24 void hostapd_p2p_non_p2p_sta_connected(struct hostapd_data *hapd);
     25 void hostapd_p2p_non_p2p_sta_disconnected(struct hostapd_data *hapd);
     26 
     27 
     28 #else /* CONFIG_P2P */
     29 
     30 static inline int hostapd_p2p_get_mib_sta(struct hostapd_data *hapd,
     31 					  struct sta_info *sta,
     32 					  char *buf, size_t buflen)
     33 {
     34 	return 0;
     35 }
     36 
     37 #endif /* CONFIG_P2P */
     38 
     39 u8 * hostapd_eid_p2p_manage(struct hostapd_data *hapd, u8 *eid);
     40 
     41 #endif /* P2P_HOSTAPD_H */
     42