hc
2024-05-10 37f49e37ab4cb5d0bc4c60eb5c6d4dd57db767bb
kernel/drivers/net/wireless/quantenna/qtnfmac/commands.h
....@@ -1,17 +1,5 @@
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
- */
1
+/* SPDX-License-Identifier: GPL-2.0+ */
2
+/* Copyright (c) 2016 Quantenna Communications. All rights reserved. */
153
164 #ifndef QLINK_COMMANDS_H_
175 #define QLINK_COMMANDS_H_
....@@ -26,9 +14,11 @@
2614 int qtnf_cmd_get_hw_info(struct qtnf_bus *bus);
2715 int qtnf_cmd_get_mac_info(struct qtnf_wmac *mac);
2816 int qtnf_cmd_send_add_intf(struct qtnf_vif *vif, enum nl80211_iftype iftype,
29
- u8 *mac_addr);
17
+ int use4addr, u8 *mac_addr);
3018 int qtnf_cmd_send_change_intf_type(struct qtnf_vif *vif,
31
- enum nl80211_iftype iftype, u8 *mac_addr);
19
+ enum nl80211_iftype iftype,
20
+ int use4addr,
21
+ u8 *mac_addr);
3222 int qtnf_cmd_send_del_intf(struct qtnf_vif *vif);
3323 int qtnf_cmd_band_info_get(struct qtnf_wmac *mac,
3424 struct ieee80211_supported_band *band);
....@@ -37,8 +27,8 @@
3727 const struct cfg80211_ap_settings *s);
3828 int qtnf_cmd_send_stop_ap(struct qtnf_vif *vif);
3929 int qtnf_cmd_send_register_mgmt(struct qtnf_vif *vif, u16 frame_type, bool reg);
40
-int qtnf_cmd_send_mgmt_frame(struct qtnf_vif *vif, u32 cookie, u16 flags,
41
- u16 freq, const u8 *buf, size_t len);
30
+int qtnf_cmd_send_frame(struct qtnf_vif *vif, u32 cookie, u16 flags,
31
+ u16 freq, const u8 *buf, size_t len);
4232 int qtnf_cmd_send_mgmt_set_appie(struct qtnf_vif *vif, u8 frame_type,
4333 const u8 *buf, size_t len);
4434 int qtnf_cmd_get_sta_info(struct qtnf_vif *vif, const u8 *sta_mac,
....@@ -61,13 +51,16 @@
6151 int qtnf_cmd_send_scan(struct qtnf_wmac *mac);
6252 int qtnf_cmd_send_connect(struct qtnf_vif *vif,
6353 struct cfg80211_connect_params *sme);
54
+int qtnf_cmd_send_external_auth(struct qtnf_vif *vif,
55
+ struct cfg80211_external_auth_params *auth);
6456 int qtnf_cmd_send_disconnect(struct qtnf_vif *vif,
6557 u16 reason_code);
6658 int qtnf_cmd_send_updown_intf(struct qtnf_vif *vif,
6759 bool up);
68
-int qtnf_cmd_reg_notify(struct qtnf_bus *bus, struct regulatory_request *req);
69
-int qtnf_cmd_get_chan_stats(struct qtnf_wmac *mac, u16 channel,
70
- struct qtnf_chan_stats *stats);
60
+int qtnf_cmd_reg_notify(struct qtnf_wmac *mac, struct regulatory_request *req,
61
+ bool slave_radar, bool dfs_offload);
62
+int qtnf_cmd_get_chan_stats(struct qtnf_wmac *mac, u32 chan_freq,
63
+ struct survey_info *survey);
7164 int qtnf_cmd_send_chan_switch(struct qtnf_vif *vif,
7265 struct cfg80211_csa_settings *params);
7366 int qtnf_cmd_get_channel(struct qtnf_vif *vif, struct cfg80211_chan_def *chdef);
....@@ -77,7 +70,13 @@
7770 int qtnf_cmd_set_mac_acl(const struct qtnf_vif *vif,
7871 const struct cfg80211_acl_data *params);
7972 int qtnf_cmd_send_pm_set(const struct qtnf_vif *vif, u8 pm_mode, int timeout);
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);
8076 int qtnf_cmd_send_wowlan_set(const struct qtnf_vif *vif,
8177 const struct cfg80211_wowlan *wowl);
78
+int qtnf_cmd_netdev_changeupper(const struct qtnf_vif *vif, int br_domain);
79
+int qtnf_cmd_send_update_owe(struct qtnf_vif *vif,
80
+ struct cfg80211_update_owe_info *owe);
8281
8382 #endif /* QLINK_COMMANDS_H_ */