1
0
mirror of https://github.com/aircrack-ng/rtl8812au.git synced 2024-12-29 01:08:47 +00:00
Commit Graph

406 Commits

Author SHA1 Message Date
kimocoder
c7f8f6e363 Remove leftovers of Intel WIDI and take a general cleanup 2024-05-09 21:22:32 +02:00
alium
860ccf3165
Update ioctl_cfg80211.c - support for kernel 6.9
support for kernel 6.9
2024-03-30 09:50:44 +01:00
Christian Bremvåg
98895e9f2e
Merge pull request #1134 from crivasr/v5.6.4.2
Fix change_beacon for kernel 6.7
2024-03-15 23:59:04 +01:00
alium
88d0f5ca85
Update usb_intf.c for kernel 6.8 2024-03-12 07:14:38 +01:00
alium
d3feb6ae93
Update os_intfs.c for kernel 6.8 2024-03-12 07:11:35 +01:00
CamiKaseM7
c0d16813f5 Fix change_beacon for kernel 6.7 2024-01-16 03:44:34 -03:00
Christian Bremvåg
a3e0c0b6d5
Merge pull request #1122 from bwh-mind/rssi-notif
ioctl_cfg80211: Add support for standard RSSI notifications
2023-11-17 20:11:47 +01:00
Ben Hutchings
8b485b79be Make use of MODULE_IMPORT_NS conditional
Commit 8954f2b8d8 added an unconditional:

    MODULE_IMPORT_NS(VFS_internal_I_am_really_a_filesystem_and_am_NOT_a_driver);

For compatibility with old kernel versions, guard this declaration
with #ifdef MODULE_IMPORT_NS.

This specific symbol namespace is also Android-specific, so the
declaration should also be conditional on building for Android, but
there doesn't seem to be a single preprocessor symbol that indicates
that.

Signed-off-by: Ben Hutchings <ben.hutchings@mind.be>
2023-11-07 20:52:16 +01:00
Ben Hutchings
5b90ddb5cb ioctl_cfg80211: Add support for standard RSSI notifications
Currently background scanning with wpa_supplicant does not work very
well because rtl8812au does not notify it about changes to RSSI.  To
fix this:

* Implement the cfg80211_ops::set_cqm_rssi_config operation to set the
  parameters for RSSI notifications.
* Add a rtw_cfg80211_cqm_rssi_update() function that calls
  cfg80211_cqm_rssi_notify() if the RSSI has changed significantly
  (based on those parameters).
* When connected in infrastructure mode, call
  rtw_cfg80211_cqm_rssi_update() after processing a beacon and
  updating the RSSI.

Signed-off-by: Ben Hutchings <ben.hutchings@mind.be>
2023-11-07 20:52:13 +01:00
Christian Sarre
9d4d3f52a2 Fix build on Ubuntu 23.04 (kernel 6.2).
This is done by specifying the ranges for 6.3 and 6.4 versions which need the fix.
Kernel 6.2, to my knowledge, is not used in other popular distros than Ubuntu.

Ubuntu had backported the change from kernel 6.5 to 6.2, which is why this is needed.

Added a comment instructing what to do if one wants to build the module
running kernel 6.2 on something else than Ubuntu.
2023-11-01 09:49:57 +02:00
Christian Sarre
d8ad927155 Fix build on 6.x kernels.
It was broken due to kernel changes backported from 6.5 (torvalds/linux@e8c2af6).
Changes have been tested on the following configurations and observed to build:
 - Debian Bullseye, kernel 6.1.38-4 (bullseye-backports)
 - Debian Bookworm, kernel 6.1.52-1
 - Ubuntu 23.04 Lunar, kernel 6.2.0-36

There are also other kernel versions which are affected up to some point in their history,
but there were a few reasons I ended up not including them:
 - Kernel 6.2: Not in use on Debian, likely skipped in favor of 6.4+. Ubuntu though has backported the change to 6.2 on Lunar.
 - Kernel 6.3: Not in use on Debian/Ubuntu, seems to have been skipped in favor of 6.4/6.5+.
 - Kernel 6.4: Not in use on Ubuntu. Debian Bookworm has this available in backports, but they now also offer 6.5 which does not have the issue.

