18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0+ */
28c2ecf20Sopenharmony_ci/* Copyright (c) 2016 Quantenna Communications. All rights reserved. */
38c2ecf20Sopenharmony_ci
48c2ecf20Sopenharmony_ci#ifndef QLINK_COMMANDS_H_
58c2ecf20Sopenharmony_ci#define QLINK_COMMANDS_H_
68c2ecf20Sopenharmony_ci
78c2ecf20Sopenharmony_ci#include <linux/nl80211.h>
88c2ecf20Sopenharmony_ci
98c2ecf20Sopenharmony_ci#include "core.h"
108c2ecf20Sopenharmony_ci#include "bus.h"
118c2ecf20Sopenharmony_ci
128c2ecf20Sopenharmony_ciint qtnf_cmd_send_init_fw(struct qtnf_bus *bus);
138c2ecf20Sopenharmony_civoid qtnf_cmd_send_deinit_fw(struct qtnf_bus *bus);
148c2ecf20Sopenharmony_ciint qtnf_cmd_get_hw_info(struct qtnf_bus *bus);
158c2ecf20Sopenharmony_ciint qtnf_cmd_get_mac_info(struct qtnf_wmac *mac);
168c2ecf20Sopenharmony_ciint qtnf_cmd_send_add_intf(struct qtnf_vif *vif, enum nl80211_iftype iftype,
178c2ecf20Sopenharmony_ci			   int use4addr, u8 *mac_addr);
188c2ecf20Sopenharmony_ciint qtnf_cmd_send_change_intf_type(struct qtnf_vif *vif,
198c2ecf20Sopenharmony_ci				   enum nl80211_iftype iftype,
208c2ecf20Sopenharmony_ci				   int use4addr,
218c2ecf20Sopenharmony_ci				   u8 *mac_addr);
228c2ecf20Sopenharmony_ciint qtnf_cmd_send_del_intf(struct qtnf_vif *vif);
238c2ecf20Sopenharmony_ciint qtnf_cmd_band_info_get(struct qtnf_wmac *mac,
248c2ecf20Sopenharmony_ci			   struct ieee80211_supported_band *band);
258c2ecf20Sopenharmony_ciint qtnf_cmd_send_regulatory_config(struct qtnf_wmac *mac, const char *alpha2);
268c2ecf20Sopenharmony_ciint qtnf_cmd_send_start_ap(struct qtnf_vif *vif,
278c2ecf20Sopenharmony_ci			   const struct cfg80211_ap_settings *s);
288c2ecf20Sopenharmony_ciint qtnf_cmd_send_stop_ap(struct qtnf_vif *vif);
298c2ecf20Sopenharmony_ciint qtnf_cmd_send_register_mgmt(struct qtnf_vif *vif, u16 frame_type, bool reg);
308c2ecf20Sopenharmony_ciint qtnf_cmd_send_frame(struct qtnf_vif *vif, u32 cookie, u16 flags,
318c2ecf20Sopenharmony_ci			u16 freq, const u8 *buf, size_t len);
328c2ecf20Sopenharmony_ciint qtnf_cmd_send_mgmt_set_appie(struct qtnf_vif *vif, u8 frame_type,
338c2ecf20Sopenharmony_ci				 const u8 *buf, size_t len);
348c2ecf20Sopenharmony_ciint qtnf_cmd_get_sta_info(struct qtnf_vif *vif, const u8 *sta_mac,
358c2ecf20Sopenharmony_ci			  struct station_info *sinfo);
368c2ecf20Sopenharmony_ciint qtnf_cmd_send_phy_params(struct qtnf_wmac *mac, u16 cmd_action,
378c2ecf20Sopenharmony_ci			     void *data_buf);
388c2ecf20Sopenharmony_ciint qtnf_cmd_send_add_key(struct qtnf_vif *vif, u8 key_index, bool pairwise,
398c2ecf20Sopenharmony_ci			  const u8 *mac_addr, struct key_params *params);
408c2ecf20Sopenharmony_ciint qtnf_cmd_send_del_key(struct qtnf_vif *vif, u8 key_index, bool pairwise,
418c2ecf20Sopenharmony_ci			  const u8 *mac_addr);
428c2ecf20Sopenharmony_ciint qtnf_cmd_send_set_default_key(struct qtnf_vif *vif, u8 key_index,
438c2ecf20Sopenharmony_ci				  bool unicast, bool multicast);
448c2ecf20Sopenharmony_ciint qtnf_cmd_send_set_default_mgmt_key(struct qtnf_vif *vif, u8 key_index);
458c2ecf20Sopenharmony_ciint qtnf_cmd_send_add_sta(struct qtnf_vif *vif, const u8 *mac,
468c2ecf20Sopenharmony_ci			  struct station_parameters *params);
478c2ecf20Sopenharmony_ciint qtnf_cmd_send_change_sta(struct qtnf_vif *vif, const u8 *mac,
488c2ecf20Sopenharmony_ci			     struct station_parameters *params);
498c2ecf20Sopenharmony_ciint qtnf_cmd_send_del_sta(struct qtnf_vif *vif,
508c2ecf20Sopenharmony_ci			  struct station_del_parameters *params);
518c2ecf20Sopenharmony_ciint qtnf_cmd_send_scan(struct qtnf_wmac *mac);
528c2ecf20Sopenharmony_ciint qtnf_cmd_send_connect(struct qtnf_vif *vif,
538c2ecf20Sopenharmony_ci			  struct cfg80211_connect_params *sme);
548c2ecf20Sopenharmony_ciint qtnf_cmd_send_external_auth(struct qtnf_vif *vif,
558c2ecf20Sopenharmony_ci				struct cfg80211_external_auth_params *auth);
568c2ecf20Sopenharmony_ciint qtnf_cmd_send_disconnect(struct qtnf_vif *vif,
578c2ecf20Sopenharmony_ci			     u16 reason_code);
588c2ecf20Sopenharmony_ciint qtnf_cmd_send_updown_intf(struct qtnf_vif *vif,
598c2ecf20Sopenharmony_ci			      bool up);
608c2ecf20Sopenharmony_ciint qtnf_cmd_reg_notify(struct qtnf_wmac *mac, struct regulatory_request *req,
618c2ecf20Sopenharmony_ci			bool slave_radar, bool dfs_offload);
628c2ecf20Sopenharmony_ciint qtnf_cmd_get_chan_stats(struct qtnf_wmac *mac, u32 chan_freq,
638c2ecf20Sopenharmony_ci			    struct survey_info *survey);
648c2ecf20Sopenharmony_ciint qtnf_cmd_send_chan_switch(struct qtnf_vif *vif,
658c2ecf20Sopenharmony_ci			      struct cfg80211_csa_settings *params);
668c2ecf20Sopenharmony_ciint qtnf_cmd_get_channel(struct qtnf_vif *vif, struct cfg80211_chan_def *chdef);
678c2ecf20Sopenharmony_ciint qtnf_cmd_start_cac(const struct qtnf_vif *vif,
688c2ecf20Sopenharmony_ci		       const struct cfg80211_chan_def *chdef,
698c2ecf20Sopenharmony_ci		       u32 cac_time_ms);
708c2ecf20Sopenharmony_ciint qtnf_cmd_set_mac_acl(const struct qtnf_vif *vif,
718c2ecf20Sopenharmony_ci			 const struct cfg80211_acl_data *params);
728c2ecf20Sopenharmony_ciint qtnf_cmd_send_pm_set(const struct qtnf_vif *vif, u8 pm_mode, int timeout);
738c2ecf20Sopenharmony_ciint qtnf_cmd_get_tx_power(const struct qtnf_vif *vif, int *dbm);
748c2ecf20Sopenharmony_ciint qtnf_cmd_set_tx_power(const struct qtnf_vif *vif,
758c2ecf20Sopenharmony_ci			  enum nl80211_tx_power_setting type, int mbm);
768c2ecf20Sopenharmony_ciint qtnf_cmd_send_wowlan_set(const struct qtnf_vif *vif,
778c2ecf20Sopenharmony_ci			     const struct cfg80211_wowlan *wowl);
788c2ecf20Sopenharmony_ciint qtnf_cmd_netdev_changeupper(const struct qtnf_vif *vif, int br_domain);
798c2ecf20Sopenharmony_ciint qtnf_cmd_send_update_owe(struct qtnf_vif *vif,
808c2ecf20Sopenharmony_ci			     struct cfg80211_update_owe_info *owe);
818c2ecf20Sopenharmony_ci
828c2ecf20Sopenharmony_ci#endif /* QLINK_COMMANDS_H_ */
83