1
0
mirror of https://github.com/aircrack-ng/rtl8812au.git synced 2024-11-26 07:04:12 +00:00
Commit Graph

176 Commits

Author SHA1 Message Date
Ben Hutchings
b3f7e7a428 Fix eth_hw_addr_set() definition for compatibility with stable branches
eth_hw_addr_set() was added in Linux 5.15 but has now been backported
to 4.19.291, 5.4.251, and 5.10.188.  This currently results in build
failure for these stable branches.

There's no simple way to test for the addition of this function since
LINUX_VERSION_CODE limits version components to 255.

Work around this by defining an inline function rtw_eth_hw_addr_set()
and a macro eth_hw_addr_set().  This effectively shadows any
backported definition of the eth_hw_addr_set() function without any
conflict.

Signed-off-by: Ben Hutchings <ben.hutchings@mind.be>
2023-11-07 20:52:16 +01:00
Carlos Garcés
3bcbfe4031
Fix compilation error on kernels < 5.15 2023-07-03 18:19:34 +02:00
Carlos Garcés
09ba98c7d3 Use eth_hw_addr_set instead of dev_addr_set 2023-07-02 12:11:29 +00:00
kimocoder
ca797e114b Revert "Some cleanup of unused chips"
This reverts commit b3227c731e.
2023-06-06 17:50:45 +02:00
kimocoder
b3227c731e Some cleanup of unused chips 2023-05-26 06:36:51 +02:00
kimocoder
35308f4dd7 Code optimization 2023-05-02 03:07:11 +02:00
kimocoder
357faf7221 Minor fixes and cleanup 2023-05-02 02:11:29 +02:00
kimocoder
8cb23d8f91 Remove dead code associated with CONFIG_PLATFORM_INTEL_BYT 2023-05-02 01:28:48 +02:00
kimocoder
d4ad2121c9 get_ra() exists only on PowerPC 2023-05-02 00:25:10 +02:00
kimocoder
1e2ca339a6 Fix clang warning 2023-05-01 23:20:29 +02:00
GeorgeBannister
c0084bb902 fix prototype 2023-01-26 14:39:27 +00:00
GeorgeBannister
92c313c3b1 fix cfi trip from usb_recv_tasklet 2023-01-25 11:02:40 +00:00
elfabx
be6f069dc1
Fix for for corrupted device name
The macro definition for kernels < 5.15 is changed so that it is consistent with usage prior #961. Change should not affect compilation for newer kernels.
2022-07-30 22:53:29 +01:00
kimocoder
cab4e4ec56 Remove more Windows code 2022-06-06 05:15:15 +02:00
Christian Bremvåg
2fcc00bbb3
Merge pull request #961 from Reflexe/v5.17.5
Fix compilation issues with 5.17 (archlinux)
2022-06-06 03:21:14 +02:00
kimocoder
41532e3b16 Add kernel 5.18 support 2022-06-06 02:50:32 +02:00
Shmuel H
5bb4bffa97 linux: set netdev macaddr using dev_addr_set
dev_addr is const now, therefore, we have to use dev_addr_set
in order to modify it.
2022-05-07 14:30:47 +03:00
heitbaum
7e61ad89cc rtl8812au: Fix code for kernel 5.17 API change
Signed-off-by: Rudi Heitbaum <rudi@heitbaum.com>
2022-02-09 13:40:47 +00:00
astsam
5e61763585 Add low frequency 5GHz band 2021-01-29 23:27:17 +03:00
astsam
5e66b8754f Add missing 5GHz channels 2021-01-29 22:48:42 +03:00
kimocoder
e90626b5c3 Fixed kernel v5.8 support 2020-08-16 18:45:23 +02:00
kimocoder
b79883bf58 Some minor optimizations 2020-07-12 05:34:24 +00:00
kimocoder
b3bf74abe3 Fix wrong header guards - found by clang 2020-07-12 03:35:14 +00:00
kimocoder
57c7564a86 Optimize kernel includes 2020-07-12 03:17:32 +00:00
kimocoder
e65b190ab7 Remove unused includes 2020-07-12 03:04:21 +00:00
Christian Bremvåg
cddf06aa39
Fix build when CONFIG_USB_SUSPEND is defined 2020-07-12 04:23:08 +02:00
kimocoder
bff1fe3fe3 Minor cleanup 2020-07-12 02:20:09 +00:00
Christian Bremvåg
d6607fe168
Fix implicit declaration of ‘rtw_resume_process’ 2020-07-12 04:09:34 +02:00
Carlos
0a3f017fa4 Fix compilation error with 5-8-rc1
Remove EOL kernel
2020-07-10 11:23:31 +02:00
Mathy Vanhoef
849bbf0698 rtl8812a: add module parameter to retransmit injected frames
The reliability of some attacks is increased by letting the device
retransmit injected frames. Since it may not always be desired to
retransmit injected frames, add a module parameter to enable it
manually.

