Updated to v4.3.8_12406.20140929

This commit is contained in:
CGarces
2017-05-11 20:35:20 +02:00
parent 1387cf623d
commit 9dde4572b4
229 changed files with 35553 additions and 24316 deletions

View File

@@ -206,8 +206,8 @@ struct rx_raw_rssi
u8 mimo_singal_strength[4];// in 0~100 index
u8 mimo_singal_quality[4];
s8 ofdm_pwr[4];
u8 ofdm_snr[4];
s8 ofdm_pwr[4];
u8 ofdm_snr[4];
};
#endif
@@ -278,7 +278,16 @@ struct rx_pkt_attrib {
#define RECVBUFF_ALIGN_SZ 8
#if defined (CONFIG_RTL8192E)
#ifdef CONFIG_PCI_HCI
#define RXDESC_SIZE 16
#define RX_WIFI_INFO_SIZE 24
#else
#define RXDESC_SIZE 24
#endif
#else
#define RXDESC_SIZE 24
#endif
#define RXDESC_OFFSET RXDESC_SIZE
struct recv_stat
@@ -287,10 +296,13 @@ struct recv_stat
unsigned int rxdw1;
#if !(defined(CONFIG_RTL8192E) && defined(CONFIG_PCI_HCI)) //exclude 8192ee
unsigned int rxdw2;
unsigned int rxdw3;
#endif
#ifndef BUF_DESC_ARCH
unsigned int rxdw4;
unsigned int rxdw5;
@@ -300,6 +312,7 @@ struct recv_stat
unsigned int rxdw7;
#endif
#endif //if BUF_DESC_ARCH is defined, rx_buf_desc occupy 4 double words
};
#define EOR BIT(30)
@@ -397,9 +410,6 @@ struct recv_priv
struct ifqueue rx_indicate_queue;
#endif // CONFIG_RX_INDICATE_QUEUE
#ifdef CONFIG_USE_USB_BUFFER_ALLOC_RX
_queue recv_buf_pending_queue;
#endif // CONFIG_USE_USB_BUFFER_ALLOC_RX
#endif //defined(PLATFORM_LINUX) || defined(PLATFORM_FREEBSD)
u8 *pallocated_recv_buf;
@@ -407,7 +417,7 @@ struct recv_priv
_queue free_recv_buf_queue;
u32 free_recv_buf_queue_cnt;
#if defined(CONFIG_SDIO_HCI) || defined(CONFIG_GSPI_HCI)
#if defined(CONFIG_SDIO_HCI) || defined(CONFIG_GSPI_HCI) || defined(CONFIG_USB_HCI)
_queue recv_buf_pending_queue;
#endif
@@ -429,7 +439,7 @@ struct recv_priv
struct rx_raw_rssi raw_rssi_info;
#endif
//s8 rxpwdb;
u8 noise;
s16 noise;
//int RxSNRdB[2];
//s8 RxRssi[2];
//int FalseAlmCnt_all;
@@ -825,9 +835,14 @@ __inline static s32 translate_percentage_to_dbm(u32 SignalStrengthIndex)
{
s32 SignalPower; // in dBm.
#ifdef CONFIG_SKIP_SIGNAL_SCALE_MAPPING
// Translate to dBm (x=y-100)
SignalPower = SignalStrengthIndex - 100;
#else
// Translate to dBm (x=0.5y-95).
SignalPower = (s32)((SignalStrengthIndex + 1) >> 1);
SignalPower -= 95;
#endif
return SignalPower;
}