Sergey Matyukevich | ff233cb | 2019-01-14 09:39:45 +0000 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
| 2 | /* Copyright (c) 2016 Quantenna Communications. All rights reserved. */ |
Igor Mitsyanko | 98f44cb | 2017-05-11 14:51:01 -0700 | [diff] [blame] | 3 | |
| 4 | #ifndef QLINK_COMMANDS_H_ |
| 5 | #define QLINK_COMMANDS_H_ |
| 6 | |
| 7 | #include <linux/nl80211.h> |
| 8 | |
| 9 | #include "core.h" |
| 10 | #include "bus.h" |
| 11 | |
| 12 | int qtnf_cmd_send_init_fw(struct qtnf_bus *bus); |
| 13 | void qtnf_cmd_send_deinit_fw(struct qtnf_bus *bus); |
| 14 | int qtnf_cmd_get_hw_info(struct qtnf_bus *bus); |
| 15 | int qtnf_cmd_get_mac_info(struct qtnf_wmac *mac); |
| 16 | int qtnf_cmd_send_add_intf(struct qtnf_vif *vif, enum nl80211_iftype iftype, |
Sergey Matyukevich | de624a3 | 2019-01-14 09:39:38 +0000 | [diff] [blame] | 17 | int use4addr, u8 *mac_addr); |
Igor Mitsyanko | 98f44cb | 2017-05-11 14:51:01 -0700 | [diff] [blame] | 18 | int qtnf_cmd_send_change_intf_type(struct qtnf_vif *vif, |
Sergey Matyukevich | de624a3 | 2019-01-14 09:39:38 +0000 | [diff] [blame] | 19 | enum nl80211_iftype iftype, |
| 20 | int use4addr, |
| 21 | u8 *mac_addr); |
Igor Mitsyanko | 98f44cb | 2017-05-11 14:51:01 -0700 | [diff] [blame] | 22 | int qtnf_cmd_send_del_intf(struct qtnf_vif *vif); |
Igor Mitsyanko | e294cbf | 2017-10-30 18:04:47 -0700 | [diff] [blame] | 23 | int qtnf_cmd_band_info_get(struct qtnf_wmac *mac, |
| 24 | struct ieee80211_supported_band *band); |
Igor Mitsyanko | 98f44cb | 2017-05-11 14:51:01 -0700 | [diff] [blame] | 25 | int qtnf_cmd_send_regulatory_config(struct qtnf_wmac *mac, const char *alpha2); |
Igor Mitsyanko | 17011da | 2017-10-30 18:04:53 -0700 | [diff] [blame] | 26 | int qtnf_cmd_send_start_ap(struct qtnf_vif *vif, |
| 27 | const struct cfg80211_ap_settings *s); |
Igor Mitsyanko | 98f44cb | 2017-05-11 14:51:01 -0700 | [diff] [blame] | 28 | int qtnf_cmd_send_stop_ap(struct qtnf_vif *vif); |
| 29 | int qtnf_cmd_send_register_mgmt(struct qtnf_vif *vif, u16 frame_type, bool reg); |
Igor Mitsyanko | bc70732 | 2019-03-20 10:04:09 +0000 | [diff] [blame] | 30 | int qtnf_cmd_send_frame(struct qtnf_vif *vif, u32 cookie, u16 flags, |
| 31 | u16 freq, const u8 *buf, size_t len); |
Igor Mitsyanko | 98f44cb | 2017-05-11 14:51:01 -0700 | [diff] [blame] | 32 | int qtnf_cmd_send_mgmt_set_appie(struct qtnf_vif *vif, u8 frame_type, |
| 33 | const u8 *buf, size_t len); |
| 34 | int qtnf_cmd_get_sta_info(struct qtnf_vif *vif, const u8 *sta_mac, |
| 35 | struct station_info *sinfo); |
| 36 | int qtnf_cmd_send_phy_params(struct qtnf_wmac *mac, u16 cmd_action, |
| 37 | void *data_buf); |
| 38 | int qtnf_cmd_send_add_key(struct qtnf_vif *vif, u8 key_index, bool pairwise, |
| 39 | const u8 *mac_addr, struct key_params *params); |
| 40 | int qtnf_cmd_send_del_key(struct qtnf_vif *vif, u8 key_index, bool pairwise, |
| 41 | const u8 *mac_addr); |
| 42 | int qtnf_cmd_send_set_default_key(struct qtnf_vif *vif, u8 key_index, |
| 43 | bool unicast, bool multicast); |
| 44 | int qtnf_cmd_send_set_default_mgmt_key(struct qtnf_vif *vif, u8 key_index); |
| 45 | int qtnf_cmd_send_add_sta(struct qtnf_vif *vif, const u8 *mac, |
| 46 | struct station_parameters *params); |
| 47 | int qtnf_cmd_send_change_sta(struct qtnf_vif *vif, const u8 *mac, |
| 48 | struct station_parameters *params); |
| 49 | int qtnf_cmd_send_del_sta(struct qtnf_vif *vif, |
| 50 | struct station_del_parameters *params); |
Igor Mitsyanko | 98f44cb | 2017-05-11 14:51:01 -0700 | [diff] [blame] | 51 | int qtnf_cmd_send_scan(struct qtnf_wmac *mac); |
| 52 | int qtnf_cmd_send_connect(struct qtnf_vif *vif, |
| 53 | struct cfg80211_connect_params *sme); |
Sergey Matyukevich | 47b08e7 | 2019-02-05 09:48:57 +0000 | [diff] [blame] | 54 | int qtnf_cmd_send_external_auth(struct qtnf_vif *vif, |
| 55 | struct cfg80211_external_auth_params *auth); |
Igor Mitsyanko | 98f44cb | 2017-05-11 14:51:01 -0700 | [diff] [blame] | 56 | int qtnf_cmd_send_disconnect(struct qtnf_vif *vif, |
| 57 | u16 reason_code); |
| 58 | int qtnf_cmd_send_updown_intf(struct qtnf_vif *vif, |
| 59 | bool up); |
Igor Mitsyanko | 888f156 | 2019-04-09 07:35:10 +0000 | [diff] [blame] | 60 | int qtnf_cmd_reg_notify(struct qtnf_wmac *mac, struct regulatory_request *req, |
Sergey Matyukevich | 155b424 | 2020-01-09 16:17:52 +0300 | [diff] [blame] | 61 | bool slave_radar, bool dfs_offload); |
Sergey Matyukevich | 7c04b43 | 2017-07-28 02:06:46 +0300 | [diff] [blame] | 62 | int qtnf_cmd_get_chan_stats(struct qtnf_wmac *mac, u16 channel, |
| 63 | struct qtnf_chan_stats *stats); |
Igor Mitsyanko | 8c015b9 | 2017-09-21 14:34:34 -0700 | [diff] [blame] | 64 | int qtnf_cmd_send_chan_switch(struct qtnf_vif *vif, |
Sergey Matyukevich | 97883695 | 2017-07-28 02:06:50 +0300 | [diff] [blame] | 65 | struct cfg80211_csa_settings *params); |
Igor Mitsyanko | 9e5478b | 2017-09-21 14:34:31 -0700 | [diff] [blame] | 66 | int qtnf_cmd_get_channel(struct qtnf_vif *vif, struct cfg80211_chan_def *chdef); |
Igor Mitsyanko | b05ee45 | 2017-12-19 14:28:49 +0300 | [diff] [blame] | 67 | int qtnf_cmd_start_cac(const struct qtnf_vif *vif, |
| 68 | const struct cfg80211_chan_def *chdef, |
| 69 | u32 cac_time_ms); |
Vasily Ulyanov | f1398fd | 2017-12-19 14:28:56 +0300 | [diff] [blame] | 70 | int qtnf_cmd_set_mac_acl(const struct qtnf_vif *vif, |
| 71 | const struct cfg80211_acl_data *params); |
Sergei Maksimenko | 4775ad0 | 2018-05-31 12:10:59 +0300 | [diff] [blame] | 72 | int qtnf_cmd_send_pm_set(const struct qtnf_vif *vif, u8 pm_mode, int timeout); |
Mikhail Karpenko | 0756e91 | 2019-11-13 11:06:59 +0000 | [diff] [blame] | 73 | int qtnf_cmd_get_tx_power(const struct qtnf_vif *vif, int *dbm); |
| 74 | int qtnf_cmd_set_tx_power(const struct qtnf_vif *vif, |
| 75 | enum nl80211_tx_power_setting type, int mbm); |
Sergey Matyukevich | 28b9188 | 2018-08-02 13:40:43 +0300 | [diff] [blame] | 76 | int qtnf_cmd_send_wowlan_set(const struct qtnf_vif *vif, |
| 77 | const struct cfg80211_wowlan *wowl); |
Igor Mitsyanko | decfc5c | 2019-11-18 08:23:06 +0000 | [diff] [blame] | 78 | int qtnf_cmd_netdev_changeupper(const struct qtnf_vif *vif, int br_domain); |
Igor Mitsyanko | 98f44cb | 2017-05-11 14:51:01 -0700 | [diff] [blame] | 79 | |
| 80 | #endif /* QLINK_COMMANDS_H_ */ |