Karsten Wiese
0f6d12e144
rtl8188eu: Fix "fix some UBSAN and kmalloc warnings"
...
This fixes
commit 4a73c76f02
Author: Larry Finger <Larry.Finger@lwfinger.net>
Date: Mon May 10 10:25:47 2021 -0500
rtl8188eu: fix some UBSAN and kmalloc warnings
For LINUX_VERSION_CODE < KERNEL_VERSION(5, 8, 0).
The function argument 'upd' only exists, if
LINUX_VERSION_CODE >= KERNEL_VERSION(5, 8, 0),
hence move the 'if' block reading 'upd' inside the
'#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 8, 0))' macro guard.
2021-12-11 17:03:43 +01:00
Larry Finger
4a73c76f02
rtl8188eu: fix some UBSAN and kmalloc warnings
...
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
2021-05-10 10:25:47 -05:00
Larry Finger
99a60df1f5
rtl8188eu: Fix builds for old and new kernels
...
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
2021-04-09 16:34:42 -05:00
Larry Finger
8118ea20d7
rtl8188eu: Fix build errors with later kernels
...
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
2020-10-26 11:35:16 -05:00
Larry Finger
49e792766b
rtl8188eu: Fix build for kernel 5.0 and newer
...
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
2019-10-16 11:47:29 -05:00
Larry Finger
77148c3879
rtl8188eu: Add TP-Link TL-WN727N v5.21
...
This info provided by kakash1hatake.
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
2019-10-16 11:06:10 -05:00
Larry Finger
d27018debd
rtl8188eu: Fix breakage of build for kernels older than 4.18
...
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
2019-10-08 13:41:32 -05:00
Yevhen Fastiuk
5f2c143ca2
cfg80211: Fixed unallocated stats
2019-09-10 18:49:47 +03:00
MilhouseVH
77471b4361
rtw_select_queue signature change in 4.19-rc1
...
Ref: 4f49dec907
2018-08-30 13:26:12 -05:00
Larry Finger
242c9f54cc
rtl8188eu: Fix some checkpatch warnings
...
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
2018-08-30 13:19:58 -05:00
Larry Finger
0b659bd591
rtl8188eu: Fix problem where device is not up on module load
...
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
2018-05-05 14:11:22 -05:00
Larry Finger
594a5a050d
rtl8188eu: Fix builds for branch v4.1.8_9499 for newer kernels
...
These changes allow builds up through kernel 4.16.
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
2018-04-11 10:19:48 -05:00
alfa-jpn
f419d3c50c
Adopt device ids from master.
2017-10-25 13:13:06 +09:00
Larry Finger
2d546792fc
rtl8188eu: Fix build for kernel 4.7 and later
...
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
2017-01-20 11:52:26 -06:00
Larry Finger
f8ec1962dd
rtl8188eu: Remove "enum ODM_RF_RADIO_PATH" and ODM_RF_PATH_x
...
These are already expressed as "enum rf_radio_path" and RF_PATH_x. Having
two definitions is ridiculous.
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
2016-02-14 20:14:42 -06:00
Larry Finger
37a56bca8b
rtl8188eu: Move arrays off stack in translate_scan()
...
A user has reported a stack overflow panic in this routine. This patch
removes at least 782 bytes from the stack.
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
2016-01-21 20:08:06 -06:00
Larry Finger
69faa02ea5
rtl8723bs: Remove second interface name
...
Only the RTL8192D chips have multiple interfaces per chip, thus
this logic has no value here.
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
2015-09-26 13:54:47 -05:00
Larry Finger
2601c36dd9
rtl8723bs: Remove rtw_chip_version as module parameter
...
This parameter might be useful when the original driver was developed,
but it is useless in production code.
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
2015-09-26 13:22:28 -05:00
Larry Finger
69fded9155
rtl8188eu: Cancel more timers on exit
...
A quick look shows the new ones have not been stopped.
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
2015-09-14 20:41:35 -05:00
Larry Finger
fc326e6a07
rtl8188eu: Remove CONFIG_WAKELOCK, CONFIG_HAS_EARLYSUSPEND, and CONFIG_ANDROID_POWER
...
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
2015-08-17 10:23:46 -05:00
Larry Finger
549cb92f47
rtl8188eu: Remove CONFIG_INTEL_PROXIM
...
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
2015-08-17 10:11:05 -05:00
Larry Finger
3a3339b715
rtl8188eu: Replace degub macro DBG_871X with DBG_88E
...
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
2015-08-15 16:38:30 -05:00
Larry Finger
1e6accffc4
rtl8188eu: Remove wrapper routine rtw_get_current_time()
...
This wrapper can be replaced with jiffies.
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
2015-08-15 16:35:29 -05:00
Larry Finger
51e6fae39e
rtl8188eu: Chnage "=NULL" to "= NULL"
...
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
2015-08-15 13:31:56 -05:00
Larry Finger
16d2a24227
rtl8188eu: Change "}else{" and variants to "} else {"
...
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
2015-08-15 13:27:00 -05:00
Larry Finger
0a97479cee
rtl8188eu: Change "){" to ") {"
...
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
2015-08-15 13:24:16 -05:00
Larry Finger
c137ff21e5
rtl8188eu: Change "==0" to "== 0"
...
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
2015-08-15 13:22:58 -05:00
Larry Finger
9ee6ae40c3
rtl8188eu: Change "for(" to "for ("
...
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
2015-08-15 13:06:32 -05:00
Larry Finger
c818db1282
rtl8188eu: Change "switch(" to "switch ("
...
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
2015-08-15 13:05:44 -05:00
Larry Finger
8e22f0d2e8
rtl8188eu: Change "while(" to "while ("
...
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
2015-08-15 13:04:12 -05:00
Larry Finger
6ead3e77dc
rtl8188eu: Change all "if(" to "if ("
...
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
2015-08-15 13:02:34 -05:00
Larry Finger
aa89a39a09
rtl8188eu: Remove spaces before quoted newline
...
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
2015-08-15 13:00:19 -05:00
Larry Finger
76682b1874
rtl8188eu: Fix Fix Sparse warning in os_dep/os_intfs.c
...
Sparse issues the following:
CHECK /home/finger/rtl8188eu/os_dep/os_intfs.c
/home/finger/rtl8188eu/os_dep/os_intfs.c:647:4: warning: symbol 'rtw_init_default_value' was not declared. Should it be static?
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
2015-08-14 19:40:02 -05:00
Larry Finger
c8bd30ee46
rtl8188eu: Fix Sparse errors in os_dep/ioctl_linux.c
...
The following Sparse warnings are output:
CHECK /home/finger/rtl8188eu/os_dep/ioctl_linux.c
/home/finger/rtl8188eu/os_dep/ioctl_linux.c:3184:9: warning: context imbalance in 'rtw_get_ap_info' - different lock contexts for basic block
/home/finger/rtl8188eu/os_dep/ioctl_linux.c:3916:9: warning: context imbalance in 'rtw_p2p_get_go_device_address' - wrong count at exit
/home/finger/rtl8188eu/os_dep/ioctl_linux.c:4063:9: warning: context imbalance in 'rtw_p2p_get_device_name' - wrong count at exit
/home/finger/rtl8188eu/os_dep/ioctl_linux.c:4146:9: warning: context imbalance in 'rtw_p2p_get_invitation_procedure' - wrong count at exit
/home/finger/rtl8188eu/os_dep/ioctl_linux.c:6879:12: warning: context imbalance in 'rtw_del_sta' - different lock contexts for basic block
Each of these is a real error caused by improper use of a spin lock when
a spin unlock is needed.
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
2015-08-14 19:35:20 -05:00
Larry Finger
0160af01ca
rtl8188eu: Fix build warning for kernel 4.1 and later
...
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
2015-08-12 10:58:21 -05:00
Larry Finger
b5cf1b0cf3
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:23:44 -05:00
Larry Finger
d76cbb313d
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 13:43:40 -05:00
Larry Finger
7460f4b22a
rtl8188eu: Remove most typedef statements from include/hal_intf.h
...
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
2015-03-17 10:31:25 -05:00
Larry Finger
8259a22027
rtl8188eu: Remove typedef statements from include/rtw_mp_ioctl.h
...
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
2015-03-16 20:24:53 -05:00
Larry Finger
e2285839e9
rtl8188eu: Remove most typedef statements from include/osdep_service.h
...
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
2015-03-16 08:54:18 -05:00
Larry Finger
851dc8fff5
rtl8188eu: Remove typedef statements from include/wlan_bssdef.h
...
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
2015-03-14 18:14:05 -05:00
Larry Finger
e233420466
rtl8188eu: Remove executable mode for all source files
...
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
2015-03-13 16:54:44 -05:00
Larry Finger
b054bfff27
rtl8188eu: Convert driver to use external firmware
...
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
2015-03-12 21:01:49 -05:00
Larry Finger
669536c180
rtl8188eu: Remove CONFIG_SPECIAL_SETTING_FOR_FUNAI_TV
...
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
2015-03-12 14:24:31 -05:00
Larry Finger
6eb9cc27c9
rtl8188eu: Remove CONFIG_USE_USB_BUFFER_ALLOC_TX
...
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
2015-03-12 14:20:06 -05:00
Larry Finger
f42ef2ce84
rtl8188eu: Remove CONFIG_TCP_CSUM_OFFLOAD_TX
...
This change also allows the removal of rtw_set_tx_chksum_offload() as
it is now empty.
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
2015-03-12 14:14:19 -05:00
Larry Finger
cf743bff3d
rtl8188eu: Remove CONFIG_ADAPTOR_INFO_CACHING_FILE
...
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
2015-03-11 20:44:10 -05:00
Larry Finger
109963133b
rtl8188eu: Remove CONFIG_RESUME_IN_WORKQUEUE
...
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
2015-03-11 20:29:25 -05:00
Larry Finger
2339d6c52a
rtl8188eu: Remove DBG_CONFIG_ERROR_DETECT
...
This symbol is defined.
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
2015-03-11 20:21:04 -05:00
Larry Finger
4c042ff344
rtl8188eu: Remove CONFIG_EVENT_THREAD_MODE
...
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
2015-03-11 13:38:11 -05:00