Commit graph

60 commits

Author SHA1 Message Date
Larry Finger
06334102cd rtl8188eu: Replace _FALSE and _TRUE
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
2014-12-28 20:13:24 -06:00
Larry Finger
17d1637977 rtl8188eu: Replace PVOID and VOID
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
2014-12-28 20:07:17 -06:00
Larry Finger
b6b121512b rtl8188eu: Remove dead code inside #if 0
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
2014-12-28 20:00:11 -06:00
Larry Finger
2d60bad9ad rtl8188eu: FRemove dead code for other than USB
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
2014-12-28 11:13:03 -06:00
Larry Finger
bb33327257 rtl8188eu: Remove all trailing spaces from code
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
2014-12-19 00:59:46 -06:00
Larry Finger
202d20077c rtl8192eu: Replace typedefs for struct adapter
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
2014-12-17 17:13:53 -06:00
Larry Finger
494792ba07 rtl8188eu: Flatten directory hal/
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
2014-12-16 22:09:56 -06:00
Larry Finger
bad0b4cde4 rtl8188eu: Remove cases of two or more blank lines
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
2014-12-01 18:00:05 -06:00
Larry Finger
e91077579f rtl8188eu: Remove _func_enter_ and _func_exit_ statements
Kernel tracing is more effective.

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
2014-12-01 16:31:15 -06:00
Larry Finger
486757db0d r8188eu: Fix reading of EEPROM on big-endian hardware
Signed-off-by: Larry Finger <l]Larry.Finger@lwfinger.net>
2014-11-24 14:29:11 -06:00
Larry Finger
dc10076d5c r8188eu: Make error in EEPROMId log even at default debug level
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
2014-11-12 18:42:52 -06:00
Larry Finger
7c902ec968 rtl8188eu: Improve firmware loading diagnostics
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
2014-11-12 11:18:04 -06:00
Stas Sergeev
499e15d791 make firmware buffer persistent to not request firmware on every access 2014-02-14 13:46:49 -06:00
Larry Finger
91938194fd rtl8188eu: Make this code look exactly like the code in the kernel version
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
2013-11-29 16:10:20 -06:00
Larry Finger
d53cd09c9d staging: r8188eu: Convert driver to use external firmware
As originally submitted, this driver acquired its firmware from data
statements embedded in the source code. This information has been extracted
into a binary file that has been accepted into the linux-firmware git
repo as commit ffc47f1 entitled "rtlwifi: Add new firmware files for
rtl8188eu". This patch switches the driver to use this file, and deletes
the firmware data from the source.

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
2013-10-19 16:23:12 -05:00
Larry Finger
19db43ecbd rtl8188eu: Backport kernel version
This driver was added to the kernel with version 3.12. The changes in that
version are now brought back to the GitHub repo. Essentually all of the code
is updated.

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
2013-10-19 12:45:47 -05:00
Álvaro Fernández Rojas
04251b45bb Remove more unused variables from hal files. 2013-09-27 22:01:01 +02:00
Álvaro Fernández Rojas
9365e8f151 Remove unused variables from hal files. 2013-09-27 21:41:36 +02:00
Larry Finger
a5e071f8da rtl8188eu: Fix smatch warnings in hal/rtl8188e_hal_init.c
Smatch displays the following:
  CHECK   /home/finger/rtl8188eu/hal/rtl8188e_hal_init.c
