Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions drivers/aic8800/aic8800_fdrv/rwnx_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down