summaryrefslogtreecommitdiff
path: root/freebsd/contrib/wpa/src/ap/p2p_hostapd.h
diff options
context:
space:
mode:
authorSichen Zhao <1473996754@qq.com>2017-08-01 20:43:41 +0800
committerSebastian Huber <sebastian.huber@embedded-brains.de>2017-11-10 13:33:02 +0100
commit9c9d11b481ce0dcdfa9c69e6781cc15435cfb043 (patch)
tree3d0e6678afcdbb17d35606398f220fba66dcfa7b /freebsd/contrib/wpa/src/ap/p2p_hostapd.h
parent847de24eb0a351a37c6f004cc506a5177599283d (diff)
Import wpa from FreeBSD
Diffstat (limited to 'freebsd/contrib/wpa/src/ap/p2p_hostapd.h')
-rw-r--r--freebsd/contrib/wpa/src/ap/p2p_hostapd.h35
1 files changed, 35 insertions, 0 deletions
diff --git a/freebsd/contrib/wpa/src/ap/p2p_hostapd.h b/freebsd/contrib/wpa/src/ap/p2p_hostapd.h
new file mode 100644
index 00000000..0e3921c6
--- /dev/null
+++ b/freebsd/contrib/wpa/src/ap/p2p_hostapd.h
@@ -0,0 +1,35 @@
+/*
+ * hostapd / P2P integration
+ * Copyright (c) 2009-2010, Atheros Communications
+ *
+ * This software may be distributed under the terms of the BSD license.
+ * See README for more details.
+ */
+
+#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);
+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);
+
+
+#else /* CONFIG_P2P */
+
+static inline int hostapd_p2p_get_mib_sta(struct hostapd_data *hapd,
+ struct sta_info *sta,
+ char *buf, size_t buflen)
+{
+ return 0;
+}
+
+#endif /* CONFIG_P2P */
+
+u8 * hostapd_eid_p2p_manage(struct hostapd_data *hapd, u8 *eid);
+
+#endif /* P2P_HOSTAPD_H */