Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package rtl88x2bu for openSUSE:Factory 
checked in at 2026-11-13 18:33:37
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rtl88x2bu (Old)
 and      /work/SRC/openSUSE:Factory/.rtl88x2bu.new.1251 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "rtl88x2bu"

Fri Nov 13 18:33:37 2026 rev:15 rq:1397164 version:5.8.7.1+git20260818.04ed700

Changes:
--------
--- /work/SRC/openSUSE:Factory/rtl88x2bu/rtl88x2bu.changes      2026-09-10 
11:51:46.245545451 +0200
+++ /work/SRC/openSUSE:Factory/.rtl88x2bu.new.1251/rtl88x2bu.changes    
2026-11-13 18:37:50.010655332 +0100
@@ -1,0 +2,15 @@
+Thu Nov 12 17:18:16 UTC 2026 - Eyad Issa <[email protected]>
+
+- Add rtl88x2bu-leap-16.1-cfg80211.patch to fix cfg80211 callback
+  signatures for Leap 16.1's kernel.
+- Add rtl88x2bu-rename-get-ra.patch to fix a PowerPC kernel helper
+  name collision.
+- Provide a make_build fallback for older RPM versions.
+- Keep the kernel module directory fallback available on older RPMs.
+
+-------------------------------------------------------------------
+Thu Nov 12 11:37:27 UTC 2026 - Bernhard AI Wiedemann <[email protected]>
+
+- Add rtl88x2bu-linux-7.3.patch to fix build with kernel 7.3
+
+-------------------------------------------------------------------

New:
----
  rtl88x2bu-leap-16.1-cfg80211.patch
  rtl88x2bu-linux-7.3.patch
  rtl88x2bu-rename-get-ra.patch

----------(New B)----------
  New:
- Add rtl88x2bu-leap-16.1-cfg80211.patch to fix cfg80211 callback
  signatures for Leap 16.1's kernel.
  New:
- Add rtl88x2bu-linux-7.3.patch to fix build with kernel 7.3
  New:  signatures for Leap 16.1's kernel.
- Add rtl88x2bu-rename-get-ra.patch to fix a PowerPC kernel helper
  name collision.
----------(New E)----------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ rtl88x2bu.spec ++++++
--- /var/tmp/diff_new_pack.lgpLD3/_old  2026-11-13 18:37:51.128702635 +0100
+++ /var/tmp/diff_new_pack.lgpLD3/_new  2026-11-13 18:37:51.129702678 +0100
@@ -30,12 +30,19 @@
 Patch0:         rtl88x2bu_nodate_time.patch
 # PATCH-FIX-OPENSUSE fix-backported-update_mgmt_frame_registrations.patch
 Patch1:         fix-backported-update_mgmt_frame_registrations.patch
+# PATCH-FIX-UPSTREAM rtl88x2bu-linux-7.3.patch -- cfg80211 passes the cookie 
by value since 7.3 -- https://github.com/cilynx/rtl88x2bu/pull/292
+Patch2:         rtl88x2bu-linux-7.3.patch
+# PATCH-FIX-OPENSUSE Leap 16.1 backports newer cfg80211 callback arguments
+Patch3:         rtl88x2bu-leap-16.1-cfg80211.patch
+# PATCH-FIX-OPENSUSE Avoid a collision with the PowerPC kernel helper
+Patch4:         rtl88x2bu-rename-get-ra.patch
 BuildRequires:  %{kernel_module_package_buildreqs}
 BuildRequires:  bc
 BuildRequires:  kernel-macros
 BuildRequires:  module-init-tools
 
-%{!?kernel_module_directory:%define kernel_module_directory /lib/modules}
+%{!?kernel_module_directory:%global kernel_module_directory /lib/modules}
+%{!?make_build:%global make_build make %{?_smp_mflags}}
 
 %description
 Kernel driver for Realtek 88x2bu wifi cards
@@ -63,6 +70,11 @@
 %if 0%{?sle_version} == 150300
 %patch -P 1 -p0
 %endif
+%patch -P 2 -p0
+%if 0%{?suse_version} == 1610
+%patch -P 3 -p0
+%endif
+%patch -P 4 -p0
 
 set -- *
 mkdir source

++++++ rtl88x2bu-leap-16.1-cfg80211.patch ++++++
Subject: Fix cfg80211 callbacks for the Leap 16.1 kernel

Leap 16.1 backports the radio index, link ID and monitor netdevice
arguments to its 6.12 kernel. Apply this patch only to that target.

--- os_dep/linux/ioctl_cfg80211.c
+++ os_dep/linux/ioctl_cfg80211.c
@@ -3364,7 +3364,7 @@
        return ret;
 }
 
-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 17, 0))
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 12, 0))
 static int cfg80211_rtw_set_wiphy_params(struct wiphy *wiphy, int radio_idx, 
u32 changed)
 #else
 static int cfg80211_rtw_set_wiphy_params(struct wiphy *wiphy, u32 changed)
@@ -4416,7 +4416,7 @@
 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 8, 0))
        struct wireless_dev *wdev,
 #endif
