File leap153.patch of Package rtw89

diff -U 3 -H -d -r -N -- a/cam.c b/cam.c
--- a/cam.c	2021-07-10 14:30:26.000000000 +0200
+++ b/cam.c	2021-07-19 10:08:44.165850399 +0200
@@ -577,11 +577,11 @@
 int rtw89_cam_fill_bssid_cam_info(struct rtw89_dev *rtwdev,
 				  struct rtw89_vif *rtwvif, u8 *cmd)
 {
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 7, 0)
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 3, 0)
 	struct ieee80211_vif *vif = rtwvif_to_vif(rtwvif);
 #endif
 	struct rtw89_bssid_cam_entry *bssid_cam = &rtwvif->bssid_cam;
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 7, 0)
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 3, 0)
 	u8 bss_color = vif->bss_conf.he_bss_color.color;
 #else
 	u8 bss_color = 0;
diff -U 3 -H -d -r -N -- a/core.h b/core.h
--- a/core.h	2021-07-19 10:20:11.750582268 +0200
+++ b/core.h	2021-07-19 10:21:05.193395578 +0200
@@ -3336,7 +3336,7 @@
 int rtw89_core_start(struct rtw89_dev *rtwdev);
 void rtw89_core_stop(struct rtw89_dev *rtwdev);
 
-#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 8, 0)
+#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 3, 0)
 /**
  * read_poll_timeout_atomic - Periodically poll an address until a condition is
  * 				met or a timeout occurs
@@ -3391,7 +3391,7 @@
 }
 
 #endif
-#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 7, 0)
+#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 3, 0)
 /**
  * read_poll_timeout_atomic - Periodically poll an address until a condition is
  * 				met or a timeout occurs
diff -U 3 -H -d -r -N -- a/mac80211.c b/mac80211.c
--- a/mac80211.c	2021-07-10 14:30:26.000000000 +0200
+++ b/mac80211.c	2021-07-19 10:06:19.453066084 +0200
@@ -465,7 +465,7 @@
 
 	switch (params->action) {
 	case IEEE80211_AMPDU_TX_START:
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 5, 0)
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 3, 0)
 		return IEEE80211_AMPDU_TX_START_IMMEDIATE;
 #else
 		ieee80211_start_tx_ba_cb_irqsafe(vif, sta->addr, tid);
diff -U 3 -H -d -r -N -- a/mac.c b/mac.c
--- a/mac.c	2021-07-10 14:30:26.000000000 +0200
+++ b/mac.c	2021-07-19 10:13:00.468158783 +0200
@@ -3127,7 +3127,7 @@
 static void rtw89_mac_port_cfg_bss_color(struct rtw89_dev *rtwdev,
 					 struct rtw89_vif *rtwvif)
 {
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 7, 0)
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 3, 0)
 	struct ieee80211_vif *vif = rtwvif_to_vif(rtwvif);
 #endif
 	static const u32 masks[RTW89_PORT_NUM] = {
@@ -3140,7 +3140,7 @@
 	u32 reg;
 	u8 bss_color;
 
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 7, 0)
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 3, 0)
 	bss_color = vif->bss_conf.he_bss_color.color;
 #else
 	bss_color = 0;
diff -U 3 -H -d -r -N -- a/phy.c b/phy.c
--- a/phy.c	2021-07-10 14:30:26.000000000 +0200
+++ b/phy.c	2021-07-19 10:12:23.372982471 +0200
@@ -2743,7 +2743,7 @@
 	if (!vif->bss_conf.he_support || !vif->bss_conf.assoc)
 		return;
 
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 7, 0)
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 3, 0)
 	bss_color = vif->bss_conf.he_bss_color.color;
 #else
 	bss_color = 0;
openSUSE Build Service is sponsored by