File leap155.patch of Package rtl8192eu

diff -U 3 -H -d -r -N -- a/core/rtw_br_ext.c b/core/rtw_br_ext.c
--- a/core/rtw_br_ext.c	2023-03-17 20:50:54.000000000 +0100
+++ b/core/rtw_br_ext.c	2023-03-17 21:57:03.479312345 +0100
@@ -18,7 +18,7 @@
 	#include <linux/if_arp.h>
 	#include <net/ip.h>
 	#include <linux/version.h>	
-#if (LINUX_VERSION_CODE < KERNEL_VERSION(5, 15, 0))	
+#if (LINUX_VERSION_CODE < KERNEL_VERSION(5, 14, 0))	
 	#include <net/ipx.h>
 #endif	
 	#include <linux/atalk.h>
@@ -60,7 +60,7 @@
 
 #define NAT25_IPV4		01
 #define NAT25_IPV6		02
-#if (LINUX_VERSION_CODE < KERNEL_VERSION(5, 15, 0))
+#if (LINUX_VERSION_CODE < KERNEL_VERSION(5, 14, 0))
 #define NAT25_IPX		03
 #define NAT25_APPLE		04
 #endif
@@ -173,7 +173,7 @@
 	memcpy(networkAddr + 7, (unsigned char *)ipAddr, 4);
 }
 
-#if (LINUX_VERSION_CODE < KERNEL_VERSION(5, 15, 0))
+#if (LINUX_VERSION_CODE < KERNEL_VERSION(5, 14, 0))
 static __inline__ void __nat25_generate_ipx_network_addr_with_node(unsigned char *networkAddr,
 		unsigned int *ipxNetAddr, unsigned char *ipxNodeAddr)
 {
@@ -336,7 +336,7 @@
 		x = networkAddr[7] ^ networkAddr[8] ^ networkAddr[9] ^ networkAddr[10];
 
 		return x & (NAT25_HASH_SIZE - 1);
-#if (LINUX_VERSION_CODE < KERNEL_VERSION(5, 15, 0))		
+#if (LINUX_VERSION_CODE < KERNEL_VERSION(5, 14, 0))		
 	} else if (networkAddr[0] == NAT25_IPX) {
 		unsigned long x;
 
@@ -897,7 +897,7 @@
 		}
 	}
 
-#if (LINUX_VERSION_CODE < KERNEL_VERSION(5, 15, 0))
+#if (LINUX_VERSION_CODE < KERNEL_VERSION(5, 14, 0))
 	/*---------------------------------------------------*/
 	/*         Handle IPX and Apple Talk frame          */
 	/*---------------------------------------------------*/
diff -U 3 -H -d -r -N -- a/os_dep/linux/ioctl_linux.c b/os_dep/linux/ioctl_linux.c
--- a/os_dep/linux/ioctl_linux.c	2023-03-17 20:50:54.000000000 +0100
+++ b/os_dep/linux/ioctl_linux.c	2023-03-17 22:05:30.211996248 +0100
@@ -9850,7 +9850,7 @@
 		rtw_hal_read_chip_info(padapter);
 		/* set mac addr*/
 		rtw_macaddr_cfg(adapter_mac_addr(padapter), get_hal_mac_addr(padapter));
-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 15, 0))
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 14, 0))
 		eth_hw_addr_set(padapter->pnetdev, get_hal_mac_addr(padapter)); /* set mac addr to net_device */
 #else
 		_rtw_memcpy(padapter->pnetdev->dev_addr, get_hal_mac_addr(padapter), ETH_ALEN); /* set mac addr to net_device */
diff -U 3 -H -d -r -N -- a/os_dep/linux/mlme_linux.c b/os_dep/linux/mlme_linux.c
--- a/os_dep/linux/mlme_linux.c	2023-03-17 20:50:54.000000000 +0100
+++ b/os_dep/linux/mlme_linux.c	2023-03-17 22:06:34.966550183 +0100
@@ -412,7 +412,7 @@
 	mac[4] = 0x11;
 	mac[5] = 0x12;
 
-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 15, 0))
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 14, 0))
 	eth_hw_addr_set(pnetdev, mac);
 #else
 	_rtw_memcpy(pnetdev->dev_addr, mac, ETH_ALEN);
diff -U 3 -H -d -r -N -- a/os_dep/linux/os_intfs.c b/os_dep/linux/os_intfs.c
--- a/os_dep/linux/os_intfs.c	2023-03-17 20:50:54.000000000 +0100
+++ b/os_dep/linux/os_intfs.c	2023-03-17 22:08:59.311326749 +0100
@@ -1578,7 +1578,7 @@
 	}
 
 	_rtw_memcpy(adapter_mac_addr(padapter), sa->sa_data, ETH_ALEN); /* set mac addr to adapter */
-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 15, 0))
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 14, 0))
 	eth_hw_addr_set(pnetdev, sa->sa_data); /* set mac addr to net_device */
 #else
 	_rtw_memcpy(pnetdev->dev_addr, sa->sa_data, ETH_ALEN); /* set mac addr to net_device */
@@ -2128,7 +2128,7 @@
 	/* alloc netdev name */
 	rtw_init_netdev_name(ndev, name);
 
-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 15, 0))
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 14, 0))
 	eth_hw_addr_set(ndev, adapter_mac_addr(adapter));
 #else
 	_rtw_memcpy(ndev->dev_addr, adapter_mac_addr(adapter), ETH_ALEN);
@@ -3182,7 +3182,7 @@
 		rtw_mbid_camid_alloc(padapter, adapter_mac_addr(padapter));
 #endif
 		rtw_init_wifidirect_addrs(padapter, adapter_mac_addr(padapter), adapter_mac_addr(padapter));
-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 15, 0))
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 14, 0))
 		eth_hw_addr_set(pnetdev, adapter_mac_addr(padapter));
 #else
 		_rtw_memcpy(pnetdev->dev_addr, adapter_mac_addr(padapter), ETH_ALEN);
@@ -3935,7 +3935,7 @@
 		rtw_mbid_camid_alloc(padapter, adapter_mac_addr(padapter));
 #endif
 		rtw_init_wifidirect_addrs(padapter, adapter_mac_addr(padapter), adapter_mac_addr(padapter));
-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 15, 0))
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 14, 0))
 		eth_hw_addr_set(pnetdev, adapter_mac_addr(padapter));
 #else
 		_rtw_memcpy(pnetdev->dev_addr, adapter_mac_addr(padapter), ETH_ALEN);
diff -U 3 -H -d -r -N -- a/os_dep/osdep_service.c b/os_dep/osdep_service.c
--- a/os_dep/osdep_service.c	2023-03-17 20:50:54.000000000 +0100
+++ b/os_dep/osdep_service.c	2023-03-17 22:10:44.384980918 +0100
@@ -2578,7 +2578,7 @@
 
 	rtw_init_netdev_name(pnetdev, ifname);
 
-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 15, 0))
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 14, 0))
 	eth_hw_addr_set(pnetdev, adapter_mac_addr(padapter));
 #else
 	_rtw_memcpy(pnetdev->dev_addr, adapter_mac_addr(padapter), ETH_ALEN);
openSUSE Build Service is sponsored by