-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 17, 0))
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 12, 0))
     int radio_idx,
 #endif
 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 36)) || 
defined(COMPAT_KERNEL_RELEASE)
@@ -4481,10 +4481,10 @@
 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 8, 0))
        struct wireless_dev *wdev,
 #endif
-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 17, 0))
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 12, 0))
     int radio_idx,
 #endif
-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 14, 0))
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 12, 0))
     unsigned int link_id,
 #endif
        int *dbm)
@@ -6385,7 +6385,7 @@
 #endif /*#if (LINUX_VERSION_CODE < KERNEL_VERSION(3, 6, 0))*/
 
 static int cfg80211_rtw_set_monitor_channel(struct wiphy *wiphy
-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 13, 0))
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 12, 0))
        , struct net_device *dev
        , struct cfg80211_chan_def *chandef
 #elif (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 8, 0))

++++++ rtl88x2bu-linux-7.3.patch ++++++
https://github.com/cilynx/rtl88x2bu/pull/292

Since Linux v7.3, cfg80211 pre-assigns the cookie for remain_on_channel and 
mgmt_tx and passes it to the driver by value instead of expecting the driver to 
fill in a u64 *cookie. See upstream commit 914781c72813 ("wifi: cfg80211: 
convert cookie output to input parameter").

Accept the cookie by value on v7.3+ and use it as provided instead of 
generating our own. The rest of the code keeps working on a pointer to it, so 
it is still stored in remain_on_ch_cookie and reported via 
cfg80211_ready_on_channel() and the mgmt tx status.

Builds for older kernels are unchanged. Build-tested on openSUSE Tumbleweed 
with kernel 7.3.3 and openSUSE Slowroll with kernel 6.18.62.
Note: Not runtime tested.

--- os_dep/linux/ioctl_cfg80211.c       2026-08-18 08:59:03.000000000 +0200
+++ os_dep/linux/ioctl_cfg80211.c       2026-11-12 12:37:04.406142589 +0100
@@ -7077,12 +7077,20 @@
 #if (LINUX_VERSION_CODE < KERNEL_VERSION(3, 8, 0))
        enum nl80211_channel_type channel_type,
 #endif
-       unsigned int duration, u64 *cookie
+       unsigned int duration,
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(7, 3, 0))
+       u64 cookie_val
+#else
+       u64 *cookie
+#endif
 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(7, 2, 0))
     ,const u8 *rx_addr
 #endif
 )
 {
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(7, 3, 0))
+       u64 *cookie = &cookie_val;
+#endif
        s32 err = 0;
        u8 remain_ch = (u8) 
ieee80211_frequency_to_channel(channel->center_freq);
        _adapter *padapter = NULL;
@@ -7123,7 +7131,9 @@
        is_p2p_find = (duration < (pwdinfo->ext_listen_interval)) ? _TRUE : 
_FALSE;
 #endif
 
+#if (LINUX_VERSION_CODE < KERNEL_VERSION(7, 3, 0))
        *cookie = ATOMIC_INC_RETURN(&pcfg80211_wdinfo->ro_ch_cookie_gen);
+#endif
 
        RTW_INFO(FUNC_ADPT_FMT"%s ch:%u duration:%d, cookie:0x%llx\n"
                , FUNC_ADPT_ARG(padapter), wdev == wiphy_to_pd_wdev(wiphy) ? " 
PD" : ""
@@ -7681,8 +7691,15 @@
 #else
        struct cfg80211_mgmt_tx_params *params,
 #endif
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(7, 3, 0))
+       u64 cookie_val)
+#else
        u64 *cookie)
+#endif
 {
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(7, 3, 0))
+       u64 *cookie = &cookie_val;
+#endif
 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 14, 0)) || 
defined(COMPAT_KERNEL_RELEASE)
        struct ieee80211_channel *chan = params->chan;
        const u8 *buf = params->buf;
@@ -7757,8 +7774,10 @@
        dvobj = adapter_to_dvobj(padapter);
        pwdev_priv = adapter_wdev_data(padapter);
 
+#if (LINUX_VERSION_CODE < KERNEL_VERSION(7, 3, 0))
        /* cookie generation */
        *cookie = pwdev_priv->mgmt_tx_cookie++;
+#endif
 
 #ifdef CONFIG_DEBUG_CFG80211
        RTW_INFO(FUNC_ADPT_FMT"%s len=%zu, ch=%d"

++++++ rtl88x2bu-rename-get-ra.patch ++++++
Subject: Avoid PowerPC kernel get_ra name collision

Rename the driver helper that extracts the receiver address, including
all its callers, to avoid the PowerPC instruction decoder helper.

--- include/wifi.h
+++ include/wifi.h
@@ -456,7 +456,7 @@
                return _FALSE;
 }
 
