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);