]> git.ipfire.org Git - thirdparty/hostap.git/blame - src/ap/p2p_hostapd.h
Use secondary channel provided by ACS for HT40 if valid
[thirdparty/hostap.git] / src / ap / p2p_hostapd.h
CommitLineData
b22128ef
JM
1/*
2 * hostapd / P2P integration
aefb53bd 3 * Copyright (c) 2009-2010, Atheros Communications
b22128ef 4 *
e22d4d95
JM
5 * This software may be distributed under the terms of the BSD license.
6 * See README for more details.
b22128ef
JM
7 */
8
9#ifndef P2P_HOSTAPD_H
10#define P2P_HOSTAPD_H
11
12#ifdef CONFIG_P2P
13
14int hostapd_p2p_get_mib_sta(struct hostapd_data *hapd, struct sta_info *sta,
15 char *buf, size_t buflen);
aefb53bd
JM
16int hostapd_p2p_set_noa(struct hostapd_data *hapd, u8 count, int start,
17 int duration);
18void hostapd_p2p_non_p2p_sta_connected(struct hostapd_data *hapd);
19void hostapd_p2p_non_p2p_sta_disconnected(struct hostapd_data *hapd);
20
b22128ef
JM
21
22#else /* CONFIG_P2P */
23
812bf56a
JM
24static inline int hostapd_p2p_get_mib_sta(struct hostapd_data *hapd,
25 struct sta_info *sta,
26 char *buf, size_t buflen)
b22128ef
JM
27{
28 return 0;
29}
30
31#endif /* CONFIG_P2P */
32
dce044cc
JM
33u8 * hostapd_eid_p2p_manage(struct hostapd_data *hapd, u8 *eid);
34
b22128ef 35#endif /* P2P_HOSTAPD_H */