Package: broadcom-sta-dkms
Severity: normal
Tags: patch

Dear Maintainer,

The broadcom driver fails to build on linux 5.2.0-2-amd64 due to use of
a deprecated function. I've attached a patch that should fix the issue.
(Replaces get_ds() with KERNEL_DS in wl_cfg80211_hybrid.c.)


--- a/amd64/src/wl/sys/wl_cfg80211_hybrid.c
+++ b/amd64/src/wl/sys/wl_cfg80211_hybrid.c
@@ -457,7 +457,7 @@
        ifr.ifr_data = (caddr_t)&ioc;
        fs = get_fs();
-       set_fs(get_ds());
+       set_fs(KERNEL_DS);
 #if defined(WL_USE_NETDEV_OPS)
        err = dev->netdev_ops->ndo_do_ioctl(dev, &ifr, SIOCDEVPRIVATE);

-- System Information:
Debian Release: bullseye/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 5.2.0-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_AU:en (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages broadcom-sta-dkms depends on:
ii  dkms  2.7.1-2

Versions of packages broadcom-sta-dkms recommends:
pn  wireless-tools  <none>

broadcom-sta-dkms suggests no packages.

Reply via email to