Projects
Essentials
broadcom-wl
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 29
View file
broadcom-wl.changes
Changed
@@ -1,4 +1,9 @@ ------------------------------------------------------------------- +Mon Jul 13 17:50:34 UTC 2026 - Manfred Hollstein <manfred.h@gmx.net> + +- Add broadcom-wl.linux-7.2.patch + +------------------------------------------------------------------- Wed Apr 29 13:50:31 UTC 2026 - Stephan Hemeier <Sauerlandlinux@gmx.de> - Add broadcom-wl.linux-7.1.patch
View file
broadcom-wl.spec
Changed
@@ -2,7 +2,7 @@ # # spec file for package broadcom-wl # -# Copyright (c) 2017-2025 SUSE LLC +# Copyright (c) 2017-2026 SUSE LLC and contributors # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -67,6 +67,7 @@ Patch30: broadcom-wl.linux-6.16.patch Patch31: broadcom-wl.linux-6.17.patch Patch32: broadcom-wl.linux-7.1.patch +Patch33: broadcom-wl.linux-7.2.patch %if %{defined kernel_module_package_buildreqs} BuildRequires: %{kernel_module_package_buildreqs}
View file
broadcom-wl.linux-7.2.patch
Added
@@ -0,0 +1,86 @@ +From 1ce2a04a54718e8dac4ee2dac6ff11d04aef79d0 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Joan=20Bruguera=20Mic=C3=B3?= <joanbrugueram@gmail.com> +Date: Sun, 21 Jun 2026 20:46:45 +0000 +Subject: PATCH Tentative patch for broadcom-wl 6.30.223.271 driver for Linux + 7.2-rc1 + +--- + src/shared/linux_osl.c | 11 +++++++++++ + src/wl/sys/wl_linux.c | 15 +++++++++++++++ + 2 files changed, 26 insertions(+) + +diff -rup a/src/shared/linux_osl.c b/src/shared/linux_osl.c +--- a/src/shared/linux_osl.c 2026-07-13 19:46:34.643647982 +0200 ++++ b/src/shared/linux_osl.c 2026-07-13 19:47:45.438124687 +0200 +@@ -475,8 +475,13 @@ osl_debug_malloc(osl_t *osh, uint size, + if (!basename) + basename = file; + ++ // Rel. commit "string: Remove strncpy() from the kernel" (Kees Cook, 23 Mar 2026) ++#if LINUX_VERSION_CODE >= KERNEL_VERSION(7, 2, 0) ++ strscpy(p->file, basename, BCM_MEM_FILENAME_LEN); ++#else + strncpy(p->file, basename, BCM_MEM_FILENAME_LEN); + p->fileBCM_MEM_FILENAME_LEN - 1 = '\0'; ++#endif + + if (osh) { + p->prev = NULL; +@@ -872,7 +877,13 @@ osl_strcpy(char *d, const char *s) + char* + osl_strncpy(char *d, const char *s, uint n) + { ++ // Rel. commit "string: Remove strncpy() from the kernel" (Kees Cook, 23 Mar 2026) ++#if LINUX_VERSION_CODE >= KERNEL_VERSION(7, 2, 0) ++ strscpy_pad(d, s, n); ++ return (d); ++#else + return (strncpy(d, s, n)); ++#endif + } + + char* +diff -rup a/src/wl/sys/wl_linux.c b/src/wl/sys/wl_linux.c +--- a/src/wl/sys/wl_linux.c 2026-07-13 19:46:34.693309209 +0200 ++++ b/src/wl/sys/wl_linux.c 2026-07-13 19:47:45.438347665 +0200 +@@ -1318,8 +1318,13 @@ wl_alloc_linux_if(wl_if_t *wlif) + bzero(dev, sizeof(struct net_device)); + ether_setup(dev); + ++ // Rel. commit "string: Remove strncpy() from the kernel" (Kees Cook, 23 Mar 2026) ++#if LINUX_VERSION_CODE >= KERNEL_VERSION(7, 2, 0) ++ strscpy(dev->name, intf_name, IFNAMSIZ); ++#else + strncpy(dev->name, intf_name, IFNAMSIZ-1); + dev->nameIFNAMSIZ-1 = '\0'; ++#endif + + priv_link = MALLOC(wl->osh, sizeof(priv_link_t)); + if (!priv_link) { +@@ -1536,8 +1541,13 @@ wl_get_driver_info(struct net_device *de + #endif + bzero(info, sizeof(struct ethtool_drvinfo)); + snprintf(info->driver, sizeof(info->driver), "wl%d", wl->pub->unit); ++ // Rel. commit "string: Remove strncpy() from the kernel" (Kees Cook, 23 Mar 2026) ++#if LINUX_VERSION_CODE >= KERNEL_VERSION(7, 2, 0) ++ strscpy(info->version, EPI_VERSION_STR, sizeof(info->version)); ++#else + strncpy(info->version, EPI_VERSION_STR, sizeof(info->version)); + info->version(sizeof(info->version))-1 = '\0'; ++#endif + } + + static int +@@ -3033,7 +3043,12 @@ _wl_add_monitor_if(wl_task_t *task) + } + + ASSERT(strlen(wlif->name) > 0); ++ // Rel. commit "string: Remove strncpy() from the kernel" (Kees Cook, 23 Mar 2026) ++#if LINUX_VERSION_CODE >= KERNEL_VERSION(7, 2, 0) ++ memcpy(wlif->dev->name, wlif->name, strlen(wlif->name)); ++#else + strncpy(wlif->dev->name, wlif->name, strlen(wlif->name)); ++#endif + + wl->monitor_dev = dev; + if (wl->monitor_type == 1)
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.