commands.h 3.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. /*
  2. * Copyright (c) 2016 Quantenna Communications, Inc.
  3. *
  4. * This program is free software; you can redistribute it and/or
  5. * modify it under the terms of the GNU General Public License
  6. * as published by the Free Software Foundation; either version 2
  7. * of the License, or (at your option) any later version.
  8. *
  9. * This program is distributed in the hope that it will be useful,
  10. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. * GNU General Public License for more details.
  13. *
  14. */
  15. #ifndef QLINK_COMMANDS_H_
  16. #define QLINK_COMMANDS_H_
  17. #include <linux/nl80211.h>
  18. #include "core.h"
  19. #include "bus.h"
  20. int qtnf_cmd_send_init_fw(struct qtnf_bus *bus);
  21. void qtnf_cmd_send_deinit_fw(struct qtnf_bus *bus);
  22. int qtnf_cmd_get_hw_info(struct qtnf_bus *bus);
  23. int qtnf_cmd_get_mac_info(struct qtnf_wmac *mac);
  24. int qtnf_cmd_send_add_intf(struct qtnf_vif *vif, enum nl80211_iftype iftype,
  25. u8 *mac_addr);
  26. int qtnf_cmd_send_change_intf_type(struct qtnf_vif *vif,
  27. enum nl80211_iftype iftype, u8 *mac_addr);
  28. int qtnf_cmd_send_del_intf(struct qtnf_vif *vif);
  29. int qtnf_cmd_band_info_get(struct qtnf_wmac *mac,
  30. struct ieee80211_supported_band *band);
  31. int qtnf_cmd_send_regulatory_config(struct qtnf_wmac *mac, const char *alpha2);
  32. int qtnf_cmd_send_start_ap(struct qtnf_vif *vif,
  33. const struct cfg80211_ap_settings *s);
  34. int qtnf_cmd_send_stop_ap(struct qtnf_vif *vif);
  35. int qtnf_cmd_send_register_mgmt(struct qtnf_vif *vif, u16 frame_type, bool reg);
  36. int qtnf_cmd_send_mgmt_frame(struct qtnf_vif *vif, u32 cookie, u16 flags,
  37. u16 freq, const u8 *buf, size_t len);
  38. int qtnf_cmd_send_mgmt_set_appie(struct qtnf_vif *vif, u8 frame_type,
  39. const u8 *buf, size_t len);
  40. int qtnf_cmd_get_sta_info(struct qtnf_vif *vif, const u8 *sta_mac,
  41. struct station_info *sinfo);
  42. int qtnf_cmd_send_phy_params(struct qtnf_wmac *mac, u16 cmd_action,
  43. void *data_buf);
  44. int qtnf_cmd_send_add_key(struct qtnf_vif *vif, u8 key_index, bool pairwise,
  45. const u8 *mac_addr, struct key_params *params);
  46. int qtnf_cmd_send_del_key(struct qtnf_vif *vif, u8 key_index, bool pairwise,
  47. const u8 *mac_addr);
  48. int qtnf_cmd_send_set_default_key(struct qtnf_vif *vif, u8 key_index,
  49. bool unicast, bool multicast);
  50. int qtnf_cmd_send_set_default_mgmt_key(struct qtnf_vif *vif, u8 key_index);
  51. int qtnf_cmd_send_add_sta(struct qtnf_vif *vif, const u8 *mac,
  52. struct station_parameters *params);
  53. int qtnf_cmd_send_change_sta(struct qtnf_vif *vif, const u8 *mac,
  54. struct station_parameters *params);
  55. int qtnf_cmd_send_del_sta(struct qtnf_vif *vif,
  56. struct station_del_parameters *params);
  57. int qtnf_cmd_send_scan(struct qtnf_wmac *mac);
  58. int qtnf_cmd_send_connect(struct qtnf_vif *vif,
  59. struct cfg80211_connect_params *sme);
  60. int qtnf_cmd_send_disconnect(struct qtnf_vif *vif,
  61. u16 reason_code);
  62. int qtnf_cmd_send_updown_intf(struct qtnf_vif *vif,
  63. bool up);
  64. int qtnf_cmd_reg_notify(struct qtnf_bus *bus, struct regulatory_request *req);
  65. int qtnf_cmd_get_chan_stats(struct qtnf_wmac *mac, u16 channel,
  66. struct qtnf_chan_stats *stats);
  67. int qtnf_cmd_send_chan_switch(struct qtnf_vif *vif,
  68. struct cfg80211_csa_settings *params);
  69. int qtnf_cmd_get_channel(struct qtnf_vif *vif, struct cfg80211_chan_def *chdef);
  70. int qtnf_cmd_start_cac(const struct qtnf_vif *vif,
  71. const struct cfg80211_chan_def *chdef,
  72. u32 cac_time_ms);
  73. int qtnf_cmd_set_mac_acl(const struct qtnf_vif *vif,
  74. const struct cfg80211_acl_data *params);
  75. #endif /* QLINK_COMMANDS_H_ */