aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/offchannel.h
diff options
context:
space:
mode:
authorJouni Malinen <jouni@qca.qualcomm.com>2011-09-29 16:22:08 (GMT)
committerJouni Malinen <j@w1.fi>2011-09-29 19:19:51 (GMT)
commit24f6497c344a4f924737102f4931ad7969316349 (patch)
treeffe13b661de3a81548b48868e814f3d4a9e0654b /wpa_supplicant/offchannel.h
parent04ea7b794735fc7183fd5b7f81030bc4d6482467 (diff)
downloadhostap-24f6497c344a4f924737102f4931ad7969316349.zip
hostap-24f6497c344a4f924737102f4931ad7969316349.tar.gz
hostap-24f6497c344a4f924737102f4931ad7969316349.tar.bz2
GAS: Use off-channel operations for requests
This separates off-channel Action frame TX/RX from P2P into a generic implementation that can now be used both for P2P and GAS needs.
Diffstat (limited to 'wpa_supplicant/offchannel.h')
-rw-r--r--wpa_supplicant/offchannel.h38
1 files changed, 38 insertions, 0 deletions
diff --git a/wpa_supplicant/offchannel.h b/wpa_supplicant/offchannel.h
new file mode 100644
index 0000000..90f79c1
--- /dev/null
+++ b/wpa_supplicant/offchannel.h
@@ -0,0 +1,38 @@
+/*
+ * wpa_supplicant - Off-channel Action frame TX/RX
+ * Copyright (c) 2009-2010, Atheros Communications
+ * Copyright (c) 2011, Qualcomm Atheros
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ *
+ * Alternatively, this software may be distributed under the terms of BSD
+ * license.
+ *
+ * See README and COPYING for more details.
+ */
+
+#ifndef OFFCHANNEL_H
+#define OFFCHANNEL_H
+
+int offchannel_send_action(struct wpa_supplicant *wpa_s, unsigned int freq,
+ const u8 *dst, const u8 *src, const u8 *bssid,
+ const u8 *buf, size_t len, unsigned int wait_time,
+ void (*tx_cb)(struct wpa_supplicant *wpa_s,
+ unsigned int freq, const u8 *dst,
+ const u8 *src, const u8 *bssid,
+ const u8 *data, size_t data_len,
+ enum offchannel_send_action_result
+ result));
+void offchannel_send_action_done(struct wpa_supplicant *wpa_s);
+void offchannel_remain_on_channel_cb(struct wpa_supplicant *wpa_s,
+ unsigned int freq, unsigned int duration);
+void offchannel_cancel_remain_on_channel_cb(struct wpa_supplicant *wpa_s,
+ unsigned int freq);
+void offchannel_deinit(struct wpa_supplicant *wpa_s);
+void offchannel_send_action_tx_status(
+ struct wpa_supplicant *wpa_s, const u8 *dst, const u8 *data,
+ size_t data_len, enum offchannel_send_action_result result);
+
+#endif /* OFFCHANNEL_H */