Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix build for kernel >= 6.11 #366

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
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: 6 additions & 2 deletions mac80211.c
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,11 @@ static int rtw89_ops_start(struct ieee80211_hw *hw)
return ret;
}

#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 11, 0)
static void rtw89_ops_stop(struct ieee80211_hw *hw, bool suspend)
#else
static void rtw89_ops_stop(struct ieee80211_hw *hw)
#endif
{
struct rtw89_dev *rtwdev = hw->priv;

Expand Down Expand Up @@ -1184,7 +1188,7 @@ const struct ieee80211_ops rtw89_ops = {
.bss_info_changed = rtw89_ops_bss_info_changed,
.start_ap = rtw89_ops_start_ap,
.stop_ap = rtw89_ops_stop_ap,
#endif
#endif
.set_tim = rtw89_ops_set_tim,
.conf_tx = rtw89_ops_conf_tx,
.sta_state = rtw89_ops_sta_state,
Expand All @@ -1207,7 +1211,7 @@ const struct ieee80211_ops rtw89_ops = {
#if (RHEL_RELEASE_CODE == 0) || (RHEL_RELEASE_CODE >= RHEL_RELEASE_VERSION(10, 0))
.assign_vif_chanctx = rtw89_ops_assign_vif_chanctx,
.unassign_vif_chanctx = rtw89_ops_unassign_vif_chanctx,
#endif
#endif
.remain_on_channel = rtw89_ops_remain_on_channel,
.cancel_remain_on_channel = rtw89_ops_cancel_remain_on_channel,
#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 11, 0)
Expand Down