Dmitry Shmidt | 1f69aa5 | 2012-01-24 16:10:04 -0800 | [diff] [blame] | 1 | /* |
| 2 | * wpa_supplicant - Off-channel Action frame TX/RX |
| 3 | * Copyright (c) 2009-2010, Atheros Communications |
| 4 | * Copyright (c) 2011, Qualcomm Atheros |
| 5 | * |
| 6 | * This program is free software; you can redistribute it and/or modify |
| 7 | * it under the terms of the GNU General Public License version 2 as |
| 8 | * published by the Free Software Foundation. |
| 9 | * |
| 10 | * Alternatively, this software may be distributed under the terms of BSD |
| 11 | * license. |
| 12 | * |
| 13 | * See README and COPYING for more details. |
| 14 | */ |
| 15 | |
| 16 | #ifndef OFFCHANNEL_H |
| 17 | #define OFFCHANNEL_H |
| 18 | |
| 19 | int offchannel_send_action(struct wpa_supplicant *wpa_s, unsigned int freq, |
| 20 | const u8 *dst, const u8 *src, const u8 *bssid, |
| 21 | const u8 *buf, size_t len, unsigned int wait_time, |
| 22 | void (*tx_cb)(struct wpa_supplicant *wpa_s, |
| 23 | unsigned int freq, const u8 *dst, |
| 24 | const u8 *src, const u8 *bssid, |
| 25 | const u8 *data, size_t data_len, |
| 26 | enum offchannel_send_action_result |
| 27 | result), |
| 28 | int no_cck); |
| 29 | void offchannel_send_action_done(struct wpa_supplicant *wpa_s); |
| 30 | void offchannel_remain_on_channel_cb(struct wpa_supplicant *wpa_s, |
| 31 | unsigned int freq, unsigned int duration); |
| 32 | void offchannel_cancel_remain_on_channel_cb(struct wpa_supplicant *wpa_s, |
| 33 | unsigned int freq); |
| 34 | void offchannel_deinit(struct wpa_supplicant *wpa_s); |
| 35 | void offchannel_send_action_tx_status( |
| 36 | struct wpa_supplicant *wpa_s, const u8 *dst, const u8 *data, |
| 37 | size_t data_len, enum offchannel_send_action_result result); |
| 38 | |
| 39 | #endif /* OFFCHANNEL_H */ |