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

1284 Commits

Author SHA1 Message Date
gluker
2780d7eee3 Build support for kernel 6.7 2024-01-23 04:18:10 +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
Christian Bremvåg
d07318ce9a
Merge pull request #1123 from bwh-mind/compat
Kernel compatibility fixes
2023-11-17 20:11:24 +01:00
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
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 Bremvåg
4a983e47da
Merge pull request #1119 from sarrchri/fix-build-6x
Fixed build on 6.x kernels.
2023-11-03 18:02:21 +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
Christian Bremvåg
04f600ee54
Merge pull request #1097 from seppzer0/v5.6.4.2
ioctl_cfg80211: add an extra definition for cfg80211_connect_bss() calls
2023-07-23 13:16:17 +02:00
seppzer0
eff5b5a0c4 Add an extra definition for cfg80211_connect_bss() usage 2023-07-19 00:12:47 +02:00
Christian Bremvåg
a842611d74
Merge pull request #1092 from paralin/fix-kernel-4.9
ioctl_cfg80211: fix build against kernels < 4.10.x
2023-07-08 16:31:34 +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
Christian Bremvåg
9dc4a4c9a2
Merge pull request #1091 from CGarces/patch-1
Fix compilation error on kernels < 5.15
2023-07-03 18:25:54 +02:00
Carlos Garcés
3bcbfe4031
Fix compilation error on kernels < 5.15 2023-07-03 18:19:34 +02:00
Christian Bremvåg
60222a568d
Merge pull request #1089 from CGarces/fix_1088
Use eth_hw_addr_set instead of dev_addr_set
2023-07-03 12:15:17 +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
6f7a4e568a Address warning in createbss_hdl() 2023-07-02 02:50:24 +02:00
kimocoder
ca797e114b Revert "Some cleanup of unused chips"
This reverts commit b3227c731e.
2023-06-06 17:50:45 +02:00
Christian Bremvåg
dc8dcb4fa2
Merge pull request #1072 from DrSchottky/v5.6.4.2
Parallelize builds on RPi Action
2023-05-31 16:01:58 +02:00
kimocoder
b3227c731e Some cleanup of unused chips 2023-05-26 06:36:51 +02:00
DrSchottky
5ae69b685b
Fixed job name in raspberry action 2023-05-02 13:43:54 +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
62821699bb fix SUBARCH on riscv64 2023-05-02 01:30:43 +02:00
kimocoder
8cb23d8f91 Remove dead code associated with CONFIG_PLATFORM_INTEL_BYT 2023-05-02 01:28:48 +02:00
kimocoder
0c3d4b326c Remove useless warning 2023-05-02 00:34:04 +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
kimocoder
9600ea1c85 Update dkms.conf 2023-05-01 22:05:54 +02:00
kimocoder
96b013c38a Possible fix for iwd crash 2023-05-01 22:05:27 +02:00
Christian Bremvåg
ccda185731
Merge pull request #1069 from gglluukk/v5.6.4.2
Pragma GCC < 11 warning fix for -Wstringop-overread
2023-04-23 18:20:44 +02:00
Christian Bremvåg
555241e247
Merge pull request #1068 from asukiaaa/patch-1
Add 056E:4010 for elecom WDC-433DU2H2-B
2023-04-23 18:20:11 +02:00
DrSchottky
1b0472d0a1
Parallelize RPi driver builds 2023-04-18 22:07:17 +02:00
gluker
4a0ceabe0b Pragma GCC < 11 warning fix for -Wstringop-overread 2023-04-17 20:14:54 +03:00
Asuki Kono
7d8f12970d
Add 056E:4010 for elecom device 2023-04-13 16:23:45 +09:00
kimocoder
fe71d83686 Update GH actions workflow 2023-04-02 13:01:14 +02:00
Christian Bremvåg
9d5c4aac62
Merge pull request #1065 from gglluukk/v5.6.4.2
Fix compiler and kernel warnings
2023-04-02 12:24:14 +02:00
kimocoder
a429fe18a1 Revert "Update GH actions workflow"
This reverts commit f6184e3cb0.
2023-04-02 12:23:31 +02:00
kimocoder
f6184e3cb0 Update GH actions workflow 2023-04-02 12:17:25 +02:00
Christian Bremvåg
91db7d2220
Merge pull request #1064 from DrSchottky/v5.6.4.2
Fix RPi build github action
2023-04-02 12:06:18 +02: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
DrSchottky
0417a2c5a5
Fix RPi build github action
Fixed and improved RPi build workflow to support latest driver and Pi kernel versions
2023-04-01 13:51:22 +02:00
Christian Bremvåg
eee82ac140
Merge pull request #1056 from 154pinkchairs/fix-bashism
fix(Makefile): remove `[[]]` bashism
2023-03-15 00:41:07 +01:00
Marcelina Hołub
285989435a fix(Makefile): remove [[]] bashism 2023-03-15 00:37:43 +01:00
Christian Bremvåg
20f240fc80
Merge pull request #1050 from 154pinkchairs/akms-hooks-compat
Ensure akms postinst hooks compatibility
2023-03-14 00:51:00 +01: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