1
2
3
4
5
6
7
8
9
10#ifndef WFX_HIF_TX_H
11#define WFX_HIF_TX_H
12
13struct ieee80211_channel;
14struct ieee80211_bss_conf;
15struct ieee80211_tx_queue_params;
16struct cfg80211_scan_request;
17struct hif_req_add_key;
18struct wfx_dev;
19struct wfx_vif;
20
21struct wfx_hif_cmd {
22 struct mutex lock;
23 struct completion ready;
24 struct completion done;
25 struct hif_msg *buf_send;
26 void *buf_recv;
27 size_t len_recv;
28 int ret;
29};
30
31void wfx_init_hif_cmd(struct wfx_hif_cmd *wfx_hif_cmd);
32int wfx_cmd_send(struct wfx_dev *wdev, struct hif_msg *request,
33 void *reply, size_t reply_len, bool async);
34
35int hif_shutdown(struct wfx_dev *wdev);
36int hif_configuration(struct wfx_dev *wdev, const u8 *conf, size_t len);
37int hif_reset(struct wfx_vif *wvif, bool reset_stat);
38int hif_read_mib(struct wfx_dev *wdev, int vif_id, u16 mib_id,
39 void *buf, size_t buf_size);
40int hif_write_mib(struct wfx_dev *wdev, int vif_id, u16 mib_id,
41 void *buf, size_t buf_size);
42int hif_scan(struct wfx_vif *wvif, struct cfg80211_scan_request *req80211,
43 int chan_start, int chan_num, int *timeout);
44int hif_stop_scan(struct wfx_vif *wvif);
45int hif_join(struct wfx_vif *wvif, const struct ieee80211_bss_conf *conf,
46 struct ieee80211_channel *channel, const u8 *ssid, int ssidlen);
47int hif_set_pm(struct wfx_vif *wvif, bool ps, int dynamic_ps_timeout);
48int hif_set_bss_params(struct wfx_vif *wvif, int aid, int beacon_lost_count);
49int hif_add_key(struct wfx_dev *wdev, const struct hif_req_add_key *arg);
50int hif_remove_key(struct wfx_dev *wdev, int idx);
51int hif_set_edca_queue_params(struct wfx_vif *wvif, u16 queue,
52 const struct ieee80211_tx_queue_params *arg);
53int hif_start(struct wfx_vif *wvif, const struct ieee80211_bss_conf *conf,
54 const struct ieee80211_channel *channel);
55int hif_beacon_transmit(struct wfx_vif *wvif, bool enable);
56int hif_map_link(struct wfx_vif *wvif,
57 bool unmap, u8 *mac_addr, int sta_id, bool mfp);
58int hif_update_ie_beacon(struct wfx_vif *wvif, const u8 *ies, size_t ies_len);
59
60#endif
61