Commit graph

88 commits

Author SHA1 Message Date
Larry Finger
0924dc8fe0 rtl8188eu: Allow a little extra size for rtw_hostapd_ioctl() packets
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
2020-06-12 14:26:38 -05:00
Larry Finger
71af295db5 rtl8188eu: Fix IOCTL length rejection
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
2020-06-10 14:07:55 -05:00
Larry Finger
ac42434b2a rtl8188eu: Fix gcc 10 warnings
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
2020-05-16 14:20:37 -05:00
Larry Finger
02614d02dc rtl8188eu: Fix potential data overrun
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
2020-02-09 12:22:25 -06:00
Larry Finger
c0e2cc7988 rtl8188eu: Fix scheduling while atomic splat
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
2018-03-14 11:02:54 -05:00
Larry Finger
1f08a062ad rtl8188eu: Updates for timer changes in kernel 4.15
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
2017-12-05 16:03:03 -06:00
Larry Finger
e472b5d684 rtl8188eu: Return zero length output to SIOCGIWESSID when not connected
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
2017-11-23 12:03:30 -06:00
Larry Finger
c5113ffec0 rtl8188eu: Fix buffer overrun warning
This warning is bogus, but shut the compiler up.

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
2017-07-14 10:17:47 -05:00
Larry Finger
f9dbfb74dc rtl8188eu: Remove symbol MAX_RF_PATH_NUMS
This one is always equal to RF_PATH_MAX.

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
2016-02-13 15:36:13 -06:00
Larry Finger
379691b761 rtl8188eu: Remove additional arrays from the stack in translate_scan()
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
2016-01-21 20:16:15 -06:00
Larry Finger
596818fee3 rtl8188eu: Move buffer off stack in translate_scan()
A user has reported a kernel panic that points to a stack overflow in
this routine. The array that was moved is only 64 bytes, but perhaps
the stack space is really tight.

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
2016-01-21 19:32:54 -06:00
Larry Finger
3091828c8f rtl8188eu: On kernel 2.6.32, a NULL dereference was found
This bug was reported and debugged by GitHub user jdowells.

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
2015-05-15 15:20:51 -05:00
Larry Finger
8eb572bc42 rtl8188eu: Replace rtw_ieee80211_ht_cap with standard kernel version
As shown in the previous commits, keeping alignment beetween the private header
and the kernel version is a problem. Solve the issue by using the kernel
version.

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
2015-04-08 14:02:06 -05:00
Larry Finger
209e50ad60 rtlwifi: Remove list-handling macros
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
2014-12-13 15:06:22 -06:00
Larry Finger
6d3d853360 rtl8188eu: Remove wrapper get_next()
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
2014-12-13 11:50:41 -06:00
Larry Finger
567257655f rtl8188eu: Replace LIST_CONTAINOR with container_of
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
2014-12-13 10:40:44 -06:00
Larry Finger
9ad78a5b0d rtl8188eu: Remove wrapper around INIT_LIST_HEAD()
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
2014-12-12 23:13:40 -06:00
Larry Finger
545d963a9e rtl8188eu: Remove wrapper for memset()
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
2014-12-12 22:43:35 -06:00
Larry Finger
ed2c3ab733 rtl8188eu: Rework endianess
Several of the struct items related to on-air data must be little endian.

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
2014-12-12 12:15:07 -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
849d585656 rtl8188eu: Fix some edit errors from replace spin lock wrappers
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
2014-11-28 18:42:41 -06:00
Larry Finger
8b76b3b701 rtl8188eu: Convert spin lock macros
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
2014-11-28 17:37:57 -06:00
Larry Finger
295bb23ffe rtl8188eu: Fix reporting of signal strength and quality
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
2013-12-30 21:18:17 -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
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
07931c07a0 Remove unused variables from rtw_mp_ioctl.h and move mp_ioctl_hdl to ioctl_linux.c. 2013-09-06 18:20:37 +02:00
Larry Finger
158597dcdd rtl8188eu: Fix smatch warnings in os_dep/ioctl_linux.c
Smatch reports the following warnings:
  CHECK   /home/finger/rtl8188eu/os_dep/ioctl_linux.c
