WIFI_API_20150524e

Committer:
Marcomissyou
Date:
Tue Jun 09 06:04:13 2015 +0000
Revision:
0:a2de37bf5f3d
update to WIFI_API_20150524e

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Marcomissyou 0:a2de37bf5f3d 1 #include "nmi_wlan.h"
Marcomissyou 0:a2de37bf5f3d 2 #include "nmi_wlan_if.h"
Marcomissyou 0:a2de37bf5f3d 3
Marcomissyou 0:a2de37bf5f3d 4 #ifndef __STRC_H__
Marcomissyou 0:a2de37bf5f3d 5 #define __STRC_H__
Marcomissyou 0:a2de37bf5f3d 6
Marcomissyou 0:a2de37bf5f3d 7 typedef struct {
Marcomissyou 0:a2de37bf5f3d 8 void *priv;
Marcomissyou 0:a2de37bf5f3d 9 void (*scan_callback)(void *, nmi_wl_bss_t *, int, int);
Marcomissyou 0:a2de37bf5f3d 10 } scan_session_t;
Marcomissyou 0:a2de37bf5f3d 11
Marcomissyou 0:a2de37bf5f3d 12 typedef struct {
Marcomissyou 0:a2de37bf5f3d 13 int bss_type;
Marcomissyou 0:a2de37bf5f3d 14 int connect;
Marcomissyou 0:a2de37bf5f3d 15 void *priv;
Marcomissyou 0:a2de37bf5f3d 16 u8 sa[6];
Marcomissyou 0:a2de37bf5f3d 17 u8 bssid[6];
Marcomissyou 0:a2de37bf5f3d 18 void (*join_callback)(void *, nmi_wl_join_rsp_t *);
Marcomissyou 0:a2de37bf5f3d 19 void (*disconnect_callback)(void *);
Marcomissyou 0:a2de37bf5f3d 20 int dhcp_check;
Marcomissyou 0:a2de37bf5f3d 21
Marcomissyou 0:a2de37bf5f3d 22 } join_session_t;
Marcomissyou 0:a2de37bf5f3d 23
Marcomissyou 0:a2de37bf5f3d 24 typedef struct wlan_t {
Marcomissyou 0:a2de37bf5f3d 25
Marcomissyou 0:a2de37bf5f3d 26 u32 chipid;
Marcomissyou 0:a2de37bf5f3d 27 u32 fw_state;
Marcomissyou 0:a2de37bf5f3d 28
Marcomissyou 0:a2de37bf5f3d 29 /**
Marcomissyou 0:a2de37bf5f3d 30 **/
Marcomissyou 0:a2de37bf5f3d 31 nmi_wl_platform_t plat;
Marcomissyou 0:a2de37bf5f3d 32 nmi_wl_if_t hif;
Marcomissyou 0:a2de37bf5f3d 33
Marcomissyou 0:a2de37bf5f3d 34 /**
Marcomissyou 0:a2de37bf5f3d 35 TX queue
Marcomissyou 0:a2de37bf5f3d 36 **/
Marcomissyou 0:a2de37bf5f3d 37 que_hdr_t txq_h;
Marcomissyou 0:a2de37bf5f3d 38
Marcomissyou 0:a2de37bf5f3d 39 /**
Marcomissyou 0:a2de37bf5f3d 40 RX queue
Marcomissyou 0:a2de37bf5f3d 41 **/
Marcomissyou 0:a2de37bf5f3d 42 que_hdr_t rxq_h;
Marcomissyou 0:a2de37bf5f3d 43
Marcomissyou 0:a2de37bf5f3d 44 /**
Marcomissyou 0:a2de37bf5f3d 45 CFG queue
Marcomissyou 0:a2de37bf5f3d 46 **/
Marcomissyou 0:a2de37bf5f3d 47 que_hdr_t cfg_w_h;
Marcomissyou 0:a2de37bf5f3d 48 que_hdr_t cfg_q_h;
Marcomissyou 0:a2de37bf5f3d 49 que_hdr_t cfg_q_rsp_h;
Marcomissyou 0:a2de37bf5f3d 50 u32 cfg_id;
Marcomissyou 0:a2de37bf5f3d 51
Marcomissyou 0:a2de37bf5f3d 52 scan_session_t scan_sess;
Marcomissyou 0:a2de37bf5f3d 53 join_session_t join_sess;
Marcomissyou 0:a2de37bf5f3d 54
Marcomissyou 0:a2de37bf5f3d 55 int rx_isr;
Marcomissyou 0:a2de37bf5f3d 56 int sleep;
Marcomissyou 0:a2de37bf5f3d 57 int fw_en_sleep;
Marcomissyou 0:a2de37bf5f3d 58
Marcomissyou 0:a2de37bf5f3d 59 u8 mac_addr[6]; /* ksong add 2013.5.16 */
Marcomissyou 0:a2de37bf5f3d 60
Marcomissyou 0:a2de37bf5f3d 61 u32 scan_cmd_cnt; /* ksong 2013-8-9 */
Marcomissyou 0:a2de37bf5f3d 62 u32 join_cmd_cnt; /* ksong 2013-8-9 */
Marcomissyou 0:a2de37bf5f3d 63
Marcomissyou 0:a2de37bf5f3d 64 #ifdef STATIC_TX_BUFFER
Marcomissyou 0:a2de37bf5f3d 65 u8 tx_buffer[600];//[8*1024];
Marcomissyou 0:a2de37bf5f3d 66 #endif
Marcomissyou 0:a2de37bf5f3d 67
Marcomissyou 0:a2de37bf5f3d 68 } nmi_wlan_t;
Marcomissyou 0:a2de37bf5f3d 69
Marcomissyou 0:a2de37bf5f3d 70 #endif