Marco Hsu / WIFI_API_32kRAM
Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers strc.h Source File

strc.h

00001 #include "nmi_wlan.h"
00002 #include "nmi_wlan_if.h"
00003 
00004 #ifndef __STRC_H__
00005  #define __STRC_H__
00006  
00007 typedef struct {
00008     void *priv;
00009     void (*scan_callback)(void *, nmi_wl_bss_t *, int, int);
00010 } scan_session_t;
00011 
00012 typedef struct {
00013     int bss_type;
00014     int connect;
00015     void *priv;
00016     u8 sa[6];
00017     u8 bssid[6];
00018     void (*join_callback)(void *, nmi_wl_join_rsp_t *);
00019     void (*disconnect_callback)(void *);
00020     int dhcp_check;
00021 
00022 } join_session_t;
00023 
00024 typedef struct wlan_t {
00025 
00026     u32 chipid;
00027     u32 fw_state;
00028 
00029     /**
00030     **/
00031     nmi_wl_platform_t plat;
00032     nmi_wl_if_t hif;    
00033 
00034     /**
00035         TX queue
00036     **/
00037     que_hdr_t txq_h;
00038 
00039     /**
00040         RX queue
00041     **/
00042     que_hdr_t rxq_h;
00043 
00044     /**
00045         CFG queue
00046     **/
00047     que_hdr_t cfg_w_h;
00048     que_hdr_t cfg_q_h;
00049     que_hdr_t cfg_q_rsp_h;
00050     u32 cfg_id;
00051 
00052     scan_session_t scan_sess;   
00053     join_session_t join_sess;
00054     
00055     int rx_isr;
00056     int sleep;
00057     int fw_en_sleep;
00058 
00059     u8 mac_addr[6];   /* ksong add 2013.5.16 */
00060 
00061     u32 scan_cmd_cnt;   /* ksong 2013-8-9 */
00062     u32 join_cmd_cnt;   /* ksong 2013-8-9 */
00063     
00064 #ifdef STATIC_TX_BUFFER
00065     u8 tx_buffer[1500];//[8*1024];
00066 #endif
00067 
00068 } nmi_wlan_t;
00069 
00070 #endif