commands.h 3.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. /* SPDX-License-Identifier: GPL-2.0+ */
  2. /* Copyright (c) 2016 Quantenna Communications. All rights reserved. */
  3. #ifndef QLINK_COMMANDS_H_
  4. #define QLINK_COMMANDS_H_
  5. #include <linux/nl80211.h>
  6. #include "core.h"
  7. #include "bus.h"
  8. int qtnf_cmd_send_init_fw(struct qtnf_bus *bus);
  9. void qtnf_cmd_send_deinit_fw(struct qtnf_bus *bus);
  10. int qtnf_cmd_get_hw_info(struct qtnf_bus *bus);
  11. int qtnf_cmd_get_mac_info(struct qtnf_wmac *mac);
  12. int qtnf_cmd_send_add_intf(struct qtnf_vif *vif, enum nl80211_iftype iftype,
  13. int use4addr, u8 *mac_addr);
  14. int qtnf_cmd_send_change_intf_type(struct qtnf_vif *vif,
  15. enum nl80211_iftype iftype,
  16. int use4addr,
  17. u8 *mac_addr);
  18. int qtnf_cmd_send_del_intf(struct qtnf_vif *vif);
  19. int qtnf_cmd_band_info_get(struct qtnf_wmac *mac,
  20. struct ieee80211_supported_band *band);
  21. int qtnf_cmd_send_regulatory_config(struct qtnf_wmac *mac, const char *alpha2);
  22. int qtnf_cmd_send_start_ap(struct qtnf_vif *vif,
  23. const struct cfg80211_ap_settings *s);
  24. int qtnf_cmd_send_stop_ap(struct qtnf_vif *vif);
  25. int qtnf_cmd_send_register_mgmt(struct qtnf_vif *vif, u16 frame_type, bool reg);
  26. int qtnf_cmd_send_frame(struct qtnf_vif *vif, u32 cookie, u16 flags,
  27. u16 freq, const u8 *buf, size_t len);
  28. int qtnf_cmd_send_mgmt_set_appie(struct qtnf_vif *vif, u8 frame_type,
  29. const u8 *buf, size_t len);
  30. int qtnf_cmd_get_sta_info(struct qtnf_vif *vif, const u8 *sta_mac,
  31. struct station_info *sinfo);
  32. int qtnf_cmd_send_phy_params(struct qtnf_wmac *mac, u16 cmd_action,
  33. void *data_buf);
  34. int qtnf_cmd_send_add_key(struct qtnf_vif *vif, u8 key_index, bool pairwise,
  35. const u8 *mac_addr, struct key_params *params);
  36. int qtnf_cmd_send_del_key(struct qtnf_vif *vif, u8 key_index, bool pairwise,
  37. const u8 *mac_addr);
  38. int qtnf_cmd_send_set_default_key(struct qtnf_vif *vif, u8 key_index,
  39. bool unicast, bool multicast);
  40. int qtnf_cmd_send_set_default_mgmt_key(struct qtnf_vif *vif, u8 key_index);
  41. int qtnf_cmd_send_add_sta(struct qtnf_vif *vif, const u8 *mac,
  42. struct station_parameters *params);
  43. int qtnf_cmd_send_change_sta(struct qtnf_vif *vif, const u8 *mac,
  44. struct station_parameters *params);
  45. int qtnf_cmd_send_del_sta(struct qtnf_vif *vif,
  46. struct station_del_parameters *params);
  47. int qtnf_cmd_send_scan(struct qtnf_wmac *mac);
  48. int qtnf_cmd_send_connect(struct qtnf_vif *vif,
  49. struct cfg80211_connect_params *sme);
  50. int qtnf_cmd_send_external_auth(struct qtnf_vif *vif,
  51. struct cfg80211_external_auth_params *auth);
  52. int qtnf_cmd_send_disconnect(struct qtnf_vif *vif,
  53. u16 reason_code);
  54. int qtnf_cmd_send_updown_intf(struct qtnf_vif *vif,
  55. bool up);
  56. int qtnf_cmd_reg_notify(struct qtnf_wmac *mac, struct regulatory_request *req,
  57. bool slave_radar, bool dfs_offload);
  58. int qtnf_cmd_get_chan_stats(struct qtnf_wmac *mac, u32 chan_freq,
  59. struct survey_info *survey);
  60. int qtnf_cmd_send_chan_switch(struct qtnf_vif *vif,
  61. struct cfg80211_csa_settings *params);
  62. int qtnf_cmd_get_channel(struct qtnf_vif *vif, struct cfg80211_chan_def *chdef);
  63. int qtnf_cmd_start_cac(const struct qtnf_vif *vif,
  64. const struct cfg80211_chan_def *chdef,
  65. u32 cac_time_ms);
  66. int qtnf_cmd_set_mac_acl(const struct qtnf_vif *vif,
  67. const struct cfg80211_acl_data *params);
  68. int qtnf_cmd_send_pm_set(const struct qtnf_vif *vif, u8 pm_mode, int timeout);
  69. int qtnf_cmd_get_tx_power(const struct qtnf_vif *vif, int *dbm);
  70. int qtnf_cmd_set_tx_power(const struct qtnf_vif *vif,
  71. enum nl80211_tx_power_setting type, int mbm);
  72. int qtnf_cmd_send_wowlan_set(const struct qtnf_vif *vif,
  73. const struct cfg80211_wowlan *wowl);
  74. int qtnf_cmd_netdev_changeupper(const struct qtnf_vif *vif, int br_domain);
  75. int qtnf_cmd_send_update_owe(struct qtnf_vif *vif,
  76. struct cfg80211_update_owe_info *owe);
  77. #endif /* QLINK_COMMANDS_H_ */