interconnect: qcom: Fix Kconfig indentation
[linux/fpc-iii.git] / drivers / staging / wfx / sta.h
blob4ccf1b17632bf78402b4876749af0e7f59e83eed
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /*
3 * Implementation of mac80211 API.
5 * Copyright (c) 2017-2019, Silicon Laboratories, Inc.
6 * Copyright (c) 2010, ST-Ericsson
7 */
8 #ifndef WFX_STA_H
9 #define WFX_STA_H
11 #include <net/mac80211.h>
13 #include "hif_api_cmd.h"
15 struct wfx_dev;
16 struct wfx_vif;
18 enum wfx_state {
19 WFX_STATE_PASSIVE = 0,
20 WFX_STATE_PRE_STA,
21 WFX_STATE_STA,
22 WFX_STATE_IBSS,
23 WFX_STATE_AP,
26 struct wfx_ht_info {
27 struct ieee80211_sta_ht_cap ht_cap;
28 enum nl80211_channel_type channel_type;
29 u16 operation_mode;
32 struct wfx_hif_event {
33 struct list_head link;
34 struct hif_ind_event evt;
37 struct wfx_edca_params {
38 /* NOTE: index is a linux queue id. */
39 struct hif_req_edca_queue_params params[IEEE80211_NUM_ACS];
40 bool uapsd_enable[IEEE80211_NUM_ACS];
43 struct wfx_grp_addr_table {
44 bool enable;
45 int num_addresses;
46 u8 address_list[8][ETH_ALEN];
49 struct wfx_sta_priv {
50 int link_id;
51 int vif_id;
54 // mac80211 interface
55 int wfx_start(struct ieee80211_hw *hw);
56 void wfx_stop(struct ieee80211_hw *hw);
57 int wfx_config(struct ieee80211_hw *hw, u32 changed);
58 int wfx_set_rts_threshold(struct ieee80211_hw *hw, u32 value);
59 u64 wfx_prepare_multicast(struct ieee80211_hw *hw,
60 struct netdev_hw_addr_list *mc_list);
61 void wfx_configure_filter(struct ieee80211_hw *hw, unsigned int changed_flags,
62 unsigned int *total_flags, u64 unused);
64 int wfx_add_interface(struct ieee80211_hw *hw, struct ieee80211_vif *vif);
65 void wfx_remove_interface(struct ieee80211_hw *hw, struct ieee80211_vif *vif);
66 void wfx_flush(struct ieee80211_hw *hw, struct ieee80211_vif *vif,
67 u32 queues, bool drop);
68 int wfx_conf_tx(struct ieee80211_hw *hw, struct ieee80211_vif *vif,
69 u16 queue, const struct ieee80211_tx_queue_params *params);
70 void wfx_bss_info_changed(struct ieee80211_hw *hw, struct ieee80211_vif *vif,
71 struct ieee80211_bss_conf *info, u32 changed);
72 int wfx_sta_add(struct ieee80211_hw *hw, struct ieee80211_vif *vif,
73 struct ieee80211_sta *sta);
74 int wfx_sta_remove(struct ieee80211_hw *hw, struct ieee80211_vif *vif,
75 struct ieee80211_sta *sta);
76 void wfx_sta_notify(struct ieee80211_hw *hw, struct ieee80211_vif *vif,
77 enum sta_notify_cmd cmd, struct ieee80211_sta *sta);
78 int wfx_set_tim(struct ieee80211_hw *hw, struct ieee80211_sta *sta, bool set);
79 int wfx_ampdu_action(struct ieee80211_hw *hw, struct ieee80211_vif *vif,
80 struct ieee80211_ampdu_params *params);
81 int wfx_add_chanctx(struct ieee80211_hw *hw,
82 struct ieee80211_chanctx_conf *conf);
83 void wfx_remove_chanctx(struct ieee80211_hw *hw,
84 struct ieee80211_chanctx_conf *conf);
85 void wfx_change_chanctx(struct ieee80211_hw *hw,
86 struct ieee80211_chanctx_conf *conf, u32 changed);
87 int wfx_assign_vif_chanctx(struct ieee80211_hw *hw, struct ieee80211_vif *vif,
88 struct ieee80211_chanctx_conf *conf);
89 void wfx_unassign_vif_chanctx(struct ieee80211_hw *hw,
90 struct ieee80211_vif *vif,
91 struct ieee80211_chanctx_conf *conf);
93 // WSM Callbacks
94 void wfx_suspend_resume(struct wfx_vif *wvif,
95 struct hif_ind_suspend_resume_tx *arg);
97 // Other Helpers
98 void wfx_cqm_bssloss_sm(struct wfx_vif *wvif, int init, int good, int bad);
99 void wfx_update_filtering(struct wfx_vif *wvif);
100 int wfx_set_pm(struct wfx_vif *wvif, const struct hif_req_set_pm_mode *arg);
101 int wfx_fwd_probe_req(struct wfx_vif *wvif, bool enable);
103 #endif /* WFX_STA_H */