This was tested with an Alfa AWUS036ACH. Even when using a spoofed
sender MAC address, the retransmission behaviour is as expected.
That is, when an ACK frame towards the spoofed MAC address is received,
the retransmission will stop.
2020-06-26 16:23:46 +04:00
Mathy Vanhoef
1b86121806 rtl8812a: do not overwrite sequence number of injected frames
The sequence number of inject frames was being overwritten. This prevents
certain older attacks against WEP fragmentation older TKIP attacks. Fix
this by tracking if a frames was injected in monitor mode, and if so, do
not overwrite its sequence number.

The patch also adds a module parameter to revert this behaviour if needed.
By setting rtw_monitor_overwrite_seqnum to 1, sequence numbers will again
be set by the driver/device. This may by useful if user-space relied on
the driver/device to set sequence numbers.

This patch was tested using an Alfa AWUS036ACH.
2020-06-26 09:27:54 +04:00
Quentin Barnes
1076705322 Add RHEL 8 support and support for possible work on future RHEL
releases.
2020-03-28 10:16:11 -05:00
kimocoder
25fc708837 Removed keep alive flags to solve sta disconnections every 30s 2020-03-13 19:26:37 +01:00
kimocoder
39e9af79d8 remove USB_PACKET_OFFSET_SZ 2020-03-07 23:01:53 +00:00
kimocoder
0d2331d052 Fix wrong header guards + Added Android ARM64 platform 2020-02-01 09:21:48 +01:00
kimocoder
856e392531 Some tweaks around the code 2020-02-01 09:04:01 +01:00
kimocoder
87ee8a2f44 Minor fix to kernel v4.19 support (IEEE80211_MAX_AMPDU_BUF_HT) 2020-02-01 07:29:23 +01:00
kimocoder
4b7b6ad3de Turn of AUTOSUSPEND 2020-02-01 07:22:29 +01:00
kimocoder
19890f07a4 Restore 1mbps by default 2020-02-01 07:13:55 +01:00
kimocoder
57a2ce4f20 Revert: Test fix for latest kernel which changed 'asm' to 'asm_inline' 2019-12-17 22:28:41 +01:00
kimocoder
392109f98a Test fix for latest kernel which changed 'asm' to 'asm_inline' 2019-12-17 19:29:57 +01:00
kimocoder
6e0c8f474a Some minor fixes around the code 2019-12-16 22:41:52 +01:00
int3l
a8d0fec8e0 Reintroduce: Added LED control
This commit is cherry-pick + refactoring of:
ff04a94b00
and
313311c14b

I'm not sure how this got lost in the latest version on GitHub (I guess merging issues).
But all credits go to @gordboy, @kimocoder and all the other authors.
2019-11-29 23:20:46 +02:00
kimocoder
75a5725e0b Added LED control 2019-11-29 11:03:59 +02:00
kimocoder
28a8d26f11 Fixes for compiling against OpenWRT tree 2019-11-18 16:12:51 +01:00
kimocoder
af1ffffa98 Added a kernel include 2019-11-14 20:25:23 +01:00
kimocoder
0c23551874 Cleanup wrong commit earlier 2019-11-14 04:33:12 +01:00
kimocoder
506f1e3c11 Added frame injection capabilities (tested working) 2019-11-14 03:11:57 +01:00
kimocoder
fa35b99b42 Implemented txpower control 2019-11-13 16:36:58 +01:00
kimocoder
ad32b0d9a8 A fix to avoid freeze on unplugging adapter 2019-11-11 02:54:47 +01:00