/home/finger/rtl8188eu/os_dep/ioctl_linux.c:991 rtw_wx_set_pmkid() warn: add some parenthesis here?
/home/finger/rtl8188eu/os_dep/ioctl_linux.c:1092 rtw_wx_get_range() warn: assigning (-78) to unsigned variable 'range->avg_qual.level'
/home/finger/rtl8188eu/os_dep/ioctl_linux.c:2742 rtw_get_ap_info() warn: add some parenthesis here?
/home/finger/rtl8188eu/os_dep/ioctl_linux.c:4225 rtw_rereg_nd_name() warn: add some parenthesis here?
/home/finger/rtl8188eu/os_dep/ioctl_linux.c:4234 rtw_rereg_nd_name() warn: add some parenthesis here?
/home/finger/rtl8188eu/os_dep/ioctl_linux.c:5072 set_group_key() warn: missing break? reassigning 'keylen'

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
2013-09-05 17:36:23 -05:00
Larry Finger
8414aef8bd rtl8188eu: Fix checkpatch errors in os_dep/ioctl_linux.c
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
2013-08-10 11:56:55 -05:00
Larry Finger
1ada4e9170 rtl8188eu: Remove configuration parameter CONFIG_80211N_HT
This one will always be selected.

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
2013-07-27 10:56:06 -05:00
Larry Finger
e520b8da19 rtl8188eu: Remove CONFIG_MP_IWPRIV_SUPPORT - selected
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
2013-07-26 22:04:40 -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
476eaf9a4e rtl8188eu: Convert typedef statements from include/odm_HWConfig.h
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
2013-07-26 17:56:14 -05:00
Larry Finger
0ce4977846 rtl8188eu: Convert typedef statements in include/rtw_security.h
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
2013-07-26 17:02:03 -05:00
Larry Finger
3d755766c9 rtl8188eu: Convert typedef for _list to struct list_head
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
2013-07-25 09:49:25 -05:00
Larry Finger
689d01adf6 rtl8188eu: Convert typedef for _queue to struct __queue
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
2013-07-24 17:55:38 -05:00
Larry Finger
41ad3e27c6 rtl8188eu: Convert some typedef statements from include/osdep_service.h
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
2013-07-23 22:39:20 -05:00
Larry Finger
a01908ab27 rtl8188eu: Convert the typedef statements in include/wlan_bssdef.h
One remains that I still do not know how to convert; however, it has been
moved to os_dep/ioctl_linux.c where it is used.

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
2013-07-23 21:31:04 -05:00
Larry Finger
dd4a02b2ff rtl8188eu: Remove typedefs from include/rtw_mp_ioctl.h
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
2013-07-22 22:39:52 -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
d2de492de6 rtl8188eu: Convert "typedef struct _EFUSE_HAL" to "struct efuse_hal"
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
2013-07-22 17:59:49 -05:00
Larry Finger
7f074ef6dd rtl8188eu: Remove IW_SCAN_CAPA_ESSID - defined
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
2013-07-22 15:27:55 -05:00
Larry Finger
2ba4f2415c rtl8188eu: Remove CONFIG_DEBUG_RTW_WX_SET_PRIV - not defined
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
2013-07-22 15:24:26 -05:00
Larry Finger
69f205189c rtl8188eu: Remove CONFIG_SIGNAL_DISPLAY_DBM - not defined
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
2013-07-22 15:20:59 -05:00
Larry Finger
e92c85ed95 rtl8188eu: Remove CONFIG_NO_WIRELESS_HANDLERS - not defined
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
2013-07-22 15:08:59 -05:00
Larry Finger
757404fd0e rtl8188eu: Remove CONFIG_MAC_LOOPBACK_DRIVER - not defined
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
2013-07-21 18:14:53 -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
f9be1cea77 rtl8188eu: Remove CONFIG_DRVEXT_MODULE - not defined
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
2013-07-21 13:12:53 -05:00
Larry Finger
838257750b rtl8188eu: File include/rtw_ioctl_query.h is no longer needed
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
2013-07-21 13:05:38 -05:00