Fork of WIFI_API_32kRAM by
WIFI_Driver/nmc/strc.h@27:40ec92889c3c, 2016-01-26 (annotated)
- Committer:
- gillwei7
- Date:
- Tue Jan 26 09:30:40 2016 +0000
- Revision:
- 27:40ec92889c3c
- Parent:
- 20:9c3f423b0566
Turn down WIFI_API_DEBUG_LOG in wifi_api.h
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
wgd8700 | 20:9c3f423b0566 | 1 | #include "nmi_wlan.h" |
wgd8700 | 20:9c3f423b0566 | 2 | #include "nmi_wlan_if.h" |
wgd8700 | 20:9c3f423b0566 | 3 | |
wgd8700 | 20:9c3f423b0566 | 4 | #ifndef __STRC_H__ |
wgd8700 | 20:9c3f423b0566 | 5 | #define __STRC_H__ |
wgd8700 | 20:9c3f423b0566 | 6 | |
wgd8700 | 20:9c3f423b0566 | 7 | typedef struct { |
wgd8700 | 20:9c3f423b0566 | 8 | void *priv; |
wgd8700 | 20:9c3f423b0566 | 9 | void (*scan_callback)(void *, nmi_wl_bss_t *, int, int); |
wgd8700 | 20:9c3f423b0566 | 10 | } scan_session_t; |
wgd8700 | 20:9c3f423b0566 | 11 | |
wgd8700 | 20:9c3f423b0566 | 12 | typedef struct { |
wgd8700 | 20:9c3f423b0566 | 13 | int bss_type; |
wgd8700 | 20:9c3f423b0566 | 14 | int connect; |
wgd8700 | 20:9c3f423b0566 | 15 | void *priv; |
wgd8700 | 20:9c3f423b0566 | 16 | u8 sa[6]; |
wgd8700 | 20:9c3f423b0566 | 17 | u8 bssid[6]; |
wgd8700 | 20:9c3f423b0566 | 18 | void (*join_callback)(void *, nmi_wl_join_rsp_t *); |
wgd8700 | 20:9c3f423b0566 | 19 | void (*disconnect_callback)(void *); |
wgd8700 | 20:9c3f423b0566 | 20 | int dhcp_check; |
wgd8700 | 20:9c3f423b0566 | 21 | |
wgd8700 | 20:9c3f423b0566 | 22 | } join_session_t; |
wgd8700 | 20:9c3f423b0566 | 23 | |
wgd8700 | 20:9c3f423b0566 | 24 | typedef struct wlan_t { |
wgd8700 | 20:9c3f423b0566 | 25 | |
wgd8700 | 20:9c3f423b0566 | 26 | u32 chipid; |
wgd8700 | 20:9c3f423b0566 | 27 | u32 fw_state; |
wgd8700 | 20:9c3f423b0566 | 28 | |
wgd8700 | 20:9c3f423b0566 | 29 | /** |
wgd8700 | 20:9c3f423b0566 | 30 | **/ |
wgd8700 | 20:9c3f423b0566 | 31 | nmi_wl_platform_t plat; |
wgd8700 | 20:9c3f423b0566 | 32 | nmi_wl_if_t hif; |
wgd8700 | 20:9c3f423b0566 | 33 | |
wgd8700 | 20:9c3f423b0566 | 34 | /** |
wgd8700 | 20:9c3f423b0566 | 35 | TX queue |
wgd8700 | 20:9c3f423b0566 | 36 | **/ |
wgd8700 | 20:9c3f423b0566 | 37 | que_hdr_t txq_h; |
wgd8700 | 20:9c3f423b0566 | 38 | |
wgd8700 | 20:9c3f423b0566 | 39 | /** |
wgd8700 | 20:9c3f423b0566 | 40 | RX queue |
wgd8700 | 20:9c3f423b0566 | 41 | **/ |
wgd8700 | 20:9c3f423b0566 | 42 | que_hdr_t rxq_h; |
wgd8700 | 20:9c3f423b0566 | 43 | |
wgd8700 | 20:9c3f423b0566 | 44 | /** |
wgd8700 | 20:9c3f423b0566 | 45 | CFG queue |
wgd8700 | 20:9c3f423b0566 | 46 | **/ |
wgd8700 | 20:9c3f423b0566 | 47 | que_hdr_t cfg_w_h; |
wgd8700 | 20:9c3f423b0566 | 48 | que_hdr_t cfg_q_h; |
wgd8700 | 20:9c3f423b0566 | 49 | que_hdr_t cfg_q_rsp_h; |
wgd8700 | 20:9c3f423b0566 | 50 | u32 cfg_id; |
wgd8700 | 20:9c3f423b0566 | 51 | |
wgd8700 | 20:9c3f423b0566 | 52 | scan_session_t scan_sess; |
wgd8700 | 20:9c3f423b0566 | 53 | join_session_t join_sess; |
wgd8700 | 20:9c3f423b0566 | 54 | |
wgd8700 | 20:9c3f423b0566 | 55 | int rx_isr; |
wgd8700 | 20:9c3f423b0566 | 56 | int sleep; |
wgd8700 | 20:9c3f423b0566 | 57 | int fw_en_sleep; |
wgd8700 | 20:9c3f423b0566 | 58 | |
wgd8700 | 20:9c3f423b0566 | 59 | u8 mac_addr[6]; /* ksong add 2013.5.16 */ |
wgd8700 | 20:9c3f423b0566 | 60 | |
wgd8700 | 20:9c3f423b0566 | 61 | u32 scan_cmd_cnt; /* ksong 2013-8-9 */ |
wgd8700 | 20:9c3f423b0566 | 62 | u32 join_cmd_cnt; /* ksong 2013-8-9 */ |
wgd8700 | 20:9c3f423b0566 | 63 | |
wgd8700 | 20:9c3f423b0566 | 64 | #ifdef STATIC_TX_BUFFER |
wgd8700 | 20:9c3f423b0566 | 65 | u8 tx_buffer[1600];//[8*1024]; |
wgd8700 | 20:9c3f423b0566 | 66 | #endif |
wgd8700 | 20:9c3f423b0566 | 67 | |
wgd8700 | 20:9c3f423b0566 | 68 | } nmi_wlan_t; |
wgd8700 | 20:9c3f423b0566 | 69 | |
wgd8700 | 20:9c3f423b0566 | 70 | #endif |