2
0
mirror of https://github.com/cilynx/rtl88x2bu synced 2025-08-22 02:01:55 +00:00

196 Commits

Author SHA1 Message Date
Max Görner
c3192d7153 Fix build for Linux v6.16 2025-08-03 20:22:49 +02:00
Max Görner
643a994646 Rename from_timer to timer_container_of
Linux commit 41cb08555c4164996d67c78b3bf1c658075b75f1 introduced that
renaming. Thus, we have to follow along.
2025-06-10 10:17:39 +02:00
Max Görner
d99f4dcf07 docs: Remove administrative note
For several years this note stood unchanged. It is hard to believe that
it still matters. With the inclusion of the driver to the Kernel it
became very unlikely that there will be a new version.
2025-06-09 09:15:03 +02:00
Max Görner
01e0f54ef6 Fix build for Linux v6.15
As usual, some code changes guarded by a preprocessor `if` were added.

Additionally, the Makefile had to be modified to replace all instances
of EXTRA_CFLAG with ccflags-y. Unlike usual, this change may affect the
building of the most recent version on an older kernel. However, initial
testing suggests that everything still works.

With both fixes the driver was able to run `apt full-upgrade` and to
push the result of the merge.
2025-06-09 09:13:06 +02:00
Max Görner
9b82b99ed4 docs: Mention stability issues in README 2025-06-09 09:05:49 +02:00
Max Görner
11b78f6d06 fix: Correctly report Kernels with dashes in their names 2025-06-01 10:24:01 +02:00
Max Görner
18009588e2 fix: Use ccflags-y instead of EXTRA_CFLAGS
Linux Kernel commit e966ad0edd0056c7491b8f23992c11734ab61ddf removed
support for EXTRA_*FLAGS, including EXTRA_CFLAGS. It advertises to use
ccflags-y. THis commit blindly replaced all usages of EXTRA_CFLAGS with
ccflags-y.

With these changes, test builds were successful for Kernel v6.11 to
v6.14.
2025-05-12 22:14:53 +02:00
Max Görner
982c7062f0 fix: Switch to use timer_delete_sync
In Linux Kernel commit 8fa7292fee5c5240402371ea89ab285ec856c916 Thomas
Gleixner replaces all usages of del_timer_sync to be timer_delete_sync.
This has to be followed here.
2025-05-12 22:14:53 +02:00
Max Görner
2e7d1f52d9 feat: Extend deploy.sh script
The deploy.sh script now allows to install the driver for either

    * all available kernels,
    * a specific kernel, or
    * the currently active kernel

In order to do so it got a small CLI that even prints a help text on
`--help`.
2025-05-12 22:13:46 +02:00
Max Görner
df4295b5a3 docs: Explain new options of ./deploy.sh in README 2025-05-12 22:13:29 +02:00
Max Görner
335a0e2e2b fix: Switch branches, as -n means variable has value 2025-05-09 11:31:56 +02:00
Max Görner
573cd1cb7d chore: Drop leftover comment 2025-05-09 11:31:42 +02:00
Max Görner
1252baad3f docs: Add examples section to --help 2025-05-09 11:31:24 +02:00
Max Görner
6d79a75177 feat: Do not remove driver for all kernels 2025-05-09 11:30:11 +02:00
Max Görner
cbd155ead2 feat: Add verbosity flag to CLI 2025-05-09 11:29:30 +02:00
Max Görner
8f1741badf feat: Add simple command line parsing 2025-05-09 09:48:03 +02:00
Max Görner
384cc710e6 feat: Find available Kernels with helper function 2025-05-09 09:11:54 +02:00
Max Görner
2ed2956397 chore: Move get_version to better place 2025-05-09 09:10:26 +02:00
Max Görner
c46ecd4b17 chore: Move remove_driver to better place 2025-05-09 09:09:26 +02:00
Max Görner
841e1de2e9 feat: Extend deploy script to install for all kernels
If, for whatever reason, this Kernel module is installed freshly, the
existing deploy script would not install the module for all available
Kernels. If a user would boot into another Kernel (e.g. 6.12.21-amd64
instead of 6.12.22-amd64) Wi-Fi would not be available. This can be
confusing and annoying.

