Add Linux 6.0–6.17 kernel API compatibility#18
Open
indricilia wants to merge 1 commit into
Open
Conversation
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.
Summary
The driver fails to build on Linux kernels ≥ 6.0 due to several cfg80211/timer/module-API
changes. This PR adds version-guarded compatibility shims so the driver builds and loads
cleanly on kernel 6.17, while still building on older kernels (no behavior change for
existing supported kernels).
What changed
All adaptations are wrapped in
LINUX_VERSION_CODEguards so older kernels areunaffected.
aic8800_fdrv/rwnx_compat.hdel_timer{,_sync}→timer_delete{,_sync},from_timer→timer_container_ofaic8800_fdrv/rwnx_main.cMODULE_IMPORT_NSaic_load_fw/aic_bluetooth_main.cMODULE_IMPORT_NSaic8800_fdrv/rwnx_main.cset_monitor_channelstruct net_device *devparameteraic8800_fdrv/rwnx_main.cset_wiphy_paramsint radio_idxparameteraic8800_fdrv/rwnx_main.cset_tx_powerint radio_idxparameteraic8800_fdrv/rwnx_main.cstart_radar_detectionint link_idparameteraic8800_fdrv/rwnx_rx.ccfg80211_rx_spurious_frame,cfg80211_rx_unexpected_4addr_framelink_id = -1aic8800_fdrv/rwnx_radar.ccfg80211_cac_eventlink_id = 0Test setup
6.17.1-300.fc43.x86_64, gcc 15.2.1.a69c:5721CD-ROM mode →a69c:8d80firmware-loadmode →
a69c:8d83Wi-Fi mode).aic_load_fw.koandaic8800_fdrv.kobuild with no errors, load viamodprobe, and the device transitions through all three USB IDs to expose awlaninterface.Test plan for reviewers
wlaninterface appears.