/home/finger/rtl8188eu/hal/rtl8188e_hal_init.c:1695 hal_EfusePgPacketWriteData() info: ignoring unreachable code.
/home/finger/rtl8188eu/hal/rtl8188e_hal_init.c:2269 Hal_ReadPowerValueFromPROM_8188E() error: buffer overflow 'pwrInfo24G->IndexBW40_Base[rfPath]' 5 <= 5
/home/finger/rtl8188eu/hal/rtl8188e_hal_init.c:2466 Hal_ReadTxPowerInfo88E() error: buffer overflow 'pHalData->Index24G_CCK_Base[rfPath]' 14 <= 14
/home/finger/rtl8188eu/hal/rtl8188e_hal_init.c:2468 Hal_ReadTxPowerInfo88E() error: buffer overflow 'pHalData->Index24G_BW40_Base[rfPath]' 14 <= 14
/home/finger/rtl8188eu/hal/rtl8188e_hal_init.c:2474 Hal_ReadTxPowerInfo88E() error: buffer overflow 'pHalData->Index24G_CCK_Base[rfPath]' 14 <= 14
/home/finger/rtl8188eu/hal/rtl8188e_hal_init.c:2475 Hal_ReadTxPowerInfo88E() error: buffer overflow 'pHalData->Index24G_BW40_Base[rfPath]' 14 <= 14

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
2013-09-05 22:32:25 -05:00
Larry Finger
2db42a3fbf rtl8188eu: Convert non-standard variable types to regular ones
These include changing s1Byte to s8, etc.

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
2013-08-14 12:03:28 -05:00
Larry Finger
9c3c9ddc8c rtl8188eu: Fix checkpatch errors for hal/rtl8188e_hal_init.c and hal/rtl8188e_dm.c
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
2013-08-08 00:41:21 -05:00
Larry Finger
6d1127b181 rtl8188eu: Remove dead code for CONFIG_FILE_FWIMG
Eventually the internal FW will be replaced by an external file; however,
the code will be redone. Remove this stuff for now.

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
2013-07-27 11:09:18 -05:00
Larry Finger
a0911e4309 rtl8188eu: Remove RATE_ADAPTIVE_SUPPORT - this is selected
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
2013-07-26 21:47:50 -05:00
Larry Finger
2bd2f4b4c8 rtl8188eu: Convert typedef for _adapter, etc.
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
2013-07-26 20:08:39 -05:00
Larry Finger
b2804a6af7 rtl8188eu: Convert typedef statement from include/hal_intf.h
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
2013-07-26 18:04:37 -05:00
Larry Finger
7161cf35ba rtl8188eu: Convert typedef statements in include/rtl8188e_hal.h
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
2013-07-26 15:54:27 -05:00
Larry Finger
f311a752bb rtl8188eu: Convert all typedef statements in include/odm.h
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
2013-07-26 11:20:42 -05:00
Larry Finger
a831dc1f7e rtl8188eu: Convert most typedef statements from include/rtw_pwrctrl.h
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
2013-07-23 22:24:42 -05:00
Larry Finger
548e42fb94 rtl8188eu: Convert "typedef HAL_DATA_TYPE" to "struct hal_data_8188e"
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
2013-07-22 18:18:19 -05:00
Larry Finger
b8e9aac38d rtl8188eu: Convert "typedef struct PG_PKT_STRUCT_A" to "struct pgpkt"
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
2013-07-22 17:54:53 -05:00
Larry Finger
c2a914a341 rtl8188eu: Convert typedef statements in include/HalVerDef.h
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
2013-07-22 17:43:38 -05:00
Larry Finger
d76c2ca5f6 rtl8188eu: Remove DBG_IOL_READ_EFUSE_MAP, DBG_IOCTL, and DBG_IO
All three of these are not defined.

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
2013-07-21 13:23:01 -05:00
Larry Finger
48b4d6056b rtl8188eu: Remove CONFIG_RF_GAIN_OFFSET - not defined
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
2013-07-21 10:53:26 -05:00
Larry Finger
2f86fc26dd rtl8188eu: Remove CONFIG_XMIT_THREAD_MODE
This variable is not defined.

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
2013-07-19 17:50:08 -05:00
Larry Finger
f50db5cd2c rtl8188eu: Remove DBG_CONFIG_ERROR_DETECT
This variable is selected.

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
2013-07-19 17:05:40 -05:00
Larry Finger
951757e916 rtl8188eu: Remove ANTENNA DIVERSITY configuration variables and dead code
These changes include the following:
1. CONFIG_SW_ANTENNA_DIVERSITY - not selected
2. CONFIG_HW_ANTENNA_DIVERSITY - selected
3. CONFIG_ANTENNA_DIVERSITY - selected

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
2013-07-14 14:10:10 -05:00
Larry Finger
9ba4954378 rtl8188eu: Remove configuration variables CONFIG_IOL_XXX and associated dead code
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
2013-07-14 11:21:05 -05:00
Larry Finger
7c593a903d rtl8188eu: Remove dead code associated with CONFIG_CONCURRENT snd CONFIG_DUALMAC_CONCURRENT
These two configuration parameters are only associated with the RTL8192DU
device, and can be removed here.

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
2013-07-11 22:50:49 -05:00
Larry Finger
0e4009c999 rtl8188eu: Remove dead code for other than USB
The vendor code has pieces of code for PCI, SDIO, and GSPI. Remove it
and CONFIG_USB_HCI.

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
2013-07-11 13:35:36 -05:00
Larry Finger
fe06a8b006 rtl8188eu: Convert C90 comments to kernel form for hal/*.c
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
2013-07-10 13:25:07 -05:00
Larry Finger
e5113c831c rtl8188eu: Fix more sparse warnings
For the most part, these are all endian issues.

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
2013-07-09 17:40:50 -05:00
Larry Finger
fb786d0283 rtl8188eu: Fix all W=1 warnings
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
2013-06-21 13:41:29 -05:00
Larry Finger
327817d32a rtl8188eu: Fix most sparse warnings other than endedness problems
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
2013-06-03 14:52:18 -05:00
Larry Finger
4342c7358c rtl8188eu: Fix some sparse errors
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
2013-05-27 17:32:24 -05:00
Larry Finger
78adabf36d rtl8188eu: Remove unused IN and OUT directives used only for Windows
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
2013-05-26 22:51:56 -05:00
Larry Finger
eac0a699d8 rtl8188eu: Revert part of 76e49ee
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
2013-05-26 12:17:22 -05:00
Larry Finger
da6721497d rtl8188eu: More cleanups
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
2013-05-25 22:24:47 -05:00
Larry Finger
9cef34aa09 rtl8188eu: Change _FALSE and _TRUE to false and true
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
2013-05-25 22:02:10 -05:00
Larry Finger
96adb823b9 rtl8188eu: Update logging
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
2013-05-25 18:35:42 -05:00
Larry Finger
d597e07a9e rtl8188eu: More cleanups of code
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
2013-05-25 15:45:50 -05:00