In case someone tries to build this module running kernel 6.2 on something other than Ubuntu, this fix is most likely necessary.
2023-10-31 21:04:54 +02:00
kimocoder
81be2f4681 Add kernel v6.6 support 2023-10-29 16:29:30 +01:00
kimocoder
8954f2b8d8 Fix the VFS internal message 2023-10-29 15:15:50 +01:00
seppzer0
eff5b5a0c4 Add an extra definition for cfg80211_connect_bss() usage 2023-07-19 00:12:47 +02:00
Christian Stewart
d00db12afc ioctl_cfg80211: fix build against kernels < 4.10.x
Kernel 4.10.x adjusted cfg80211_connect_bss to accept a timeout as the last
argument. Add a conditional statement which removes this extra parameter if the
kernel is less than version 4.10.x to fix build errors against version 4.9.x.

Note that the Jetson TX2 kernel is still version 4.9.x even though this version
is technically deprecated upstream.

Signed-off-by: Christian Stewart <christian@aperture.us>
2023-07-03 13:54:27 -07:00
Carlos Garcés
09ba98c7d3 Use eth_hw_addr_set instead of dev_addr_set 2023-07-02 12:11:29 +00: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
96b013c38a Possible fix for iwd crash 2023-05-01 22:05:27 +02:00
Asuki Kono
7d8f12970d
Add 056E:4010 for elecom device 2023-04-13 16:23:45 +09:00
gluker
42a0c86d1a Adopt patch for 5.x kernel warning dump 2023-04-02 06:41:44 +03:00
gluker
0445b2ba0a Fix compiler (rtw_br_ext.c:969:11) and kernel (net/wireless/sme.c:843) warnings 2023-04-02 04:56:03 +03:00
Christian Bremvåg
e9699df823
Merge pull request #1053 from astsam2/v5.6.4.2
Fix control channel frequency in the cfg80211_rtw_get_channel() for 40 MHz channels
2023-03-13 23:29:06 +01:00
kimocoder
47edc1bddf Add kernel v6.3 support 2023-03-13 23:28:34 +01:00
Sergei Makarenkov
a278842835 Fix control channel frequency in the
cfg80211_rtw_get_channel() for 40 MHz channels
2023-03-13 15:28:39 +03:00
Christian Bremvåg
d98018d038
Merge pull request #1034 from eusafe/dev
added RHEL_RELEASE_VERSION 8
2023-02-03 22:23:42 +01:00
GeorgeBannister
e1e4ebd3ef fix cfi trip from rtw_xmit_entry 2023-01-26 14:37:56 +00:00
GeorgeBannister
92c313c3b1 fix cfi trip from usb_recv_tasklet 2023-01-25 11:02:40 +00:00
Evgeny
a070fd98f6 added RHEL_RELEASE_VERSION 8 2022-12-22 16:59:33 +03:00
5kft
1d83c0d457 Add kernel 6.1 support
Co-authored: Rudi Heitbaum <rudi@heitbaum.com>
Signed-off-by: 5kft <5kft@users.noreply.github.com>
Signed-off-by: Rudi Heitbaum <rudi@heitbaum.com>
2022-10-18 09:37:16 +00:00
kimocoder
d809a0b3d7 Add switch for VIF (vintf) support 2022-08-27 03:16:26 +02:00
kimocoder
2aafb1ead6 Add some Android fixes 2022-08-27 03:10:39 +02:00
Rudi Heitbaum
c65315c178 Add kernel 5.19.2 support 2022-08-19 10:59:57 +00:00
Rudi Heitbaum
3854a61113 Add kernel 6.0 support 2022-08-15 13:35:43 +00: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
a7e64bafd4 linux: proc: use pde_data instead of PDE_DATA in >=5.17 2022-05-07 19:38:51 +03: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
kimocoder
37e27f9165 Small code cleanup 2022-03-05 02:57:48 +01: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
kimocoder
3a6402e9e7 Fix for kernel v3.20 2021-12-12 22:40:54 +01:00
KonstantIMP
1dfc05ad53
Add linux 5.12.x support
Kernel with version >= 5.12.x doesnt support GRO_DROP so the driver must be updated
2021-05-08 22:18:14 +03:00
KonstantIMP
9b4c60a89c Add linux 5.12.x support
Kernel with version >= 5.12.x doesnt support GRO_DROP so the driver must be updated
2021-05-08 22:14:57 +03:00
Christian Bremvåg
3a64331a1c
Merge pull request #847 from CGarces/patch-4
Remove rtl8822bu device
2021-05-04 14:27:41 +02:00
Carlos
e7e83f2593 Fix GRO_DROP deprecation kernel 5.12 2021-04-03 14:47:02 +00:00
Carlos Garcés
43eb4c1bb6 Remove rtl8822bu device 2021-04-03 14:16:30 +00:00
Carlos Garces
6fad44212d Remove duplicate USB IDs and sort the elements. 2021-03-06 18:21:10 +01: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