From af5fba64a84fb2b09bcf59253861c9ab76ca6e91 Mon Sep 17 00:00:00 2001 From: "gmouren404@163.com" <773888920@qq.com> Date: Wed, 24 Sep 2025 11:39:27 +0800 Subject: [PATCH] Update cfg80211_ch_switch_notify parameters for kernel version compatibility --- drivers/aic8800/aic8800_fdrv/rwnx_main.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/aic8800/aic8800_fdrv/rwnx_main.c b/drivers/aic8800/aic8800_fdrv/rwnx_main.c index 8c5eebc..2fb6463 100644 --- a/drivers/aic8800/aic8800_fdrv/rwnx_main.c +++ b/drivers/aic8800/aic8800_fdrv/rwnx_main.c @@ -1072,8 +1072,8 @@ static void rwnx_csa_finish(struct work_struct *ws) rwnx_txq_vif_stop(vif, RWNX_TXQ_STOP_CHAN, rwnx_hw); spin_unlock_bh(&rwnx_hw->cb_lock); #if (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 0, 0)) - // For kernels version 6.0.0 and above (with 3 parameters) - cfg80211_ch_switch_notify(vif->ndev, &csa->chandef, 0); + // For kernels version 6.0.0 and above (with 4 parameters) + cfg80211_ch_switch_notify(vif->ndev, &csa->chandef, 0, 0); #elif (LINUX_VERSION_CODE >= HIGH_KERNEL_VERSION3) // Older kernel with 4 parameters (if such version exists) cfg80211_ch_switch_notify(vif->ndev, &csa->chandef, 0, 0); @@ -4701,8 +4701,8 @@ int rwnx_cfg80211_channel_switch(struct wiphy *wiphy, } else { INIT_WORK(&csa->work, rwnx_csa_finish); #if (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 0, 0)) - // For kernels version 6.0.0 and above (with 3 parameters) - cfg80211_ch_switch_notify(vif->ndev, &csa->chandef, 0); + // For kernels version 6.0.0 and above (with 4 parameters) + cfg80211_ch_switch_notify(vif->ndev, &csa->chandef, 0, 0); #elif (LINUX_VERSION_CODE >= HIGH_KERNEL_VERSION3) // Older kernel with 4 parameters (if such version exists) cfg80211_ch_switch_notify(vif->ndev, &csa->chandef, 0, 0);