-__inline static unsigned char *get_ra(unsigned char *pframe)
+__inline static unsigned char *rtw_get_ra(unsigned char *pframe)
 {
        unsigned char   *ra;
        ra = GetAddr1Ptr(pframe);
--- core/rtw_recv.c
+++ core/rtw_recv.c
@@ -4680,7 +4680,7 @@
        wlanhdr = get_recvframe_data(precvframe);
 
        ta = get_ta(wlanhdr);
-       ra = get_ra(wlanhdr);
+       ra = rtw_get_ra(wlanhdr);
        is_ra_bmc = IS_MCAST(ra);
 
        if (_rtw_memcmp(adapter_mac_addr(padapter), ta, ETH_ALEN) == _TRUE) {
@@ -4820,7 +4820,7 @@
 {
        s32 ret = _SUCCESS;
        u8 *pbuf = precvframe->u.hdr.rx_data;
-       u8 *pda = get_ra(pbuf);
+       u8 *pda = rtw_get_ra(pbuf);
        u8 ra_is_bmc = IS_MCAST(pda);
        _adapter *primary_padapter = precvframe->u.hdr.adapter;
 #ifdef CONFIG_CONCURRENT_MODE
--- core/rtw_odm.c
+++ core/rtw_odm.c
@@ -253,7 +253,7 @@
                                RTW_PRINT("phys_t%u ta="MAC_FMT" %s, 
%s(band:%u, ch:%u, l_rxsc:%u)\n"
                                        , *phys & 0xf
                                        , MAC_ARG(get_ta(wlanhdr))
-                                       , 
is_broadcast_mac_addr(get_ra(wlanhdr)) ? "BC" : 
is_multicast_mac_addr(get_ra(wlanhdr)) ? "MC" : "UC"
+                                       , 
is_broadcast_mac_addr(rtw_get_ra(wlanhdr)) ? "BC" : 
is_multicast_mac_addr(rtw_get_ra(wlanhdr)) ? "MC" : "UC"
                                        , HDATA_RATE(attrib->data_rate)
                                        , phys_t0->band, phys_t0->channel, 
phys_t0->rxsc
                                );
@@ -363,7 +363,7 @@
                                RTW_PRINT("phys_t%u ta="MAC_FMT" %s, 
%s(band:%u, ch:%u, rf_mode:%u, l_rxsc:%u, ht_rxsc:%u) => %u,%u\n"
                                        , *phys & 0xf
                                        , MAC_ARG(get_ta(wlanhdr))
-                                       , 
is_broadcast_mac_addr(get_ra(wlanhdr)) ? "BC" : 
is_multicast_mac_addr(get_ra(wlanhdr)) ? "MC" : "UC"
+                                       , 
is_broadcast_mac_addr(rtw_get_ra(wlanhdr)) ? "BC" : 
is_multicast_mac_addr(rtw_get_ra(wlanhdr)) ? "MC" : "UC"
                                        , HDATA_RATE(attrib->data_rate)
                                        , phys_t1->band, phys_t1->channel, 
phys_t1->rf_mode, phys_t1->l_rxsc, phys_t1->ht_rxsc
                                        , pkt_cch, pkt_bw
@@ -381,7 +381,7 @@
                                RTW_PRINT("phys_t%u ta="MAC_FMT" %s, 
%s(band:%u, ch:%u, l_rxsc:%u, ht_rxsc:%u)\n"
                                        , *phys & 0xf
                                        , MAC_ARG(get_ta(wlanhdr))
-                                       , 
is_broadcast_mac_addr(get_ra(wlanhdr)) ? "BC" : 
is_multicast_mac_addr(get_ra(wlanhdr)) ? "MC" : "UC"
+                                       , 
is_broadcast_mac_addr(rtw_get_ra(wlanhdr)) ? "BC" : 
is_multicast_mac_addr(rtw_get_ra(wlanhdr)) ? "MC" : "UC"
                                        , HDATA_RATE(attrib->data_rate)
                                        , phys_t2->band, phys_t2->channel, 
phys_t2->l_rxsc, phys_t2->ht_rxsc
                                );
--- hal/hal_com.c
+++ hal/hal_com.c
@@ -13386,7 +13386,7 @@
 
                        /*RTW_INFO("=>%s WIFI_DATA_TYPE or 
WIFI_QOS_DATA_TYPE\n", __FUNCTION__);*/
                        if (psta) {
-                               if 
(IS_MCAST(get_ra(get_recvframe_data(prframe))))
+                               if 
(IS_MCAST(rtw_get_ra(get_recvframe_data(prframe))))
                                        psta_dframe_info = 
&psta->sta_dframe_info_bmc;
                                else
                                        psta_dframe_info = 
&psta->sta_dframe_info;
--- os_dep/linux/ioctl_cfg80211.c
+++ os_dep/linux/ioctl_cfg80211.c
@@ -6666,7 +6666,7 @@
 indicate:
 #endif
        #if defined(RTW_DEDICATED_P2P_DEVICE)
-       if (rtw_cfg80211_redirect_pd_wdev(dvobj_to_wiphy(dvobj), get_ra(frame), 
&wdev))
+       if (rtw_cfg80211_redirect_pd_wdev(dvobj_to_wiphy(dvobj), 
rtw_get_ra(frame), &wdev))
                if (0)
                        RTW_INFO("redirect to pd_wdev:%p\n", wdev);
        #endif

Reply via email to