File kernel613.patch of Package rtw89
diff -Naur rtw89/mac80211.c rtw89n/mac80211.c
--- rtw89/mac80211.c 2024-05-10 19:27:01.538191592 +0200
+++ rtw89n/mac80211.c 2025-02-20 18:33:11.054988103 +0100
@@ -66,7 +66,11 @@
return ret;
}
+#if LINUX_VERSION_CODE < KERNEL_VERSION(6, 11, 0)
static void rtw89_ops_stop(struct ieee80211_hw *hw)
+#else
+static void rtw89_ops_stop(struct ieee80211_hw *hw, bool suspend)
+#endif
{
struct rtw89_dev *rtwdev = hw->priv;
@@ -938,8 +942,16 @@
static void rtw89_ops_sta_rc_update(struct ieee80211_hw *hw,
struct ieee80211_vif *vif,
+#if LINUX_VERSION_CODE < KERNEL_VERSION(6, 13, 0)
struct ieee80211_sta *sta, u32 changed)
+#else
+ struct ieee80211_link_sta *link_sta,
+ u32 changed)
+#endif
{
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 13, 0)
+ struct ieee80211_sta *sta = link_sta->sta;
+#endif
struct rtw89_dev *rtwdev = hw->priv;
rtw89_phy_ra_updata_sta(rtwdev, sta, changed);
@@ -1213,7 +1225,11 @@
#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 11, 0)
.set_sar_specs = rtw89_ops_set_sar_specs,
#endif
+#if LINUX_VERSION_CODE < KERNEL_VERSION(6, 13, 0)
.sta_rc_update = rtw89_ops_sta_rc_update,
+#else
+ .link_sta_rc_update = rtw89_ops_sta_rc_update,
+#endif
#if LINUX_VERSION_CODE > KERNEL_VERSION(5, 6, 0)
.set_tid_config = rtw89_ops_set_tid_config,
#endif