feat: Add compatibility for modern Linux kernels#268
Open
Nic69Han wants to merge 2 commits intoRinCat:masterfrom
Open
feat: Add compatibility for modern Linux kernels#268Nic69Han wants to merge 2 commits intoRinCat:masterfrom
Nic69Han wants to merge 2 commits intoRinCat:masterfrom
Conversation
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.
Author
|
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.
Owner
|
Thank you! I will take a look in the next few days. I'm busy traveling at the moment. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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:
station_infostruct is now handled correctly for kernel 6.2 and newer.cfg80211_scan_infostruct is now initialized using designated initializers for better forward compatibility.wiphy_new_nminstead of the deprecatedwiphy_newon kernel 6.8 and newer.cfg80211_inform_bss_framehas been updated for kernel 6.1 and newer, which removed thegfp_targument.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.