Linux Audio

Check our new training course

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