Skip to content

feat: Add compatibility for modern Linux kernels#268

Open
Nic69Han wants to merge 2 commits intoRinCat:masterfrom
Nic69Han:kernel-compatibility
Open

feat: Add compatibility for modern Linux kernels#268
Nic69Han wants to merge 2 commits intoRinCat:masterfrom
Nic69Han:kernel-compatibility

Conversation

@Nic69Han
Copy link
Copy Markdown

@Nic69Han Nic69Han commented Aug 9, 2025

This change introduces a series of patches to make the RTL88x2BU driver compatible with modern Linux kernels (up to 6.8). The following changes were made:

  • The station_info struct is now handled correctly for kernel 6.2 and newer.
  • The cfg80211_scan_info struct is now initialized using designated initializers for better forward compatibility.
  • The driver now uses wiphy_new_nm instead of the deprecated wiphy_new on kernel 6.8 and newer.
  • The call to cfg80211_inform_bss_frame has been updated for kernel 6.1 and newer, which removed the gfp_t argument.

These changes address the most common breaking changes in the kernel's wireless subsystem and should allow the driver to compile and run on a wider range of Linux distributions.

This change introduces a series of patches to make the RTL88x2BU driver compatible with modern Linux kernels (up to 6.8). The following changes were made:

- The `station_info` struct is now handled correctly for kernel 6.2 and newer.
- The `cfg80211_scan_info` struct is now initialized using designated initializers for better forward compatibility.
- The driver now uses `wiphy_new_nm` instead of the deprecated `wiphy_new` on kernel 6.8 and newer.
- The call to `cfg80211_inform_bss_frame` has been updated for kernel 6.1 and newer, which removed the `gfp_t` argument.

These changes address the most common breaking changes in the kernel's wireless subsystem and should allow the driver to compile and run on a wider range of Linux distributions.
@Nic69Han
Copy link
Copy Markdown
Author

Nic69Han commented Aug 9, 2025

Need to be tested

This change introduces a series of patches to make the RTL88x2BU driver compatible with modern Linux kernels (up to 6.8). The following changes were made:

- The `station_info` struct is now handled correctly for kernel 6.2 and newer.
- The `cfg80211_scan_info` struct is now initialized using designated initializers for better forward compatibility.
- The driver now uses `wiphy_new_nm` instead of the deprecated `wiphy_new` on kernel 6.8 and newer.
- The call to `cfg80211_inform_bss_frame` has been updated for kernel 6.1 and newer, which removed the `gfp_t` argument.

These changes address the most common breaking changes in the kernel's wireless subsystem and should allow the driver to compile and run on a wider range of Linux distributions.

The `README.md` file has also been updated to reflect the new kernel compatibility.
@RinCat
Copy link
Copy Markdown
Owner

RinCat commented Aug 13, 2025

Thank you! I will take a look in the next few days. I'm busy traveling at the moment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants