wifi->esp8089:
[firefly-linux-kernel-4.4.55.git] / drivers / net / wireless / rockchip_wlan / esp8089 / esp_driver / esp_ctrl.h
1 /*
2  *  Copyright (c) 2009- 2014 Espressif System.
3  *
4  *  SIP ctrl packet parse and pack
5  */
6 #ifndef _ESP_CTRL_H_
7 #define _ESP_CTRL_H_
8
9 int sip_send_loopback_mblk(struct esp_sip *sip, int txpacket_len, int rxpacket_len, int packet_id);
10
11 int sip_send_config(struct esp_pub *epub, struct ieee80211_conf * conf);
12
13 int sip_send_setkey(struct esp_pub *epub, u8 bssid_no, u8 *peer_addr, struct ieee80211_key_conf *key, u8 isvalid);
14
15 int sip_send_scan(struct esp_pub *epub);
16
17 void sip_scandone_process(struct esp_sip *sip, struct sip_evt_scan_report *scan_report);
18
19 int sip_send_bss_info_update(struct esp_pub *epub, struct esp_vif *evif, u8 *bssid, int assoc);
20
21 int  sip_send_wmm_params(struct esp_pub *epub, u8 aci, const struct ieee80211_tx_queue_params *params);
22
23 int sip_send_ampdu_action(struct esp_pub *epub, u8 action_num, const u8 * addr, u16 tid, u16 ssn, u8 buf_size);
24
25 int sip_send_roc(struct esp_pub *epub, u16 center_freq, u16 duration);
26
27 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 28))
28 int sip_send_set_sta(struct esp_pub *epub, u8 ifidx, u8 set, struct ieee80211_sta *sta, struct ieee80211_vif *vif, u8 index);
29 #else
30 int sip_send_set_sta(struct esp_pub *epub, u8 ifidx, u8 set, struct esp_node *node,  struct ieee80211_vif *vif, u8 index);
31 #endif
32
33 int sip_send_suspend_config(struct esp_pub *epub, u8 suspend);
34
35 int sip_send_ps_config(struct esp_pub *epub, struct esp_ps *ps);
36
37 int sip_parse_events(struct esp_sip *sip, u8 *buf);
38
39 int sip_send_recalc_credit(struct esp_pub *epub);
40
41 int sip_cmd(struct esp_pub *epub, enum sip_cmd_id cmd_id, u8 *cmd_buf, u8 cmd_len);
42
43 #endif /* _ESP_CTRL_H_ */
44