offchannel.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435
  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 software may be distributed under the terms of the BSD license.
  7. * See README for more details.
  8. */
  9. #ifndef OFFCHANNEL_H
  10. #define OFFCHANNEL_H
  11. int offchannel_send_action(struct wpa_supplicant *wpa_s, unsigned int freq,
  12. const u8 *dst, const u8 *src, const u8 *bssid,
  13. const u8 *buf, size_t len, unsigned int wait_time,
  14. void (*tx_cb)(struct wpa_supplicant *wpa_s,
  15. unsigned int freq, const u8 *dst,
  16. const u8 *src, const u8 *bssid,
  17. const u8 *data, size_t data_len,
  18. enum offchannel_send_action_result
  19. result),
  20. int no_cck);
  21. void offchannel_send_action_done(struct wpa_supplicant *wpa_s);
  22. void offchannel_remain_on_channel_cb(struct wpa_supplicant *wpa_s,
  23. unsigned int freq, unsigned int duration);
  24. void offchannel_cancel_remain_on_channel_cb(struct wpa_supplicant *wpa_s,
  25. unsigned int freq);
  26. void offchannel_deinit(struct wpa_supplicant *wpa_s);
  27. void offchannel_send_action_tx_status(
  28. struct wpa_supplicant *wpa_s, const u8 *dst, const u8 *data,
  29. size_t data_len, enum offchannel_send_action_result result);
  30. const void * offchannel_pending_action_tx(struct wpa_supplicant *wpa_s);
  31. void offchannel_clear_pending_action_tx(struct wpa_supplicant *wpa_s);
  32. #endif /* OFFCHANNEL_H */