Michael Straube
8f94c636ca
remove cmd_osdep.h header file
...
All functions declared in the cmd_osdep.h header file are only used in
a single c source file. Make the functions static and remove the header
file and its includes.
Link: https://lore.kernel.org/r/20210821155151.25822-1-straube.linux@gmail.com
2021-10-12 18:21:11 +02:00
Carlos Garces
91b4661c5f
use common ieee80211 constants
...
Many defined constants in wifi.h are unused and/or available from
<linux/ieee80211.h>, some with slightly different names. Remove
the constants from ieee80211.h and wifi.h and use the common ones. Rename where
necessary.
2021-10-12 17:52:52 +02:00
Carlos Garces
bb3dc5ca12
Replace _rtw_memmove with memmove
2021-10-12 17:09:01 +02:00
Carlos Garces
71d5c54af2
Replace _rtw_memcpy with memcpy
2021-10-12 17:03:53 +02:00
Martin Kaiser
972b1c23e2
remove unused members of struct _io_ops
...
Remove function pointers which are not used by the r8188eu driver.
Link: https://lore.kernel.org/r/20210821164859.4351-9-martin@kaiser.cx
2021-10-12 16:37:54 +02:00
Carlos Garces
1c50f4c603
Removed unused and empty functions
2021-10-12 16:02:19 +02:00
Martin Kaiser
28e0bba794
ctrl vendor req value is always 0x05
...
The bRequest value for the vendor specific control requests sent by this
driver is always 0x05. Replace the function parameter with the define from
usb_ops.h.
This patch is an adaptation of commit eeb4661560ff ("staging: rtl8188eu:
ctrl vendor req value is always 0x05") for the new r8188eu driver.
Link: https://lore.kernel.org/r/20210818200041.10870-1-martin@kaiser.cx
2021-10-11 16:36:03 +02:00
Carlos Garcés
f218547ef9
Remove unused debug function
2021-10-11 16:14:07 +02:00
Phillip Potter
3255bcf093
remove function _rtw_zvmalloc
...
Remove the function _rtw_zvmalloc from os_dep/osdep_service.c, as this
function is now unused and is just an inline wrapper around vmalloc
which zeroes out the memory. All previous callers have been converted to
use vzalloc. Also remove the declaration from include/osdep_service.h.
It is considered generally bad practice to declare functions as inline in
the majority of cases, as not only can this qualifier be ignored by the
compiler but the compiler generally makes good decisions about inlining
anyway.
Link: https://lore.kernel.org/r/20210818234853.208448-7-phil@philpotter.co.uk
2021-10-11 16:12:10 +02:00
Phillip Potter
9f0e896c35
remove rtw_zvmalloc preprocessor definition
...
Remove rtw_zvmalloc preprocessor definition from include/osdep_service.h
as it now has no callers.
Link: https://lore.kernel.org/r/20210818234853.208448-6-phil@philpotter.co.uk
2021-10-11 16:03:12 +02:00
Phillip Potter
1f0cf855dc
remove function _rtw_vmalloc
...
Remove the function _rtw_vmalloc from os_dep/osdep_service.c, converting
its only user (also in os_dep/osdep_service.c) to use plain vmalloc.
This function is just an inline wrapper around vmalloc which returns a u8
pointer, which isn't needed. Also remove the declaration from
include/osdep_service.h.
It is considered generally bad practice to declare functions as inline in
the majority of cases, as not only can this qualifier be ignored by the
compiler but the compiler generally makes good decisions about inlining
anyway.
Link: https://lore.kernel.org/r/20210818234853.208448-4-phil@philpotter.co.uk
2021-10-11 15:50:48 +02:00
Phillip Potter
6e2f371df5
remove rtw_vmalloc preprocessor definition
...
Remove rtw_vmalloc preprocessor definition from include/osdep_service.h
as it now has no callers.
Link: https://lore.kernel.org/r/20210818234853.208448-3-phil@philpotter.co.uk
2021-10-11 15:46:55 +02:00
Michael Straube
c1f70ba056
use common ieee80211 constants
...
Many defined constants in wifi.h are unused and/or available from
<linux/ieee80211.h>, some with slightly different names. Remove
the constants from wifi.h and use the common ones. Rename where
necessary.
Link: https://lore.kernel.org/r/20210814165518.8672-1-straube.linux@gmail.com
2021-10-11 15:03:09 +02:00
Nathan Chancellor
8d93cdeefa
Remove unused static inline functions in rtw_recv.h
...
The functions are not used or are called
from functions that are not used so just remove them to remove the
warnings.
Link: https://lore.kernel.org/r/20210812204027.338872-2-nathan@kernel.org
2021-10-11 14:06:16 +02:00
Michael Straube
03af80bee9
replace custom macros with is_broadcast_ether_addr
...
Replace usage of custom macros with is_broadcast_ether_addr. All buffers
are properly aligned. Remove the now unsued macros MacAddr_isBcst and
IS_MAC_ADDRESS_BROADCAST.
Link: https://lore.kernel.org/r/20210805205010.31192-1-straube.linux@gmail.com
2021-10-11 13:29:13 +02:00
Larry Finger
9ad10523e3
Remove wrapper rtw_sleep_schedulable()
...
This wrapper is never used.
Link: https://lore.kernel.org/r/20210805192644.15978-6-Larry.Finger@lwfinger.net
2021-10-11 13:03:59 +02:00
Larry Finger
a5adfa895b
Remove wrapper rtw_udelay_os()
...
This wrapper is a simple call to udelay(). Remove it.
Link: https://lore.kernel.org/r/20210805192644.15978-4-Larry.Finger@lwfinger.net
2021-10-11 13:00:27 +02:00
Larry Finger
7f8451a86e
Remove wrapper rtw_mdelay_os()
...
This wrapper just calls mdelay(). Remove it.
Link: https://lore.kernel.org/r/20210805192644.15978-3-Larry.Finger@lwfinger.net
2021-10-11 12:57:06 +02:00
Larry Finger
fdbea81f08
Remove wrapper routine rtw_msleep_os()
...
The effect of this macro is to call msleep(). Remove the wrapper.
Link: https://lore.kernel.org/r/20210805192644.15978-2-Larry.Finger@lwfinger.net
2021-10-11 10:44:02 +02:00
Larry Finger
1fcfef2e07
Remove rtw_yield_os()
...
This wrapper is just a call to yield().
Link: https://lore.kernel.org/r/20210805192644.15978-1-Larry.Finger@lwfinger.net
2021-10-11 10:44:02 +02:00
Larry Finger
51e1f13a91
Remove all calls to _rtw_spinlock_free()
...
This routine is empty, thus all calls to it can be removed.
Link: https://lore.kernel.org/r/20210805183717.23007-4-Larry.Finger@lwfinger.net
2021-10-11 10:44:02 +02:00
Larry Finger
34ec238387
Remove wrapper around vfree
...
This call is so simple that there is no need, or use, for a wrapper.
Link: https://lore.kernel.org/r/20210805183717.23007-3-Larry.Finger@lwfinger.net
2021-10-11 10:44:02 +02:00
Larry Finger
4d3d23dd24
Remove wrapper around do_div
...
Wrapper routine rtw_modular64() contains only a call to do_div() and
is used once in the code. Remove the wrapper.
Link: https://lore.kernel.org/r/20210803135223.12543-9-Larry.Finger@lwfinger.net
2021-10-11 10:44:02 +02:00
Larry Finger
d7c3737cd5
Remove wrappers for atomic operations
...
These wrappers were useful when this driver had the hooks for Windows,
but are no longer needed.
Link: https://lore.kernel.org/r/20210802192721.23110-4-Larry.Finger@lwfinger.net
2021-10-11 10:44:02 +02:00
Phillip Potter
e8b235e056
correct set/defined but unused warnings from debug cleanup
...
This patch fixes an existing warning
related to an array within include/rtw_security.h not being used.
Link: https://lore.kernel.org/r/20210731133804.196631-1-phil@philpotter.co.uk
2021-10-11 10:44:01 +02:00
Greg Kroah-Hartman
6b5e7665c9
remove rtw_usb_control_msg() macro
...
It is a wrapper around usb_control_msg() that does nothing, so remove
the macro and just call the correct USB function instead in the one
place it is used.
Link: https://lore.kernel.org/r/20210730092417.1014392-12-gregkh@linuxfoundation.org
2021-10-11 10:44:01 +02:00
Greg Kroah-Hartman
904e95f373
remove rtw_usb_bulk_msg() macro
...
No one is using this wrapper macro, so just remove it as it is
pointless.
Link: https://lore.kernel.org/r/20210730092417.1014392-11-gregkh@linuxfoundation.org
2021-10-11 10:44:01 +02:00
Greg Kroah-Hartman
ca6e4a43f7
remove include/nic_spec.h
...
No one was including this file, so just remove it.
Link: https://lore.kernel.org/r/20210730092417.1014392-10-gregkh@linuxfoundation.org
2021-10-11 10:44:01 +02:00
Greg Kroah-Hartman
361918ceb1
remove unused enum _NIC_VERSION
...
None of these enumerated values were used anywhere in the driver, so
just remove them all.
Link: https://lore.kernel.org/r/20210730092417.1014392-9-gregkh@linuxfoundation.org
2021-10-11 10:44:01 +02:00
Greg Kroah-Hartman
ac1790da7c
remove rtw_mfree2d() function
...
It is just a wrapper around kfree(), so remove it and just call kfree()
instead.
Adaptation of: https://lore.kernel.org/r/20210730092417.1014392-7-gregkh@linuxfoundation.org
2021-10-11 10:44:01 +02:00
Larry Finger
1401b54fd0
Remove empty header file
...
File include/drv_types_linux.h is empty. Remove it.
Adaptation of: https://lore.kernel.org/r/20210729170930.23171-2-Larry.Finger@lwfinger.net
2021-10-10 23:13:31 +02:00
Carlos Garcés
e103b7c701
Merge pull request #232 from CGarces/centos8_fix
...
Add RHEL/CENTOS 8 support
2021-04-03 16:52:43 +02:00
Carlos
48460503c0
Add RHEL/CENTOS 8 support
2021-04-01 15:37:13 +00:00
Carlos Garces
8fa56156a8
Fix wireless regulatory API misuse
...
Port of 81f153faac
2021-03-11 23:39:00 +01:00
Carlos Garces
2f31fe5ecd
Force get sta_info.h from include folder
2020-12-14 12:58:56 +01:00
Carlos
f0a1b30419
Fix kernel 5.8 compilation
2020-06-15 22:35:08 +02:00
Carlos Garces
1d807f14d8
Add version v5.6.4
2019-11-13 22:12:20 +01:00
Maxim Buzdalov
30ba4de6ef
Enable power management (hopefully).
...
I mean, it does not crash, but I have no hardware to tell
whether the output power actually changes.
2019-08-22 02:02:40 +03:00
MilhouseVH
1722ad907f
IEEE80211_MAX_AMPDU_BUF is bumped in 4.19-rc1 - avoid redefine warning
...
Ref: b8042b3da9
2018-08-28 03:52:03 +01:00
Carlos Garces
80a0cb2c1a
Update for kernel 4.15
...
This commit adds support for kernel 4.15, which changed the timer interface.
Fetch from 8c3acf9275
2018-01-04 00:49:20 +01:00
Magnus Bergmark
2f44b072f1
Port changes to master to this branch
...
Ports 0af336b999
to this branch.
2017-07-06 07:56:12 +02:00
Carlos Garcés
c898434525
Fix build for API changes in kernel 4.11
2017-05-27 15:03:28 +02:00
CGarces
3d6c7de21a
Updated to 4.4.1
2017-05-11 20:49:39 +02:00
CGarces
9dde4572b4
Updated to v4.3.8_12406.20140929
2017-05-11 20:38:48 +02:00
Magnus Bergmark
1387cf623d
The official RTL8192EU linux driver from D-Link Australia
...
Version information: 20140812_rtl8192EU_linux_v4.3.1.1_11320
2014-08-12
version 4.3.1.1_11320
Source:
ftp://files.dlink.com.au/products/DWA-131/REV_E/Drivers/DWA-131_Linux_driver_v4.3.1.1.zip
This version does not currently work on newer kernels, but it does
contain USB ID 2001:3319, which a lot of other repos in GitHub does not.
2015-08-18 21:03:11 +02:00