mirror of
https://github.com/pvvx/RTL00MP3.git
synced 2025-07-31 12:41:06 +00:00
update
This commit is contained in:
parent
cf7a2d9683
commit
f7b901aa27
76 changed files with 3753 additions and 3990 deletions
|
@ -108,7 +108,7 @@ SD_RESULT SD_GetCapacity(uint32_t *sector_count) {
|
|||
|
||||
//----- SD_ReadBlocks
|
||||
SD_RESULT SD_ReadBlocks(u32 sector, u8 *data, u32 count) {
|
||||
int rd_count = 0;
|
||||
int rd_count;
|
||||
unsigned char * buf;
|
||||
|
||||
if ((u32) data & 3) {
|
||||
|
@ -144,7 +144,7 @@ SD_RESULT SD_ReadBlocks(u32 sector, u8 *data, u32 count) {
|
|||
|
||||
//----- SD_WriteBlocks
|
||||
SD_RESULT SD_WriteBlocks(u32 sector, const u8 *data, u32 count) {
|
||||
int wr_count = 0;
|
||||
int wr_count;
|
||||
unsigned char * buf;
|
||||
|
||||
if ((u32) data & 3) {
|
||||
|
|
|
@ -612,20 +612,20 @@ struct _ADAPTER{
|
|||
u16 interface_type;//USB,SDIO,SPI,PCI
|
||||
u32 work_mode; //STA, AP, STA+AP, PROMISC, P2P
|
||||
|
||||
struct dvobj_priv *dvobj; //+8
|
||||
struct mlme_priv mlmepriv; //+12 [1244]
|
||||
struct mlme_ext_priv mlmeextpriv; //+1256 [912]
|
||||
struct cmd_priv cmdpriv; //+2168
|
||||
struct dvobj_priv *dvobj;
|
||||
struct mlme_priv mlmepriv;
|
||||
struct mlme_ext_priv mlmeextpriv;
|
||||
struct cmd_priv cmdpriv;
|
||||
struct evt_priv evtpriv;
|
||||
//struct io_queue *pio_queue;
|
||||
struct io_priv iopriv;
|
||||
struct xmit_priv xmitpriv; //+2248
|
||||
struct recv_priv recvpriv; //+2752
|
||||
struct sta_priv stapriv; //+3024 [164]
|
||||
struct xmit_priv xmitpriv;
|
||||
struct recv_priv recvpriv;
|
||||
struct sta_priv stapriv;
|
||||
struct security_priv securitypriv;
|
||||
struct registry_priv registrypriv; // registrypriv.power_percentage_idx +4929
|
||||
struct pwrctrl_priv pwrctrlpriv; // pwrctrlpriv.bInternalAutoSuspend //+5061
|
||||
struct eeprom_priv eeprompriv; //+5128?
|
||||
struct registry_priv registrypriv;
|
||||
struct pwrctrl_priv pwrctrlpriv;
|
||||
struct eeprom_priv eeprompriv;
|
||||
//TODO
|
||||
// struct led_priv ledpriv;
|
||||
|
||||
|
@ -666,20 +666,20 @@ struct _ADAPTER{
|
|||
struct wifi_display_info wfd_info;
|
||||
#endif //CONFIG_WFD
|
||||
|
||||
PVOID HalData; //+5656
|
||||
u32 hal_data_sz; //+5660
|
||||
struct hal_ops HalFunc; //+5664
|
||||
PVOID HalData;
|
||||
u32 hal_data_sz;
|
||||
struct hal_ops HalFunc;
|
||||
|
||||
s32 bDriverStopped; //+5880
|
||||
s32 bSurpriseRemoved; //+5884
|
||||
s32 bCardDisableWOHSM; //+5888
|
||||
u8 RxStop; //Used to stop rx thread as early as possible //+5892
|
||||
s32 bDriverStopped;
|
||||
s32 bSurpriseRemoved;
|
||||
s32 bCardDisableWOHSM;
|
||||
u8 RxStop; //Used to stop rx thread as early as possible
|
||||
|
||||
u32 IsrContent;
|
||||
u32 ImrContent;
|
||||
|
||||
u8 EepromAddressSize;
|
||||
u8 hw_init_completed; //+5905
|
||||
u8 hw_init_completed;
|
||||
u8 bDriverIsGoingToUnload;
|
||||
u8 init_adpt_in_progress;
|
||||
u8 bMpDriver;
|
||||
|
@ -692,9 +692,9 @@ struct _ADAPTER{
|
|||
_thread_hdl_ evtThread;
|
||||
#endif
|
||||
#if defined(CONFIG_ISR_THREAD_MODE_POLLING) || defined(CONFIG_ISR_THREAD_MODE_INTERRUPT)
|
||||
struct task_struct isrThread; //+5888?
|
||||
struct task_struct isrThread;
|
||||
#endif
|
||||
struct task_struct cmdThread; //+5920
|
||||
struct task_struct cmdThread;
|
||||
#ifdef CONFIG_XMIT_THREAD_MODE
|
||||
struct task_struct xmitThread;
|
||||
#endif
|
||||
|
@ -702,13 +702,13 @@ struct _ADAPTER{
|
|||
struct task_struct recvThread;
|
||||
#endif
|
||||
#ifdef CONFIG_RECV_TASKLET_THREAD
|
||||
struct task_struct recvtasklet_thread; //+5952
|
||||
struct task_struct recvtasklet_thread;
|
||||
#endif
|
||||
#ifdef CONFIG_XMIT_TASKLET_THREAD
|
||||
#ifdef PLATFORM_LINUX
|
||||
struct tasklet_struct xmit_tasklet;
|
||||
#else
|
||||
struct task_struct xmittasklet_thread; //+5984
|
||||
struct task_struct xmittasklet_thread;
|
||||
#endif
|
||||
#endif
|
||||
#ifdef CONFIG_SDIO_XMIT_THREAD
|
||||
|
@ -721,8 +721,8 @@ struct _ADAPTER{
|
|||
void (*dvobj_deinit)(struct dvobj_priv *dvobj);
|
||||
#endif
|
||||
|
||||
void (*intf_start)(_adapter * adapter); //+6008
|
||||
void (*intf_stop)(_adapter * adapter); //+6012
|
||||
void (*intf_start)(_adapter * adapter);
|
||||
void (*intf_stop)(_adapter * adapter);
|
||||
|
||||
#ifdef PLATFORM_WINDOWS
|
||||
_nic_hdl hndis_adapter;//hNdisAdapter(NDISMiniportAdapterHandle);
|
||||
|
@ -741,9 +741,9 @@ struct _ADAPTER{
|
|||
#endif //#ifdef PLATFORM_ECOS
|
||||
|
||||
#if defined(PLATFORM_FREERTOS) || defined (PLATFORM_CMSIS_RTOS)
|
||||
_nic_hdl pnetdev; //+6016
|
||||
int bup; //+6020
|
||||
struct net_device_stats stats; //+6024
|
||||
_nic_hdl pnetdev;
|
||||
int bup;
|
||||
struct net_device_stats stats;
|
||||
#endif //#ifdef PLATFORM_FREERTOS
|
||||
|
||||
#ifdef PLATFORM_LINUX
|
||||
|
@ -773,7 +773,7 @@ struct _ADAPTER{
|
|||
int bup;
|
||||
_lock glock;
|
||||
#endif //PLATFORM_FREEBSD
|
||||
u8 net_closed; //+6052
|
||||
u8 net_closed;
|
||||
|
||||
u8 bFWReady;
|
||||
//u8 bBTFWReady;
|
||||
|
@ -785,20 +785,20 @@ struct _ADAPTER{
|
|||
u8 bDisableAutosuspend;
|
||||
#endif
|
||||
|
||||
_adapter *pbuddy_adapter; //+6056
|
||||
_adapter *pbuddy_adapter;
|
||||
|
||||
_mutex *hw_init_mutex; //+6060
|
||||
_mutex *hw_init_mutex;
|
||||
#if defined(CONFIG_CONCURRENT_MODE)
|
||||
u8 isprimary; //is primary adapter or not //+6064
|
||||
u8 adapter_type; //+6065
|
||||
u8 iface_type; //interface port type //+6056
|
||||
u8 isprimary; //is primary adapter or not
|
||||
u8 adapter_type;
|
||||
u8 iface_type; //interface port type
|
||||
|
||||
//for global synchronization
|
||||
_mutex *ph2c_fwcmd_mutex; //+6068
|
||||
_mutex *psetch_mutex; //+6072
|
||||
_mutex *psetbw_mutex; //+6076
|
||||
_mutex *ph2c_fwcmd_mutex;
|
||||
_mutex *psetch_mutex;
|
||||
_mutex *psetbw_mutex;
|
||||
|
||||
struct co_data_priv *pcodatapriv;//data buffer shared among interfaces //+6080
|
||||
struct co_data_priv *pcodatapriv;//data buffer shared among interfaces
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_BR_EXT
|
||||
|
@ -827,7 +827,7 @@ struct _ADAPTER{
|
|||
PLOOPBACKDATA ploopback;
|
||||
#endif
|
||||
|
||||
u8 fix_rate; //+6084
|
||||
u8 fix_rate;
|
||||
#ifdef CONFIG_CAC_TEST
|
||||
unsigned char in_cta_test;
|
||||
#endif
|
||||
|
@ -837,7 +837,7 @@ struct _ADAPTER{
|
|||
u8 debug_level;
|
||||
#endif
|
||||
|
||||
}; // [6088] (!)
|
||||
};
|
||||
|
||||
#define adapter_to_dvobj(adapter) (adapter->dvobj)
|
||||
#define adapter_to_pwrctl(adapter) (&adapter->pwrctrlpriv)
|
||||
|
|
|
@ -234,7 +234,7 @@ struct hal_ops {
|
|||
void (*disable_interrupt)(_adapter *padapter);
|
||||
|
||||
s32 (*interrupt_handler)(_adapter *padapter);
|
||||
// void (*clear_interrupt)(_adapter *padapter); // None SDK3.5a
|
||||
void (*clear_interrupt)(_adapter *padapter);
|
||||
|
||||
#ifdef CONFIG_WOWLAN
|
||||
void (*disable_interrupt_but_cpwm2)(_adapter *padapter);
|
||||
|
|
|
@ -925,11 +925,11 @@ Result:
|
|||
|
||||
#define H2C_RSP_OFFSET 512
|
||||
|
||||
#define H2C_SUCCESS 0x00
|
||||
#define H2C_SUCCESS 0x00
|
||||
#define H2C_SUCCESS_RSP 0x01
|
||||
#define H2C_DUPLICATED 0x02
|
||||
#define H2C_DROPPED 0x03
|
||||
#define H2C_PARAMETERS_ERROR 0x04
|
||||
#define H2C_DROPPED 0x03
|
||||
#define H2C_PARAMETERS_ERROR 0x04
|
||||
#define H2C_REJECTED 0x05
|
||||
#define H2C_CMD_OVERFLOW 0x06
|
||||
#define H2C_RESERVED 0x07
|
||||
|
|
|
@ -68,7 +68,7 @@ u8 rtw_validate_ssid(NDIS_802_11_SSID *ssid);
|
|||
u16 rtw_get_cur_max_rate(_adapter *adapter);
|
||||
//int rtw_set_scan_mode(_adapter *adapter, RT_SCAN_TYPE scan_mode);
|
||||
int rtw_set_channel_plan(_adapter *adapter, u8 channel_plan);
|
||||
//int rtw_set_country(_adapter *adapter, const char *country_code);
|
||||
int rtw_set_country(_adapter *adapter, const char *country_code);
|
||||
//int rtw_set_band(_adapter *adapter, enum _BAND band);
|
||||
|
||||
#endif
|
||||
|
|
|
@ -481,13 +481,13 @@ typedef struct _RT_CHANNEL_INFO
|
|||
extern int rtw_is_channel_set_contains_channel(RT_CHANNEL_INFO *channel_set, const u32 channel_num, int *pchannel_idx);
|
||||
|
||||
#ifdef CONFIG_CUSTOM_IE
|
||||
#ifndef __CUS_IE_
|
||||
#define __CUS_IE_
|
||||
typedef struct __cus_ie
|
||||
#ifndef _CUS_IE_
|
||||
#define _CUS_IE_
|
||||
typedef struct _cus_ie
|
||||
{
|
||||
u8 *ie;
|
||||
u8 type;
|
||||
} rtw_custom_ie_t, *p_rtw_custom_ie_t;
|
||||
}rtw_custom_ie_t, *p_rtw_custom_ie_t;
|
||||
#endif /* _CUS_IE_ */
|
||||
#endif
|
||||
|
||||
|
|
|
@ -491,7 +491,7 @@ typedef enum {
|
|||
RTW_TX_PWR_PERCENTAGE_75 = 1, /* 75% */
|
||||
RTW_TX_PWR_PERCENTAGE_50 = 2, /* 50% */
|
||||
RTW_TX_PWR_PERCENTAGE_25 = 3, /* 25% */
|
||||
RTW_TX_PWR_PERCENTAGE_12_5 = 4, /* 12.5% */
|
||||
RTW_TX_PWR_PERCENTAGE_12_5 = 4 /* 12.5% */
|
||||
}rtw_tx_pwr_percentage_t;
|
||||
|
||||
/**
|
||||
|
|
|
@ -7,13 +7,7 @@
|
|||
|
||||
#include "osdep_service.h"
|
||||
#include "freertos/wrapper.h"
|
||||
//#include "wlan_bssdef.h"
|
||||
//#include "wifi_simple_config_parser.h"
|
||||
//#include "rtw_rf.h"
|
||||
#include "rtl_bios_data.h"
|
||||
#include "drv_types.h"
|
||||
#include "wlan/realtek/src/hal/hal_data.h"
|
||||
//#include "phydm.h"
|
||||
|
||||
#define _atr_aligned2_ __attribute__((aligned(2)))
|
||||
#define _atr_aligned4_ __attribute__((aligned(4)))
|
||||
|
@ -60,16 +54,16 @@ typedef uint8_t BOOLEAN;
|
|||
|
||||
typedef uint8_t u1Byte;
|
||||
typedef uint16_t u2Byte;
|
||||
//typedef uint32_t u4Byte;
|
||||
typedef uint32_t u4Byte;
|
||||
typedef uint64_t u8Byte;
|
||||
typedef uint64_t __attribute__((aligned(4))) _u8Byte;
|
||||
//typedef sint8_t s1Byte;
|
||||
typedef sint8_t s1Byte;
|
||||
typedef sint16_t s2Byte;
|
||||
//typedef sint32_t s4Byte;
|
||||
//typedef sint8_t *ps1Byte;
|
||||
typedef sint32_t s4Byte;
|
||||
typedef sint8_t *ps1Byte;
|
||||
typedef uint8_t *pu1Byte;
|
||||
typedef uint16_t *pu2Byte;
|
||||
//typedef uint32_t *pu4Byte;
|
||||
typedef uint32_t *pu4Byte;
|
||||
|
||||
typedef uint32_t sizetype;
|
||||
typedef struct _ADAPTER _adapter;
|
||||
|
@ -81,7 +75,6 @@ typedef void *_mutex;
|
|||
|
||||
typedef int (*init_done_ptr)(void);
|
||||
|
||||
/* rtw_efuse.h
|
||||
enum _EFUSE_DEF_TYPE // : sint32_t
|
||||
{
|
||||
TYPE_EFUSE_MAX_SECTION = 0x0,
|
||||
|
@ -97,9 +90,7 @@ enum _IFACE_TYPE //: sint32_t
|
|||
{
|
||||
IFACE_PORT0 = 0x0, IFACE_PORT1 = 0x1, MAX_IFACE_PORT = 0x2,
|
||||
};
|
||||
*/
|
||||
|
||||
/* rtl8195a_pmu_task.h
|
||||
enum _FW_ERR0_STATUS_ //: sint32_t
|
||||
{
|
||||
FES0_H2C_CMDID = 0x1,
|
||||
|
@ -363,7 +354,7 @@ struct atomic_t {
|
|||
_lock lock;
|
||||
};
|
||||
*/
|
||||
/* osdep_intf.h
|
||||
|
||||
struct iw_request_info {
|
||||
uint16_t cmd;
|
||||
uint16_t flags;
|
||||
|
@ -371,9 +362,7 @@ struct iw_request_info {
|
|||
|
||||
typedef int (*iw_handler)(struct net_device *, struct iw_request_info *,
|
||||
union iwreq_data *, char *);
|
||||
*/
|
||||
|
||||
/* wlan_bssdef.h
|
||||
struct _NDIS_802_11_SSID {
|
||||
uint32_t SsidLength;
|
||||
uint8_t Ssid[36];
|
||||
|
@ -466,7 +455,6 @@ struct wlan_network {
|
|||
WLAN_BSSID_EX network;
|
||||
WLAN_BCN_INFO BcnInfo;
|
||||
};
|
||||
*/
|
||||
|
||||
/* osdep_service.h
|
||||
typedef void *_timerHandle;
|
||||
|
@ -479,13 +467,12 @@ struct wlan_network {
|
|||
};
|
||||
|
||||
typedef struct timer_list _timer;
|
||||
*/
|
||||
/* rtw_qos.h
|
||||
*/
|
||||
|
||||
struct qos_priv {
|
||||
uint32_t qos_option;
|
||||
};
|
||||
*/
|
||||
/* wifi.h
|
||||
|
||||
struct __attribute__((packed)) _atr_aligned2_ rtw_ieee80211_ht_cap {
|
||||
uint16_t cap_info;
|
||||
uint8_t ampdu_params_info;
|
||||
|
@ -494,9 +481,7 @@ struct __attribute__((packed)) _atr_aligned2_ rtw_ieee80211_ht_cap {
|
|||
uint32_t tx_BF_cap_info;
|
||||
uint8_t antenna_selection_info;
|
||||
};
|
||||
*/
|
||||
|
||||
/* rtw_ht.h
|
||||
struct ht_priv {
|
||||
uint32_t ht_option;
|
||||
uint32_t ampdu_enable;
|
||||
|
@ -508,8 +493,7 @@ struct ht_priv {
|
|||
uint8_t stbc_cap;
|
||||
struct rtw_ieee80211_ht_cap ht_cap;
|
||||
};
|
||||
*/
|
||||
/* rtw_mlme.h
|
||||
|
||||
struct _atr_aligned4_ _RT_LINK_DETECT_T {
|
||||
uint32_t NumTxOkInPeriod;
|
||||
uint32_t NumRxOkInPeriod;
|
||||
|
@ -522,6 +506,7 @@ struct _atr_aligned4_ _RT_LINK_DETECT_T {
|
|||
BOOLEAN bHigherBusyTxTraffic;
|
||||
};
|
||||
typedef struct _RT_LINK_DETECT_T RT_LINK_DETECT_T;
|
||||
|
||||
enum _RT_SCAN_TYPE //: sint32_t
|
||||
{
|
||||
SCAN_PASSIVE = 0x0, SCAN_ACTIVE = 0x1, SCAN_MIX = 0x2
|
||||
|
@ -584,8 +569,7 @@ struct mlme_priv {
|
|||
uint8_t scanning_via_buddy_intf;
|
||||
struct recv_frame *p_copy_recv_frame;
|
||||
};
|
||||
*/
|
||||
/* rtw_mlme_ext.h
|
||||
|
||||
struct _atr_aligned4_ _RT_CHANNEL_INFO {
|
||||
uint8_t ChannelNum;
|
||||
RT_SCAN_TYPE ScanType; // uint8_t ScanType; // byte/dword?
|
||||
|
@ -600,8 +584,7 @@ struct ss_res {
|
|||
int scan_mode;
|
||||
NDIS_802_11_SSID ssid[1];
|
||||
};
|
||||
*/
|
||||
/* wifi.h
|
||||
|
||||
struct __attribute__((packed)) __attribute__((aligned(1))) ADDBA_request {
|
||||
uint8_t dialog_token;
|
||||
uint16_t BA_para_set;
|
||||
|
@ -640,8 +623,7 @@ struct HT_info_element {
|
|||
uint8_t infos[5];
|
||||
uint8_t MCS_rate[16];
|
||||
};
|
||||
*/
|
||||
/* rtw_mlme_ext.h
|
||||
|
||||
struct FW_Sta_Info {
|
||||
struct sta_info *psta;
|
||||
uint32_t status;
|
||||
|
@ -690,17 +672,16 @@ struct mlme_ext_info {
|
|||
struct HT_info_element HT_info;
|
||||
struct FW_Sta_Info FW_sta_info[5];
|
||||
};
|
||||
*/
|
||||
/*
|
||||
|
||||
#ifndef _CUS_IE_
|
||||
#define _CUS_IE_
|
||||
typedef struct _cus_ie{
|
||||
__u8 *ie;
|
||||
__u8 type;
|
||||
} cus_ie, *p_cus_ie;
|
||||
#endif */
|
||||
#endif /* _CUS_IE_ */
|
||||
// typedef struct _cus_ie *p_cus_ie;
|
||||
/* rtw_mlme_ext.h
|
||||
|
||||
struct mlme_ext_priv { //__attribute__((packed))?
|
||||
_adapter *padapter; //+0 padapter+1256 [912]
|
||||
uint8_t mlmeext_init;
|
||||
|
@ -744,9 +725,7 @@ struct mlme_ext_priv { //__attribute__((packed))?
|
|||
uint8_t bChDeauthDisabled;
|
||||
uint8_t bConcurrentFlushingSTA;
|
||||
};
|
||||
*/
|
||||
|
||||
/* rtw_cmd.h
|
||||
struct cmd_priv {
|
||||
_queue cmd_queue;
|
||||
uint8_t cmdthd_running;
|
||||
|
@ -759,27 +738,6 @@ struct evt_priv {
|
|||
uint8_t *evt_allocated_buf;
|
||||
uint32_t evt_done_cnt;
|
||||
};
|
||||
*/
|
||||
/* drv_types.h
|
||||
struct dvobj_priv
|
||||
{
|
||||
void *if1;
|
||||
void *if2;
|
||||
void *padapters[2];
|
||||
uint8_t iface_nums;
|
||||
uint8_t RtOutPipe[3];
|
||||
uint8_t Queue2Pipe[8];
|
||||
uint8_t irq_alloc;
|
||||
uint8_t irq_enabled;
|
||||
_lock irq_th_lock;
|
||||
};
|
||||
*/
|
||||
/* trw_io.h
|
||||
|
||||
struct fifo_more_data {
|
||||
uint32_t more_data;
|
||||
uint32_t len;
|
||||
};
|
||||
|
||||
struct _io_ops {
|
||||
int (*init_io_priv)(struct dvobj_priv *);
|
||||
|
@ -798,8 +756,7 @@ struct _io_ops {
|
|||
struct io_priv {
|
||||
struct _io_ops io_ops;
|
||||
};
|
||||
*/
|
||||
/* rtw_xmit.h
|
||||
|
||||
struct rtw_tx_ring {
|
||||
struct tx_buf_desc *desc;
|
||||
dma_addr_t dma;
|
||||
|
@ -845,8 +802,7 @@ struct _atr_aligned8_ xmit_priv {
|
|||
uint32_t free_xmit_extbuf_cnt;
|
||||
uint16_t nqos_ssn;
|
||||
};
|
||||
*/
|
||||
/* trw_recv.h
|
||||
|
||||
struct rtw_rx_ring {
|
||||
struct recv_buf_stat *desc;
|
||||
dma_addr_t dma;
|
||||
|
@ -909,8 +865,7 @@ struct _atr_aligned8_ recv_priv {
|
|||
uint16_t promisc_bk_rxfltmap2;
|
||||
uint8_t promisc_mgntframe_enabled;
|
||||
};
|
||||
*/
|
||||
/* sta_info.h
|
||||
|
||||
struct _atr_aligned4_ sta_priv {
|
||||
uint8_t *pallocated_stainfo_buf;
|
||||
uint32_t allocated_stainfo_size;
|
||||
|
@ -934,13 +889,14 @@ struct _atr_aligned4_ sta_priv {
|
|||
uint16_t tim_bitmap;
|
||||
uint16_t max_num_sta;
|
||||
};
|
||||
*/
|
||||
/* trw_security.h
|
||||
|
||||
union Keytype {
|
||||
uint8_t skey[16];
|
||||
uint32_t lkey[4];
|
||||
};
|
||||
|
||||
|
||||
|
||||
union pn48 {
|
||||
u8Byte val;
|
||||
struct {
|
||||
|
@ -954,9 +910,7 @@ union pn48 {
|
|||
uint8_t TSC7;
|
||||
}_byte_;
|
||||
};
|
||||
*/
|
||||
|
||||
/* wlan_bssdef.h
|
||||
struct _NDIS_802_11_WEP {
|
||||
uint32_t Length;
|
||||
uint32_t KeyIndex;
|
||||
|
@ -964,9 +918,7 @@ struct _NDIS_802_11_WEP {
|
|||
uint8_t KeyMaterial[16];
|
||||
};
|
||||
typedef struct _NDIS_802_11_WEP NDIS_802_11_WEP;
|
||||
*/
|
||||
|
||||
/* rtw_psk.h
|
||||
struct $D75518714447A990003EBC933C23F70E {
|
||||
uint32_t HighPart;
|
||||
uint32_t LowPart;
|
||||
|
@ -1027,9 +979,7 @@ struct _wpa_global_info {
|
|||
typedef struct _wpa_global_info WPA_GLOBAL_INFO;
|
||||
|
||||
typedef struct _wpa_sta_info WPA_STA_INFO;
|
||||
*/
|
||||
|
||||
/* rtw_security.h
|
||||
struct _atr_aligned4_ security_priv {
|
||||
uint32_t dot11AuthAlgrthm;
|
||||
uint32_t dot11PrivacyAlgrthm;
|
||||
|
@ -1073,8 +1023,7 @@ struct _atr_aligned4_ security_priv {
|
|||
uint8_t wpa_passphrase[65];
|
||||
uint8_t wps_phase;
|
||||
};
|
||||
*/
|
||||
/* derv_types.h
|
||||
|
||||
struct _atr_aligned4_ registry_priv {
|
||||
uint8_t chip_version;
|
||||
uint8_t hci;
|
||||
|
@ -1118,8 +1067,7 @@ struct _atr_aligned4_ registry_priv {
|
|||
uint8_t adaptivity_dc_backoff;
|
||||
int8_t adaptivity_th_l2h_ini;
|
||||
};
|
||||
*/
|
||||
/* trw_powerctrl.h
|
||||
|
||||
typedef void *_sema;
|
||||
|
||||
typedef _sema _pwrlock;
|
||||
|
@ -1190,8 +1138,7 @@ struct _atr_aligned4_ pwrctrl_priv {
|
|||
uint8_t tdma_rfon_period_len_3;
|
||||
uint8_t lps_dtim;
|
||||
};
|
||||
*/
|
||||
/* rtw_eeprom.h
|
||||
|
||||
struct _atr_aligned2_ eeprom_priv { // __attribute__((packed))!?
|
||||
uint8_t bautoload_fail_flag;
|
||||
uint8_t mac_addr[6];
|
||||
|
@ -1201,8 +1148,7 @@ struct _atr_aligned2_ eeprom_priv { // __attribute__((packed))!?
|
|||
uint8_t EEPROMRFGainOffset;
|
||||
uint8_t EEPROMRFGainVal;
|
||||
};
|
||||
*/
|
||||
/* rtw_rf.h
|
||||
|
||||
enum _CHANNEL_WIDTH // : sint32_t
|
||||
{
|
||||
CHANNEL_WIDTH_20 = 0x0,
|
||||
|
@ -1213,9 +1159,7 @@ enum _CHANNEL_WIDTH // : sint32_t
|
|||
CHANNEL_WIDTH_MAX = 0x5,
|
||||
};
|
||||
typedef enum _CHANNEL_WIDTH CHANNEL_WIDTH;
|
||||
*/
|
||||
|
||||
/* hal_intf.h
|
||||
enum _HAL_DEF_VARIABLE // : sint32_t
|
||||
{
|
||||
HAL_DEF_UNDERCORATEDSMOOTHEDPWDB = 0x0,
|
||||
|
@ -1252,11 +1196,11 @@ enum _HAL_ODM_VARIABLE // : sint32_t
|
|||
HAL_ODM_REGULATION = 0x4,
|
||||
};
|
||||
typedef enum _HAL_ODM_VARIABLE HAL_ODM_VARIABLE;
|
||||
*/
|
||||
/* freertos_service.h
|
||||
|
||||
typedef void *_thread_hdl_;
|
||||
*/
|
||||
/* osdep_service.h
|
||||
|
||||
/*
|
||||
// osdep_service.h
|
||||
struct task_struct
|
||||
{
|
||||
const char *task_name;
|
||||
|
@ -1282,7 +1226,19 @@ typedef struct net_device *_nic_hdl;
|
|||
uint32_t rx_overflow;
|
||||
};
|
||||
*/
|
||||
/* rtw_recv.h
|
||||
|
||||
struct dvobj_priv {
|
||||
void *if1;
|
||||
void *if2;
|
||||
void *padapters[2];
|
||||
uint8_t iface_nums;
|
||||
uint8_t RtOutPipe[3];
|
||||
uint8_t Queue2Pipe[8];
|
||||
uint8_t irq_alloc;
|
||||
uint8_t irq_enabled;
|
||||
_lock irq_th_lock;
|
||||
};
|
||||
|
||||
struct phy_info {
|
||||
uint8_t RxPWDBAll;
|
||||
uint8_t SignalQuality;
|
||||
|
@ -1358,7 +1314,7 @@ union {
|
|||
uint32_t mem[32];
|
||||
};
|
||||
};
|
||||
|
||||
/*
|
||||
union $AB04817EA6EB89125E28056B7464A4D7 {
|
||||
_list list;
|
||||
struct recv_frame_hdr hdr;
|
||||
|
@ -1369,7 +1325,8 @@ union recv_frame {
|
|||
union $AB04817EA6EB89125E28056B7464A4D7 u;
|
||||
};
|
||||
*/
|
||||
/* skbuff.h
|
||||
/*
|
||||
// skbuff.h
|
||||
struct sk_buff
|
||||
{
|
||||
struct sk_buff *next;
|
||||
|
@ -1390,7 +1347,7 @@ union recv_frame {
|
|||
uint32_t qlen;
|
||||
};
|
||||
*/
|
||||
/* rtw_xmit.h
|
||||
|
||||
struct tx_servq {
|
||||
_list tx_pending;
|
||||
_queue sta_pending;
|
||||
|
@ -1409,12 +1366,6 @@ struct sta_xmit_priv {
|
|||
_list apsd;
|
||||
uint16_t txseq_tid[16];
|
||||
};
|
||||
*/
|
||||
/* rtw_recv.h
|
||||
struct recv_buf_stat {
|
||||
uint32_t rxdw0;
|
||||
uint32_t rxdw1;
|
||||
};
|
||||
|
||||
struct stainfo_rxcache {
|
||||
uint16_t tid_rxseq[16];
|
||||
|
@ -1426,9 +1377,8 @@ struct sta_recv_priv {
|
|||
_queue defrag_q;
|
||||
struct stainfo_rxcache rxcache;
|
||||
};
|
||||
*/
|
||||
/* sta_info.h
|
||||
struct stainfo_stats {
|
||||
|
||||
struct stainfo_stats {
|
||||
u8Byte rx_mgnt_pkts;
|
||||
u8Byte rx_ctrl_pkts;
|
||||
u8Byte rx_data_pkts;
|
||||
|
@ -1525,15 +1475,20 @@ struct sta_info {
|
|||
uint8_t RXEVM[4];
|
||||
uint8_t RXSNR[4];
|
||||
};
|
||||
*/
|
||||
/* wifi_conf.h
|
||||
/*
|
||||
// wifi_conf.h
|
||||
struct _atr_aligned4_ _cus_ie
|
||||
{
|
||||
uint8_t *ie;
|
||||
uint8_t type;
|
||||
};
|
||||
*/
|
||||
/* rtw_xmit.h
|
||||
|
||||
struct fifo_more_data {
|
||||
uint32_t more_data;
|
||||
uint32_t len;
|
||||
};
|
||||
|
||||
struct hw_xmit {
|
||||
_queue *sta_queue;
|
||||
int accnt;
|
||||
|
@ -1549,8 +1504,12 @@ struct tx_buf_desc {
|
|||
uint32_t txdw6;
|
||||
uint32_t txdw7;
|
||||
};
|
||||
*/
|
||||
/* rtw_psk.h
|
||||
|
||||
struct recv_buf_stat {
|
||||
uint32_t rxdw0;
|
||||
uint32_t rxdw1;
|
||||
};
|
||||
|
||||
struct _wpa_sta_info {
|
||||
int state;
|
||||
int gstate;
|
||||
|
@ -1577,8 +1536,7 @@ struct _wpa_sta_info {
|
|||
int clientGkeyUpdate;
|
||||
LARGE_INTEGER clientMICReportReplayCounter;
|
||||
};
|
||||
*/
|
||||
/* rtw_xmit.h
|
||||
|
||||
struct pkt_attrib {
|
||||
uint8_t type;
|
||||
uint8_t subtype;
|
||||
|
@ -1669,7 +1627,6 @@ struct submit_ctx {
|
|||
uint32_t timeout_ms;
|
||||
int status;
|
||||
};
|
||||
*/
|
||||
/*
|
||||
// wrapper.h
|
||||
struct net_device
|
||||
|
@ -1755,15 +1712,12 @@ struct submit_ctx {
|
|||
union iwreq_data u;
|
||||
};
|
||||
*/
|
||||
/* drv_types.h
|
||||
struct co_data_priv {
|
||||
uint8_t co_ch;
|
||||
uint8_t co_bw;
|
||||
uint8_t co_ch_offset;
|
||||
uint8_t rsvd;
|
||||
};
|
||||
*/
|
||||
/* hal_intf.h
|
||||
|
||||
enum _HARDWARE_TYPE // : sint32_t
|
||||
{
|
||||
|
@ -1805,8 +1759,7 @@ enum _HARDWARE_TYPE // : sint32_t
|
|||
HARDWARE_TYPE_RTL8188FS = 0x23,
|
||||
HARDWARE_TYPE_MAX = 0x24,
|
||||
};
|
||||
*/
|
||||
/* hal_phy.h
|
||||
|
||||
struct RF_Shadow_Compare_Map {
|
||||
uint32_t Value;
|
||||
uint8_t Compare;
|
||||
|
@ -1815,8 +1768,7 @@ struct RF_Shadow_Compare_Map {
|
|||
uint8_t Driver_Write;
|
||||
};
|
||||
typedef struct RF_Shadow_Compare_Map RF_SHADOW_T;
|
||||
*/
|
||||
/* rtw_powerctrl.h
|
||||
|
||||
enum _PS_BBRegBackup_ // : sint32_t
|
||||
{
|
||||
PSBBREG_RF0 = 0x0,
|
||||
|
@ -1825,8 +1777,9 @@ enum _PS_BBRegBackup_ // : sint32_t
|
|||
PSBBREG_AFE0 = 0x3,
|
||||
PSBBREG_TOTALCNT = 0x4,
|
||||
};
|
||||
*/
|
||||
/* hal_irqn.h
|
||||
|
||||
/*
|
||||
// hal_irqn.h
|
||||
enum _IRQn_Type_ // : sint32_t
|
||||
{
|
||||
NonMaskableInt_IRQn = 0xFFFFFFF2,
|
||||
|
@ -1899,8 +1852,9 @@ enum _PS_BBRegBackup_ // : sint32_t
|
|||
uint32_t Priority;
|
||||
};
|
||||
typedef struct _IRQ_HANDLE_ IRQ_HANDLE;
|
||||
*/
|
||||
/* hal_soc_ps_monitor.h
|
||||
*/
|
||||
/*
|
||||
// hal_soc_ps_monitor.h
|
||||
struct _power_state_
|
||||
{
|
||||
uint8_t FuncIdx;
|
||||
|
@ -1922,9 +1876,9 @@ enum _PS_BBRegBackup_ // : sint32_t
|
|||
BOOL SleepFlag;
|
||||
};
|
||||
typedef struct _power_mgn_ Power_Mgn;
|
||||
*/
|
||||
|
||||
/* hal_gpio.h
|
||||
/*
|
||||
// hal_gpio.h
|
||||
enum $E1AD70AB12E7AA6E98B8D89D9B965EB5 //: sint32_t
|
||||
{
|
||||
_PORT_A = 0x0,
|
||||
|
@ -1959,7 +1913,7 @@ enum _PS_BBRegBackup_ // : sint32_t
|
|||
};
|
||||
typedef struct _HAL_GPIO_ADAPTER_ *PHAL_GPIO_ADAPTER;
|
||||
*/
|
||||
/* hal_intf.h
|
||||
|
||||
struct hal_ops {
|
||||
uint32_t (*hal_power_on)(_adapter *);
|
||||
uint32_t (*hal_init)(_adapter *);
|
||||
|
@ -2022,8 +1976,66 @@ struct hal_ops {
|
|||
uint8_t);
|
||||
uint8_t (*hal_get_tx_buff_rsvd_page_num)(_adapter *, bool);
|
||||
};
|
||||
*/
|
||||
/* HalVerDef.h
|
||||
|
||||
struct _atr_aligned4_ _ADAPTER {
|
||||
uint16_t HardwareType;
|
||||
uint16_t interface_type; //+2
|
||||
uint32_t work_mode;
|
||||
struct dvobj_priv *dvobj; //+8
|
||||
struct mlme_priv mlmepriv; //+12 [1244]
|
||||
struct mlme_ext_priv mlmeextpriv; //+1256 [912]
|
||||
struct cmd_priv cmdpriv; //+2168
|
||||
struct evt_priv evtpriv; //+
|
||||
struct io_priv iopriv;
|
||||
struct xmit_priv xmitpriv; //+2248
|
||||
struct recv_priv recvpriv; //+2752
|
||||
struct sta_priv stapriv; //+3024 [164]
|
||||
struct security_priv securitypriv;
|
||||
struct registry_priv registrypriv;
|
||||
struct pwrctrl_priv pwrctrlpriv; // pwrctrlpriv.bInternalAutoSuspend //+5061
|
||||
struct eeprom_priv eeprompriv;
|
||||
PVOID HalData;
|
||||
uint32_t hal_data_sz;
|
||||
struct hal_ops HalFunc;
|
||||
int32_t bDriverStopped; //+5880
|
||||
int32_t bSurpriseRemoved; //+5884
|
||||
int32_t bCardDisableWOHSM; //+5888
|
||||
uint8_t RxStop; //+5892
|
||||
uint32_t IsrContent;
|
||||
uint32_t ImrContent;
|
||||
uint8_t EepromAddressSize;
|
||||
uint8_t hw_init_completed; //+5905
|
||||
uint8_t bDriverIsGoingToUnload;
|
||||
uint8_t init_adpt_in_progress;
|
||||
uint8_t bMpDriver;
|
||||
uint8_t bForwardingDisabled;
|
||||
struct task_struct isrThread; //+5888
|
||||
struct task_struct cmdThread; //+5920
|
||||
struct task_struct recvtasklet_thread; //+5952
|
||||
struct task_struct xmittasklet_thread; //+5984
|
||||
void (*intf_start)(_adapter *); //+6008
|
||||
void (*intf_stop)(_adapter *); //+6012
|
||||
_nic_hdl pnetdev; //+6016
|
||||
int bup; //+6020
|
||||
struct net_device_stats stats;
|
||||
uint8_t net_closed; //+6052
|
||||
uint8_t bFWReady;
|
||||
uint8_t bLinkInfoDump;
|
||||
uint8_t bRxRSSIDisplay;
|
||||
_adapter *pbuddy_adapter; //+6056
|
||||
_mutex *hw_init_mutex; //+6060
|
||||
uint8_t isprimary; //+6064
|
||||
uint8_t adapter_type; //+6065
|
||||
uint8_t iface_type; //+6056
|
||||
_mutex *ph2c_fwcmd_mutex; //+6068
|
||||
_mutex *psetch_mutex; //+6072
|
||||
_mutex *psetbw_mutex; //+6076
|
||||
struct co_data_priv *pcodatapriv; //+6080
|
||||
uint8_t fix_rate; //+6084
|
||||
}; // [6088] (!)
|
||||
typedef struct _ADAPTER *PADAPTER;
|
||||
// if sizeof(struct _ADAPTER) != 6088 #error "Check aligned struct!" !
|
||||
|
||||
enum tag_HAL_IC_Type_Definition // : sint32_t
|
||||
{
|
||||
CHIP_8192S = 0x0,
|
||||
|
@ -2092,8 +2104,7 @@ struct _atr_aligned4_ tag_HAL_VERSION {
|
|||
uint8_t ROMVer;
|
||||
};
|
||||
typedef struct tag_HAL_VERSION HAL_VERSION;
|
||||
*/
|
||||
/* hal_intf.h
|
||||
|
||||
enum _HW_VARIABLES //: sint32_t
|
||||
{
|
||||
HW_VAR_MEDIA_STATUS = 0x0,
|
||||
|
@ -2178,15 +2189,13 @@ enum _HW_VARIABLES //: sint32_t
|
|||
HW_VAR_ASIX_IOT = 0x4F,
|
||||
HW_VAR_PROMISC = 0x50,
|
||||
};
|
||||
*/
|
||||
/* hal_phy.h
|
||||
|
||||
enum _BAND_TYPE // : sint32_t
|
||||
{
|
||||
BAND_ON_2_4G = 0x0, BAND_ON_5G = 0x1, BAND_ON_BOTH = 0x2, BANDMAX = 0x3,
|
||||
};
|
||||
typedef enum _BAND_TYPE BAND_TYPE;
|
||||
*/
|
||||
/* hal_com_phycfg.h
|
||||
|
||||
struct _BB_REGISTER_DEFINITION {
|
||||
uint32_t rfintfs;
|
||||
uint32_t rfintfo;
|
||||
|
@ -2197,8 +2206,7 @@ struct _BB_REGISTER_DEFINITION {
|
|||
uint32_t rfLSSIReadBackPi;
|
||||
};
|
||||
typedef struct _BB_REGISTER_DEFINITION BB_REGISTER_DEFINITION_T;
|
||||
*/
|
||||
/* rtw_mlme.h
|
||||
|
||||
enum dot11AuthAlgrthmNum //: sint32_t
|
||||
{
|
||||
dot11AuthAlgrthm_Open = 0x0,
|
||||
|
@ -2208,8 +2216,7 @@ enum dot11AuthAlgrthmNum //: sint32_t
|
|||
dot11AuthAlgrthm_WAPI = 0x4,
|
||||
dot11AuthAlgrthm_MaxNum = 0x5,
|
||||
};
|
||||
*/
|
||||
/* rtw_mlme_ext.h
|
||||
|
||||
enum _RT_CHANNEL_DOMAIN //: sint32_t
|
||||
{
|
||||
RT_CHANNEL_DOMAIN_FCC = 0x0,
|
||||
|
@ -2276,8 +2283,7 @@ enum _RT_CHANNEL_DOMAIN //: sint32_t
|
|||
RT_CHANNEL_DOMAIN_MAX = 0x59,
|
||||
RT_CHANNEL_DOMAIN_REALTEK_DEFINE = 0x7F,
|
||||
};
|
||||
*/
|
||||
/* freertos_intfs.h
|
||||
|
||||
struct _driver_priv {
|
||||
int drv_registered;
|
||||
_mutex hw_init_mutex;
|
||||
|
@ -2286,9 +2292,7 @@ struct _driver_priv {
|
|||
_mutex setbw_mutex;
|
||||
};
|
||||
typedef struct _driver_priv drv_priv;
|
||||
*/
|
||||
|
||||
/* PhyDM_Adaptivity.h
|
||||
struct _ADAPTIVITY_STATISTICS {
|
||||
s1Byte TH_L2H_ini_mode2;
|
||||
s1Byte TH_EDCCA_HL_diff_mode2;
|
||||
|
@ -2305,14 +2309,12 @@ struct _ADAPTIVITY_STATISTICS {
|
|||
u1Byte AdajustIGILevel;
|
||||
};
|
||||
typedef struct _ADAPTIVITY_STATISTICS ADAPTIVITY_STATISTICS;
|
||||
*/
|
||||
/* phydm_NoiseMonitor.h
|
||||
|
||||
struct _ODM_NOISE_MONITOR_ {
|
||||
s1Byte noise[1];
|
||||
s2Byte noise_all;
|
||||
};
|
||||
typedef struct _ODM_NOISE_MONITOR_ ODM_NOISE_MONITOR;
|
||||
*/
|
||||
/* in rtl_bios_data.h
|
||||
struct _FALSE_ALARM_STATISTICS {
|
||||
u4Byte Cnt_Parity_Fail;
|
||||
|
@ -2333,13 +2335,13 @@ struct _FALSE_ALARM_STATISTICS {
|
|||
};
|
||||
typedef struct _FALSE_ALARM_STATISTICS FALSE_ALARM_STATISTICS;
|
||||
*/
|
||||
/* phydm.h
|
||||
|
||||
enum _BASEBAND_CONFIG_PHY_REG_PG_VALUE_TYPE //: sint32_t
|
||||
{
|
||||
PHY_REG_PG_RELATIVE_VALUE = 0x0, PHY_REG_PG_EXACT_VALUE = 0x1,
|
||||
};
|
||||
typedef enum _BASEBAND_CONFIG_PHY_REG_PG_VALUE_TYPE PHY_REG_PG_TYPE;
|
||||
*/
|
||||
|
||||
/* in rtl_bios_data.h
|
||||
struct _atr_aligned4_ _CFO_TRACKING_ {
|
||||
BOOLEAN bATCStatus;
|
||||
|
@ -2368,13 +2370,11 @@ struct _atr_aligned8_ _ROM_INFO {
|
|||
};
|
||||
typedef struct _ROM_INFO ROM_INFO;
|
||||
*/
|
||||
/* ROM_RTL8195A_PHYDM.h
|
||||
|
||||
typedef struct _ROM_INFO *PROM_INFO;
|
||||
*/
|
||||
/* phydm_types.h
|
||||
|
||||
typedef struct sta_info *PSTA_INFO_T;
|
||||
*/
|
||||
/* phydm.h
|
||||
|
||||
struct _ODM_Phy_Dbg_Info_ {
|
||||
s1Byte RxSNRdB[4];
|
||||
u4Byte NumQryPhyStatus;
|
||||
|
@ -2717,73 +2717,7 @@ struct _atr_aligned8_ ODM_RF_Calibration_Structure {
|
|||
u4Byte DpkThermal[4];
|
||||
};
|
||||
typedef struct ODM_RF_Calibration_Structure ODM_RF_CAL_T;
|
||||
*/
|
||||
/* drv_types.h
|
||||
#include "ieee80211.h"
|
||||
#include "rtw_cmd.h"
|
||||
|
||||
struct _atr_aligned4_ _ADAPTER {
|
||||
uint16_t HardwareType;
|
||||
uint16_t interface_type; //+2
|
||||
uint32_t work_mode;
|
||||
struct dvobj_priv *dvobj; //+8
|
||||
struct mlme_priv mlmepriv; //+12 [1244]
|
||||
struct mlme_ext_priv mlmeextpriv; //+1256 [912]
|
||||
struct cmd_priv cmdpriv; //+2168
|
||||
struct evt_priv evtpriv; //+
|
||||
struct io_priv iopriv;
|
||||
struct xmit_priv xmitpriv; //+2248
|
||||
struct recv_priv recvpriv; //+2752
|
||||
struct sta_priv stapriv; //+3024 [164]
|
||||
struct security_priv securitypriv;
|
||||
struct registry_priv registrypriv;
|
||||
struct pwrctrl_priv pwrctrlpriv; // pwrctrlpriv.bInternalAutoSuspend //+5061
|
||||
struct eeprom_priv eeprompriv;
|
||||
PVOID HalData;
|
||||
uint32_t hal_data_sz;
|
||||
struct hal_ops HalFunc;
|
||||
int32_t bDriverStopped; //+5880
|
||||
int32_t bSurpriseRemoved; //+5884
|
||||
int32_t bCardDisableWOHSM; //+5888
|
||||
uint8_t RxStop; //+5892
|
||||
uint32_t IsrContent;
|
||||
uint32_t ImrContent;
|
||||
uint8_t EepromAddressSize;
|
||||
uint8_t hw_init_completed; //+5905
|
||||
uint8_t bDriverIsGoingToUnload;
|
||||
uint8_t init_adpt_in_progress;
|
||||
uint8_t bMpDriver;
|
||||
uint8_t bForwardingDisabled;
|
||||
struct task_struct isrThread; //+5888
|
||||
struct task_struct cmdThread; //+5920
|
||||
struct task_struct recvtasklet_thread; //+5952
|
||||
struct task_struct xmittasklet_thread; //+5984
|
||||
void (*intf_start)(_adapter *); //+6008
|
||||
void (*intf_stop)(_adapter *); //+6012
|
||||
_nic_hdl pnetdev; //+6016
|
||||
int bup; //+6020
|
||||
struct net_device_stats stats;
|
||||
uint8_t net_closed; //+6052
|
||||
uint8_t bFWReady;
|
||||
uint8_t bLinkInfoDump;
|
||||
uint8_t bRxRSSIDisplay;
|
||||
_adapter *pbuddy_adapter; //+6056
|
||||
_mutex *hw_init_mutex; //+6060
|
||||
uint8_t isprimary; //+6064
|
||||
uint8_t adapter_type; //+6065
|
||||
uint8_t iface_type; //+6056
|
||||
_mutex *ph2c_fwcmd_mutex; //+6068
|
||||
_mutex *psetch_mutex; //+6072
|
||||
_mutex *psetbw_mutex; //+6076
|
||||
struct co_data_priv *pcodatapriv; //+6080
|
||||
uint8_t fix_rate; //+6084
|
||||
}; // [6088] (!)
|
||||
typedef struct _ADAPTER *PADAPTER;
|
||||
// if sizeof(struct _ADAPTER) != 6088 #error "Check aligned struct!" !
|
||||
|
||||
*/
|
||||
|
||||
/* phydm.h
|
||||
struct _atr_aligned8_ DM_Out_Source_Dynamic_Mechanism_Structure {
|
||||
PADAPTER Adapter;
|
||||
BOOLEAN odm_ready;
|
||||
|
@ -2953,8 +2887,7 @@ struct _atr_aligned8_ DM_Out_Source_Dynamic_Mechanism_Structure {
|
|||
};
|
||||
typedef struct DM_Out_Source_Dynamic_Mechanism_Structure DM_ODM_T;
|
||||
typedef struct DM_Out_Source_Dynamic_Mechanism_Structure *PDM_ODM_T;
|
||||
*/
|
||||
/* halphy
|
||||
|
||||
enum _PWRTRACK_CONTROL_METHOD //: sint32_t
|
||||
{
|
||||
BBSWING = 0x0, TXAGC = 0x1, MIX_MODE = 0x2,
|
||||
|
@ -3006,9 +2939,7 @@ struct _H2CParam_RsvdPage_ {
|
|||
};
|
||||
typedef struct _H2CParam_RsvdPage_ H2CParam_RsvdPage;
|
||||
typedef struct _H2CParam_RsvdPage_ *PH2CParam_RsvdPage;
|
||||
*/
|
||||
|
||||
/* wlan_bssdef.h
|
||||
struct _NDIS_802_11_VARIABLE_IEs {
|
||||
uint8_t ElementID;
|
||||
uint8_t Length;
|
||||
|
@ -3046,7 +2977,6 @@ enum _NDIS_802_11_WEP_STATUS //: sint32_t
|
|||
Ndis802_11_EncrypteionWAPI = 0x8,
|
||||
};
|
||||
typedef enum _NDIS_802_11_WEP_STATUS NDIS_802_11_WEP_STATUS;
|
||||
*/
|
||||
|
||||
struct __attribute__((packed)) __attribute__((aligned(1))) rtk_sc {
|
||||
u8 pattern_type;
|
||||
|
@ -3093,7 +3023,7 @@ struct pattern_ops {
|
|||
sc_decode_profile_call_back decode_profile;
|
||||
sc_get_tlv_info_call_back get_tlv_info;
|
||||
};
|
||||
/* halpower
|
||||
|
||||
struct _atr_aligned2_ _WL_PWR_CFG_ { // __attribute__((packed))!?
|
||||
uint16_t offset;
|
||||
uint8_t cut_msk;
|
||||
|
@ -3105,21 +3035,17 @@ struct _atr_aligned2_ _WL_PWR_CFG_ { // __attribute__((packed))!?
|
|||
uint8_t value;
|
||||
};
|
||||
typedef struct _WL_PWR_CFG_ WLAN_PWR_CFG;
|
||||
*/
|
||||
|
||||
/* rtw_mlme.h
|
||||
struct cmd_hdl {
|
||||
uint32_t parmsize;
|
||||
uint8_t (*h2cfuns)(struct _ADAPTER *, uint8_t *);
|
||||
};
|
||||
*/
|
||||
/* rtw_cmd.h
|
||||
|
||||
struct _cmd_callback {
|
||||
uint32_t cmd_code;
|
||||
void (*callback)(_adapter *, struct cmd_obj *);
|
||||
};
|
||||
*/
|
||||
/* phydm.h
|
||||
|
||||
enum _ODM_Common_Info_Definition //: sint32_t
|
||||
{
|
||||
ODM_CMNINFO_PLATFORM = 0x0,
|
||||
|
@ -3225,15 +3151,13 @@ enum _ODM_Support_Ability_Definition // : sint32_t
|
|||
ODM_RF_RX_GAIN_TRACK = 0x2000000,
|
||||
ODM_RF_CALIBRATION = 0x4000000,
|
||||
};
|
||||
*/
|
||||
/* hal_phy.h
|
||||
|
||||
enum _RF_PATH //: sint32_t
|
||||
{
|
||||
RF_PATH_A = 0x0, RF_PATH_B = 0x1, RF_PATH_C = 0x2, RF_PATH_D = 0x3,
|
||||
};
|
||||
typedef enum _RF_PATH RF_PATH;
|
||||
*/
|
||||
/* rtw_cmd.h
|
||||
|
||||
enum _EXTCHNL_OFFSET //: sint32_t
|
||||
{
|
||||
EXTCHNL_OFFSET_NO_EXT = 0x0,
|
||||
|
@ -3332,8 +3256,7 @@ enum MGN_RATE //: sint32_t
|
|||
MGN_VHT4SS_MCS9 = 0xC7,
|
||||
MGN_UNKNOWN = 0xC8,
|
||||
};
|
||||
*/
|
||||
/* rtw_mlme.h rtw_mlme_ext.h
|
||||
|
||||
struct _RT_CHANNEL_PLAN_2G {
|
||||
uint8_t Channel[14];
|
||||
uint8_t Len;
|
||||
|
@ -3353,14 +3276,12 @@ struct mlme_handler {
|
|||
uint32_t num;
|
||||
uint32_t (*func)(_adapter *, struct recv_frame *);
|
||||
};
|
||||
*/
|
||||
/* rtw_event.h
|
||||
|
||||
struct fwevent {
|
||||
uint32_t parmsize;
|
||||
void (*event_callback)(_adapter *, uint8_t *);
|
||||
};
|
||||
*/
|
||||
/* rtw_recv.h
|
||||
|
||||
struct recv_buf {
|
||||
_list list;
|
||||
PADAPTER adapter;
|
||||
|
@ -3381,8 +3302,7 @@ struct recv_reorder_ctrl {
|
|||
_queue pending_recvframe_queue;
|
||||
_timer reordering_ctrl_timer;
|
||||
};
|
||||
*/
|
||||
/* phydm.h
|
||||
|
||||
enum _ODM_RF_RADIO_PATH // : sint32_t
|
||||
{
|
||||
ODM_RF_PATH_A = 0x0,
|
||||
|
@ -3483,8 +3403,7 @@ enum _ODM_FW_Config_Type //: sint32_t
|
|||
CONFIG_FW_BT = 0x7,
|
||||
};
|
||||
typedef enum _ODM_FW_Config_Type ODM_FW_Config_Type;
|
||||
*/
|
||||
/* hal_com_phycfg.h
|
||||
|
||||
enum _RATE_SECTION //: sint32_t
|
||||
{
|
||||
CCK = 0x0,
|
||||
|
@ -3499,8 +3418,12 @@ enum _RATE_SECTION //: sint32_t
|
|||
VHT_4SSMCS0_4SSMCS9 = 0x9,
|
||||
};
|
||||
typedef enum _RATE_SECTION RATE_SECTION;
|
||||
*/
|
||||
/* hal_pg.h
|
||||
|
||||
struct map_mask_s {
|
||||
uint16_t mask_start;
|
||||
uint16_t mask_end;
|
||||
};
|
||||
|
||||
struct _TxPowerInfo24G {
|
||||
uint8_t IndexCCK_Base[1][6];
|
||||
uint8_t IndexBW40_Base[1][6];
|
||||
|
@ -3509,69 +3432,6 @@ struct _TxPowerInfo24G {
|
|||
};
|
||||
typedef struct _TxPowerInfo24G TxPowerInfo24G;
|
||||
typedef struct _TxPowerInfo24G *PTxPowerInfo24G;
|
||||
*/
|
||||
/* wifi_constants.h
|
||||
enum rtw_bss_type_t // __int32
|
||||
{
|
||||
RTW_BSS_TYPE_INFRASTRUCTURE = 0x0,
|
||||
RTW_BSS_TYPE_ADHOC = 0x1,
|
||||
RTW_BSS_TYPE_ANY = 0x2,
|
||||
RTW_BSS_TYPE_UNKNOWN = 0xFFFFFFFF,
|
||||
};
|
||||
|
||||
enum rtw_security_t // __int32
|
||||
{
|
||||
RTW_SECURITY_OPEN = 0x0,
|
||||
RTW_SECURITY_WEP_PSK = 0x1,
|
||||
RTW_SECURITY_WEP_SHARED = 0x8001,
|
||||
RTW_SECURITY_WPA_TKIP_PSK = 0x200002,
|
||||
RTW_SECURITY_WPA_AES_PSK = 0x200004,
|
||||
RTW_SECURITY_WPA2_AES_PSK = 0x400004,
|
||||
RTW_SECURITY_WPA2_TKIP_PSK = 0x400002,
|
||||
RTW_SECURITY_WPA2_MIXED_PSK = 0x400006,
|
||||
RTW_SECURITY_WPA_WPA2_MIXED = 0x600000,
|
||||
RTW_SECURITY_WPS_OPEN = 0x10000000,
|
||||
RTW_SECURITY_WPS_SECURE = 0x10000004,
|
||||
RTW_SECURITY_UNKNOWN = 0xFFFFFFFF,
|
||||
RTW_SECURITY_FORCE_32_BIT = 0x7FFFFFFF,
|
||||
};
|
||||
|
||||
enum rtw_802_11_band_t // __int32
|
||||
{
|
||||
RTW_802_11_BAND_5GHZ = 0x0,
|
||||
RTW_802_11_BAND_2_4GHZ = 0x1,
|
||||
};
|
||||
|
||||
*/
|
||||
/* wifi_structures.h
|
||||
struct rtw_ssid
|
||||
{
|
||||
unsigned int8_t len;
|
||||
unsigned int8_t val[33];
|
||||
};
|
||||
|
||||
typedef rtw_ssid rtw_ssid_t;
|
||||
|
||||
struct rtw_mac
|
||||
{
|
||||
unsigned int8_t octet[6];
|
||||
};
|
||||
|
||||
typedef rtw_mac rtw_mac_t;
|
||||
|
||||
struct rtw_scan_result
|
||||
{
|
||||
rtw_ssid_t SSID;
|
||||
rtw_mac_t BSSID;
|
||||
sint16_t signal_strength;
|
||||
enum rtw_bss_type_t bss_type;
|
||||
enum rtw_security_t security;
|
||||
enum rtw_wps_type_t wps_type;
|
||||
unsigned int channel;
|
||||
enum rtw_802_11_band_t band;
|
||||
};
|
||||
|
||||
*/
|
||||
|
||||
#endif // _WLAN_LIB_H
|
||||
|
||||
|
|
|
@ -31,7 +31,7 @@ extern "C" {
|
|||
#endif
|
||||
|
||||
#if defined(__IAR_SYSTEMS_ICC__)
|
||||
//#pragma pack(1)
|
||||
#pragma pack(1)
|
||||
#endif
|
||||
|
||||
/**
|
||||
|
@ -86,7 +86,7 @@ typedef struct rtw_network_info {
|
|||
int key_id;
|
||||
}rtw_network_info_t;
|
||||
|
||||
#if defined(__IAR_SYSTEMS_ICC__)// || defined(__GNUC__)
|
||||
#if defined(__IAR_SYSTEMS_ICC__) || defined(__GNUC__)
|
||||
#pragma pack(1)
|
||||
#endif
|
||||
|
||||
|
@ -96,14 +96,14 @@ typedef struct rtw_network_info {
|
|||
typedef struct rtw_scan_result {
|
||||
rtw_ssid_t SSID; /**< Service Set Identification (i.e. Name of Access Point) */
|
||||
rtw_mac_t BSSID; /**< Basic Service Set Identification (i.e. MAC address of Access Point) */
|
||||
signed short signal_strength; /**< Receive Signal Strength Indication in dBm. <-90=Very poor, >-30=Excellent */
|
||||
signed short signal_strength; /**< Receive Signal Strength Indication in dBm. <-90=Very poor, >-30=Excellent */
|
||||
rtw_bss_type_t bss_type; /**< Network type */
|
||||
rtw_security_t security; /**< Security type */
|
||||
rtw_wps_type_t wps_type; /**< WPS type */
|
||||
unsigned int channel; /**< Radio channel that the AP beacon was received on */
|
||||
unsigned int channel; /**< Radio channel that the AP beacon was received on */
|
||||
rtw_802_11_band_t band; /**< Radio band */
|
||||
} rtw_scan_result_t;
|
||||
#if defined(__IAR_SYSTEMS_ICC__) //|| defined(__GNUC__)
|
||||
#if defined(__IAR_SYSTEMS_ICC__) || defined(__GNUC__)
|
||||
#pragma pack()
|
||||
#endif
|
||||
|
||||
|
@ -117,7 +117,7 @@ typedef struct rtw_scan_handler_result {
|
|||
|
||||
} rtw_scan_handler_result_t;
|
||||
|
||||
#if defined(__IAR_SYSTEMS_ICC__) //|| defined(__GNUC__)
|
||||
#if defined(__IAR_SYSTEMS_ICC__) || defined(__GNUC__)
|
||||
#pragma pack(1)
|
||||
#endif
|
||||
|
||||
|
@ -125,14 +125,14 @@ typedef struct rtw_scan_handler_result {
|
|||
* @brief The structure is used to store the WIFI setting gotten from WIFI driver.
|
||||
*/
|
||||
typedef struct rtw_wifi_setting {
|
||||
rtw_mode_t mode;
|
||||
rtw_mode_t mode;
|
||||
unsigned char ssid[33];
|
||||
unsigned char channel;
|
||||
rtw_security_t security_type;
|
||||
unsigned char password[65];
|
||||
unsigned char key_idx;
|
||||
}rtw_wifi_setting_t;
|
||||
#if defined(__IAR_SYSTEMS_ICC__) //|| defined(__GNUC__)
|
||||
#if defined(__IAR_SYSTEMS_ICC__) || defined(__GNUC__)
|
||||
#pragma pack()
|
||||
#endif
|
||||
|
||||
|
@ -167,7 +167,7 @@ typedef struct {
|
|||
unsigned int version; /**< version field */
|
||||
unsigned int length; /**< byte length of data in this record, */
|
||||
/* starting at version and including IEs */
|
||||
rtw_mac_t BSSID;
|
||||
rtw_mac_t BSSID;
|
||||
unsigned short beacon_period; /**< units are Kusec */
|
||||
unsigned short capability; /**< Capability information */
|
||||
unsigned char SSID_len;
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -1277,7 +1277,7 @@ typedef struct DM_Out_Source_Dynamic_Mechanism_Structure
|
|||
//-----------HOOK BEFORE REG INIT-----------//
|
||||
// ODM Platform info AP/ADSL/CE/MP = 1/2/3/4
|
||||
u1Byte SupportPlatform;
|
||||
// ODM Support Ability DIG/RATR/TX_PWR_TRACK/ <EFBFBD>K<EFBFBD>K = 1/2/3/<2F>K
|
||||
// ODM Support Ability DIG/RATR/TX_PWR_TRACK/ ¡K¡K = 1/2/3/¡K
|
||||
u4Byte SupportAbility;
|
||||
// ODM PCIE/USB/SDIO = 1/2/3
|
||||
u1Byte SupportInterface;
|
||||
|
@ -1491,7 +1491,7 @@ typedef struct DM_Out_Source_Dynamic_Mechanism_Structure
|
|||
PROM_INFO pROMInfo;
|
||||
|
||||
FALSE_ALARM_STATISTICS FalseAlmCnt;
|
||||
CFO_TRACKING DM_CfoTrack;
|
||||
CFO_TRACKING DM_CfoTrack;
|
||||
|
||||
FALSE_ALARM_STATISTICS FlaseAlmCntBuddyAdapter;
|
||||
//#ifdef CONFIG_ANTENNA_DIVERSITY
|
||||
|
|
|
@ -375,10 +375,10 @@ typedef enum _RT_SPINLOCK_TYPE{
|
|||
typedef unsigned short u2Byte,*pu2Byte;
|
||||
typedef unsigned int u4Byte,*pu4Byte;
|
||||
typedef unsigned long long u8Byte,*pu8Byte;
|
||||
typedef signed char s1Byte,*ps1Byte; /* GCC ROM char = unsigned char */
|
||||
typedef signed char s1Byte,*ps1Byte; /* GCC ROM char = unsigned char */
|
||||
typedef signed short s2Byte,*ps2Byte;
|
||||
typedef signed long s4Byte,*ps4Byte;
|
||||
typedef long long s8Byte,*ps8Byte;
|
||||
typedef signed long s4Byte,*ps4Byte;
|
||||
typedef long long s8Byte,*ps8Byte;
|
||||
|
||||
typedef struct sta_info STA_INFO_T,*PSTA_INFO_T;
|
||||
|
||||
|
|
|
@ -20,7 +20,6 @@
|
|||
#ifndef __ROM_RTL8195A_PHYDM_H__
|
||||
#define __ROM_RTL8195A_PHYDM_H__
|
||||
|
||||
#ifndef _RTL_BIOS_DATA_H_
|
||||
typedef struct _FALSE_ALARM_STATISTICS{
|
||||
u4Byte Cnt_Parity_Fail;
|
||||
u4Byte Cnt_Rate_Illegal;
|
||||
|
@ -57,19 +56,16 @@ typedef struct _CFO_TRACKING_
|
|||
u1Byte CFO_TH_ATC;
|
||||
}CFO_TRACKING, *PCFO_TRACKING;
|
||||
|
||||
|
||||
extern FALSE_ALARM_STATISTICS FalseAlmCnt;
|
||||
extern CFO_TRACKING DM_CfoTrack;
|
||||
|
||||
typedef struct _ROM_INFO{
|
||||
u1Byte EEPROMVersion;
|
||||
u1Byte CrystalCap;
|
||||
u8Byte DebugComponents;
|
||||
u4Byte DebugLevel;
|
||||
} ROM_INFO, *PROM_INFO;
|
||||
}ROM_INFO, *PROM_INFO;
|
||||
|
||||
extern FALSE_ALARM_STATISTICS FalseAlmCnt;
|
||||
extern CFO_TRACKING DM_CfoTrack;
|
||||
extern ROM_INFO ROMInfo;
|
||||
#endif
|
||||
|
||||
u1Byte
|
||||
ROM_odm_QueryRxPwrPercentage(
|
||||
|
|
|
@ -414,7 +414,7 @@ struct net_device_stats {
|
|||
struct net_device {
|
||||
char name[16];
|
||||
void *priv; /* pointer to private data */
|
||||
unsigned char dev_addr[6]; /* set during bootup */
|
||||
unsigned char dev_addr[6]; /* set during bootup */
|
||||
int (*init)(void);
|
||||
int (*open)(struct net_device *dev);
|
||||
int (*stop)(struct net_device *dev);
|
||||
|
@ -444,13 +444,11 @@ int dev_alloc_name(struct net_device *net_dev, const char *ifname);
|
|||
//----- ------------------------------------------------------------------
|
||||
void init_timer(struct timer_list *timer);
|
||||
void mod_timer(struct timer_list *timer, u32 delay_time_ms);
|
||||
void cancel_timer_ex(struct timer_list * timer);
|
||||
void cancel_timer_ex(struct timer_list * timer);
|
||||
void del_timer_sync(struct timer_list * timer);
|
||||
void init_timer_wrapper(void);
|
||||
void deinit_timer_wrapper(void);
|
||||
|
||||
typedef void (*TIMER_FUN)(void *context);
|
||||
|
||||
void rtw_init_timer(_timer *ptimer, void *adapter, TIMER_FUN pfunc,void* cntx, const char *name);
|
||||
void rtw_set_timer(_timer *ptimer,u32 delay_time);
|
||||
u8 rtw_cancel_timer(_timer *ptimer);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue