forked from al177/esp8089
-
Notifications
You must be signed in to change notification settings - Fork 10
/
esp_ctrl.h
58 lines (42 loc) · 1.93 KB
/
esp_ctrl.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
/*
* Copyright (c) 2009- 2014 Espressif System.
*
* SIP ctrl packet parse and pack
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*/
#ifndef _ESP_CTRL_H_
#define _ESP_CTRL_H_
int sip_send_loopback_mblk(struct esp_sip *sip, int txpacket_len,
int rxpacket_len, int packet_id);
int sip_send_config(struct esp_pub *epub, struct ieee80211_conf *conf);
int sip_send_setkey(struct esp_pub *epub, u8 bssid_no, u8 * peer_addr,
struct ieee80211_key_conf *key, u8 isvalid);
int sip_send_scan(struct esp_pub *epub);
void sip_scandone_process(struct esp_sip *sip,
struct sip_evt_scan_report *scan_report);
int sip_send_bss_info_update(struct esp_pub *epub, struct esp_vif *evif,
u8 * bssid, int assoc);
int sip_send_wmm_params(struct esp_pub *epub, u8 aci,
const struct ieee80211_tx_queue_params *params);
int sip_send_ampdu_action(struct esp_pub *epub, u8 action_num,
const u8 * addr, u16 tid, u16 ssn, u8 buf_size);
int sip_send_roc(struct esp_pub *epub, u16 center_freq, u16 duration);
int sip_send_set_sta(struct esp_pub *epub, u8 ifidx, u8 set,
struct ieee80211_sta *sta, struct ieee80211_vif *vif,
u8 index);
int sip_send_suspend_config(struct esp_pub *epub, u8 suspend);
int sip_send_ps_config(struct esp_pub *epub, struct esp_ps *ps);
int sip_parse_events(struct esp_sip *sip, u8 * buf);
int sip_send_recalc_credit(struct esp_pub *epub);
int sip_cmd(struct esp_pub *epub, enum sip_cmd_id cmd_id, u8 * cmd_buf,
u8 cmd_len);
#endif /* _ESP_CTRL_H_ */