The changes of this commit would prune the module from DKMS and then
install it for all available Kernels. This is much more convenient.
2025-05-07 19:47:24 +02:00
Max Görner
00cd158900 Add additional argument to cfg80211_rtw_get_txpower
In Linux Kernel commit 7a53af85d3bbdbe06cd47b81a6d99a04dc0a3963 a new
argument is introduced to cfg80211_rtw_get_txpower. It seems to be only
introduced but unused. Therefore, this argument is added here too.
2025-01-26 15:33:20 +01:00
Max Görner
efe396cb50 docs: Update compatibility section 2025-01-26 14:57:44 +01:00
Max Görner
ac3ec87cee Add additional argument to cfg80211_rtw_set_monitor_channel
In Linux Kernel commit 9c4f83092775 a new argument is introduced to
cfg80211_rtw_set_monitor_channel. It seems to be only introduced but
unused. Therefore, this argument is added here too.
2025-01-26 14:56:32 +01:00
Max Görner
45ca59c3dd docs: Update compatibility section 2024-12-16 14:52:09 +01:00
Max Görner
6fc1fb1e34 docs: Rework section regarding confirmed compatibility 2024-10-09 15:06:34 +02:00
Max Görner
a00021500f Add v6.10.3 to compatibility list 2024-08-13 08:21:14 +02:00
cilynx
620b1a12c8
Pending repo deprecation 2024-05-22 15:00:43 -06:00
Max Görner
287e766d19 Fix build for Linux 6.9 2024-05-21 21:40:22 +02:00
Max Görner
ad9f6a8a7c docs: Add note for compatibility with Linux v6.9 2024-05-21 21:39:37 +02:00
Max Görner
35ac42fc56 Remove puncturing bitmap from function calls
In Linux Kernel commit b82730bf57b54803ab94abbfd8c4422a7081886d the last
parameter was removed from two function signatures. Hence, it must not
be passed by the driver too. Fortunately these were plain `0` anyways.
2024-05-16 07:41:20 +02:00
Max Görner
4213213cc5 Fix warnings regarding GCC 13
With GCC 13 two new warnings were produced. The one could be fixed, the
other had to be ignored.
2024-05-16 07:40:03 +02:00
Max Görner
98275008fa Suppress stringop-overread
GCC 13 complains about this. The committer does not have got enough
expertise to know how to fix that. Even the in the Linux kernel itself
there are no fixes that fit our case.

Therefore, the error gets suppressed.
2024-05-15 10:39:26 +02:00
Max Görner
1bf156aaf1 fix: Remove useless if-guard
GCC 13 complained about the usage of an enum in a boolean context. On
closer investigation it turned out that the value wasn't dynamic and the
if-guard always evaluated to true. By removing the guard the compile
blocker disappears.
2024-05-14 09:53:16 +02:00
Max Görner
49bec19134 Rewrite section regarding Unknown symbol errors
Two aspects were improved:

* The less drastic option is mentioned first.
* The option reported to be very dangerous got a bold warning.
2024-04-28 10:58:28 +02:00
Max Görner
8c9afc1201 Fix build for Linux 6.8 2024-03-14 20:35:29 +01:00
Max Görner
d4955139ac Add v6.8.0 to compatibility list 2024-03-14 20:34:31 +01:00
Max Görner
93160f0023 Add v6.7.2 to compatibility list 2024-02-13 08:11:46 +01:00
Max Görner
806d7ced37 Following unnesting of attribute
In Linux Kernel commit 49a78b05d5ca1e23fd737747a8757b8bdc319b30 the
attribute `drvwrap.driver.shutdown` was unnested by one level. We follow
that.
2024-01-19 10:28:15 +01:00
Max Görner
35a8a4842d Disable new warnings
With commit 0fcb70851fbfea1776ae62f67c503fef8f0292b9 in Linux Kernel
two new sanity checks were enabled. These cause build failures, because
somehow there are functions in *.c files that are not declared in *.h
files. (At least, that is my understanding.)

Unfortunately, it is very time consuming task to manually delete all
these functions. Also, it is not yet clear whether this indeed will
resolve the issue or just fail at some point.

In order to be able to follow the Kernel's development, these warnings
are just disabled. This allows to work against the most recent commits
when trying to remove problematic functions.
2024-01-15 10:26:41 +01:00
Max Görner
476ef38727 Fix build for Linux 6.7 2024-01-08 14:50:28 +01:00
Max Görner
672c202c46 Add v6.5.5 and v6.6.1 to compatibility list 2023-11-22 16:53:24 +01:00
Max Görner
ae880439ef Change order of #if and #else
With this change the same condition can be reused, making it much easier
to understand how the two locations work together.
2023-11-10 09:59:21 +01:00
Max Görner
c0ca835413 Follow renaming of _settings to _update
In Linux Kernel commit bb55441c57ccc5cc2eab44e1a97698b9d708871d a struct
is split. In our scenario, it is sufficient to follow the renames that
can be found as adaptions in the named commit as well.
2023-11-03 00:24:19 +01:00
Max Görner
7c7606c9ed Adapt type of change_beacon
Commit 66f85d57b7109baf8a7d5ee04049ac9412611d35 of the Linux Kernel
changed the type of one argument from cfg80211_beacon_data to
cfg80211_ap_settings. Inside the changed functions the beacon is
assigned to a local variable, so that subsequent usages do not have to
be adapted.

This commit follows the example. The type of the function argument is
changed and the beacon extracted.
2023-11-02 23:23:40 +01:00
Max Görner
e1e98a4bb1 Add v6.5.2 to compatibility list 2023-09-10 10:54:25 +02:00
Max Görner
7b5e89c2af Merge minor documentation updates 2023-09-07 11:37:50 +02:00
Max Görner
a9013104ba Use tee to redirect content to root file
Previously, a plain `>` redirect was used. However, that does not work
if the user cannot write to the destination. Since a redirect is a
separate process, prepending `sudo` does not help neither, as it would
only affect `echo`.

The appropriate solution under GNU/Linux is to use `tee`. This is what
is done here.
2023-09-07 11:31:27 +02:00
Max Görner
b2f6d80e93 Improve wording minorly 2023-09-07 11:30:38 +02:00
Max Görner
6789143083 Update notion of confirmed compatibility
* fixed spelling of Ubuntu version
* updated Kernel version of 6.4 series
2023-07-13 20:49:36 +02:00
Max Görner
0be6fb4c41 Add Linux 6.4.0 to confirmed builds 2023-06-28 08:45:43 +02:00