1
2
3
4
5
6
7
8#ifndef WFX_STA_H
9#define WFX_STA_H
10
11#include <net/mac80211.h>
12
13struct wfx_dev;
14struct wfx_vif;
15
16struct wfx_sta_priv {
17 int link_id;
18 int vif_id;
19};
20
21
22int wfx_start(struct ieee80211_hw *hw);
23void wfx_stop(struct ieee80211_hw *hw);
24int wfx_config(struct ieee80211_hw *hw, u32 changed);
25int wfx_set_rts_threshold(struct ieee80211_hw *hw, u32 value);
26void wfx_set_default_unicast_key(struct ieee80211_hw *hw,
27 struct ieee80211_vif *vif, int idx);
28void wfx_configure_filter(struct ieee80211_hw *hw, unsigned int changed_flags,
29 unsigned int *total_flags, u64 unused);
30
31int wfx_add_interface(struct ieee80211_hw *hw, struct ieee80211_vif *vif);
32void wfx_remove_interface(struct ieee80211_hw *hw, struct ieee80211_vif *vif);
33int wfx_start_ap(struct ieee80211_hw *hw, struct ieee80211_vif *vif);
34void wfx_stop_ap(struct ieee80211_hw *hw, struct ieee80211_vif *vif);
35int wfx_join_ibss(struct ieee80211_hw *hw, struct ieee80211_vif *vif);
36void wfx_leave_ibss(struct ieee80211_hw *hw, struct ieee80211_vif *vif);
37int wfx_conf_tx(struct ieee80211_hw *hw, struct ieee80211_vif *vif,
38 u16 queue, const struct ieee80211_tx_queue_params *params);
39void wfx_bss_info_changed(struct ieee80211_hw *hw, struct ieee80211_vif *vif,
40 struct ieee80211_bss_conf *info, u32 changed);
41int wfx_sta_add(struct ieee80211_hw *hw, struct ieee80211_vif *vif,
42 struct ieee80211_sta *sta);
43int wfx_sta_remove(struct ieee80211_hw *hw, struct ieee80211_vif *vif,
44 struct ieee80211_sta *sta);
45void wfx_sta_notify(struct ieee80211_hw *hw, struct ieee80211_vif *vif,
46 enum sta_notify_cmd cmd, struct ieee80211_sta *sta);
47int wfx_set_tim(struct ieee80211_hw *hw, struct ieee80211_sta *sta, bool set);
48int wfx_ampdu_action(struct ieee80211_hw *hw, struct ieee80211_vif *vif,
49 struct ieee80211_ampdu_params *params);
50int wfx_add_chanctx(struct ieee80211_hw *hw,
51 struct ieee80211_chanctx_conf *conf);
52void wfx_remove_chanctx(struct ieee80211_hw *hw,
53 struct ieee80211_chanctx_conf *conf);
54void wfx_change_chanctx(struct ieee80211_hw *hw,
55 struct ieee80211_chanctx_conf *conf, u32 changed);
56int wfx_assign_vif_chanctx(struct ieee80211_hw *hw, struct ieee80211_vif *vif,
57 struct ieee80211_chanctx_conf *conf);
58void wfx_unassign_vif_chanctx(struct ieee80211_hw *hw,
59 struct ieee80211_vif *vif,
60 struct ieee80211_chanctx_conf *conf);
61
62
63void wfx_cooling_timeout_work(struct work_struct *work);
64void wfx_suspend_hot_dev(struct wfx_dev *wdev, enum sta_notify_cmd cmd);
65void wfx_suspend_resume_mc(struct wfx_vif *wvif, enum sta_notify_cmd cmd);
66void wfx_event_report_rssi(struct wfx_vif *wvif, u8 raw_rcpi_rssi);
67int wfx_update_pm(struct wfx_vif *wvif);
68
69
70void wfx_reset(struct wfx_vif *wvif);
71u32 wfx_rate_mask_to_hw(struct wfx_dev *wdev, u32 rates);
72
73#endif
74