Fix cfg80211 Function Argument Errors and Include Missing Header Files for 5.15.x Linux Kernel Compatibility #1160
+29
−18
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.
Summary
This pull request addresses several compatibility issues and ensures smooth operation with the 5.15.x Linux kernel. The changes include:
Changes
Function Argument Fixes:
cfg80211_ch_switch_started_notify
:cfg80211_ch_switch_notify
:Header File Fixes:
Other Compatibility Fixes:
link_id
parameter for kernel versions 5.15.78 and above.cfg80211_rtw_stop_ap
andcfg80211_rtw_get_channel
functions to accommodate additional parameters in 5.15.78 and above.rtw_cfg80211_indicate_connect
and other related functions for proper field assignments in kernel 5.15.78 and above.Motivation
These changes ensure compatibility with the 5.15.x Linux kernel, preventing build errors related to function argument mismatches and header file issues. This is crucial for maintaining stability and functionality across different kernel versions.
Testing
Additional Notes