Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0+ */
0002 /* Copyright (c) 2016 Quantenna Communications. All rights reserved. */
0003 
0004 #ifndef QLINK_COMMANDS_H_
0005 #define QLINK_COMMANDS_H_
0006 
0007 #include <linux/nl80211.h>
0008 
0009 #include "core.h"
0010 #include "bus.h"
0011 
0012 int qtnf_cmd_send_init_fw(struct qtnf_bus *bus);
0013 void qtnf_cmd_send_deinit_fw(struct qtnf_bus *bus);
0014 int qtnf_cmd_get_hw_info(struct qtnf_bus *bus);
0015 int qtnf_cmd_get_mac_info(struct qtnf_wmac *mac);
0016 int qtnf_cmd_send_add_intf(struct qtnf_vif *vif, enum nl80211_iftype iftype,
0017                int use4addr, u8 *mac_addr);
0018 int qtnf_cmd_send_change_intf_type(struct qtnf_vif *vif,
0019                    enum nl80211_iftype iftype,
0020                    int use4addr,
0021                    u8 *mac_addr);
0022 int qtnf_cmd_send_del_intf(struct qtnf_vif *vif);
0023 int qtnf_cmd_band_info_get(struct qtnf_wmac *mac,
0024                struct ieee80211_supported_band *band);
0025 int qtnf_cmd_send_regulatory_config(struct qtnf_wmac *mac, const char *alpha2);
0026 int qtnf_cmd_send_start_ap(struct qtnf_vif *vif,
0027                const struct cfg80211_ap_settings *s);
0028 int qtnf_cmd_send_stop_ap(struct qtnf_vif *vif);
0029 int qtnf_cmd_send_register_mgmt(struct qtnf_vif *vif, u16 frame_type, bool reg);
0030 int qtnf_cmd_send_frame(struct qtnf_vif *vif, u32 cookie, u16 flags,
0031             u16 freq, const u8 *buf, size_t len);
0032 int qtnf_cmd_send_mgmt_set_appie(struct qtnf_vif *vif, u8 frame_type,
0033                  const u8 *buf, size_t len);
0034 int qtnf_cmd_get_sta_info(struct qtnf_vif *vif, const u8 *sta_mac,
0035               struct station_info *sinfo);
0036 int qtnf_cmd_send_phy_params(struct qtnf_wmac *mac, u16 cmd_action,
0037                  void *data_buf);
0038 int qtnf_cmd_send_add_key(struct qtnf_vif *vif, u8 key_index, bool pairwise,
0039               const u8 *mac_addr, struct key_params *params);
0040 int qtnf_cmd_send_del_key(struct qtnf_vif *vif, u8 key_index, bool pairwise,
0041               const u8 *mac_addr);
0042 int qtnf_cmd_send_set_default_key(struct qtnf_vif *vif, u8 key_index,
0043                   bool unicast, bool multicast);
0044 int qtnf_cmd_send_set_default_mgmt_key(struct qtnf_vif *vif, u8 key_index);
0045 int qtnf_cmd_send_add_sta(struct qtnf_vif *vif, const u8 *mac,
0046               struct station_parameters *params);
0047 int qtnf_cmd_send_change_sta(struct qtnf_vif *vif, const u8 *mac,
0048                  struct station_parameters *params);
0049 int qtnf_cmd_send_del_sta(struct qtnf_vif *vif,
0050               struct station_del_parameters *params);
0051 int qtnf_cmd_send_scan(struct qtnf_wmac *mac);
0052 int qtnf_cmd_send_connect(struct qtnf_vif *vif,
0053               struct cfg80211_connect_params *sme);
0054 int qtnf_cmd_send_external_auth(struct qtnf_vif *vif,
0055                 struct cfg80211_external_auth_params *auth);
0056 int qtnf_cmd_send_disconnect(struct qtnf_vif *vif,
0057                  u16 reason_code);
0058 int qtnf_cmd_send_updown_intf(struct qtnf_vif *vif,
0059                   bool up);
0060 int qtnf_cmd_reg_notify(struct qtnf_wmac *mac, struct regulatory_request *req,
0061             bool slave_radar, bool dfs_offload);
0062 int qtnf_cmd_get_chan_stats(struct qtnf_wmac *mac, u32 chan_freq,
0063                 struct survey_info *survey);
0064 int qtnf_cmd_send_chan_switch(struct qtnf_vif *vif,
0065                   struct cfg80211_csa_settings *params);
0066 int qtnf_cmd_get_channel(struct qtnf_vif *vif, struct cfg80211_chan_def *chdef);
0067 int qtnf_cmd_start_cac(const struct qtnf_vif *vif,
0068                const struct cfg80211_chan_def *chdef,
0069                u32 cac_time_ms);
0070 int qtnf_cmd_set_mac_acl(const struct qtnf_vif *vif,
0071              const struct cfg80211_acl_data *params);
0072 int qtnf_cmd_send_pm_set(const struct qtnf_vif *vif, u8 pm_mode, int timeout);
0073 int qtnf_cmd_get_tx_power(const struct qtnf_vif *vif, int *dbm);
0074 int qtnf_cmd_set_tx_power(const struct qtnf_vif *vif,
0075               enum nl80211_tx_power_setting type, int mbm);
0076 int qtnf_cmd_send_wowlan_set(const struct qtnf_vif *vif,
0077                  const struct cfg80211_wowlan *wowl);
0078 int qtnf_cmd_netdev_changeupper(const struct qtnf_vif *vif, int br_domain);
0079 int qtnf_cmd_send_update_owe(struct qtnf_vif *vif,
0080                  struct cfg80211_update_owe_info *owe);
0081 
0082 #endif /* QLINK_COMMANDS_H_ */