From af5b477ad82f878d1e08bf0a49b6a123190f80ca Mon Sep 17 00:00:00 2001 From: Thomas Gerbet Date: Wed, 7 Aug 2024 23:13:27 +0200 Subject: [PATCH] wpa_supplicant: revert commit breaking authentication when brcmfmac is used See https://bugzilla.redhat.com/show_bug.cgi?id=2302577 for more context. --- pkgs/os-specific/linux/wpa_supplicant/default.nix | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/pkgs/os-specific/linux/wpa_supplicant/default.nix b/pkgs/os-specific/linux/wpa_supplicant/default.nix index f163978b9512..617eadbcc59f 100644 --- a/pkgs/os-specific/linux/wpa_supplicant/default.nix +++ b/pkgs/os-specific/linux/wpa_supplicant/default.nix @@ -1,4 +1,4 @@ -{ lib, stdenv, fetchurl, openssl, pkg-config, libnl +{ lib, stdenv, fetchurl, fetchpatch, openssl, pkg-config, libnl , nixosTests, wpa_supplicant_gui , dbusSupport ? !stdenv.hostPlatform.isStatic, dbus , withReadline ? true, readline @@ -16,6 +16,15 @@ stdenv.mkDerivation rec { sha256 = "sha256-kS6gb3TjCo42+7aAZNbN/yGNjVkdsPxddd7myBrH/Ao="; }; + patches = [ + (fetchpatch { + name = "revert-change-breaking-auth-broadcom.patch"; + url = "https://w1.fi/cgit/hostap/patch/?id=41638606054a09867fe3f9a2b5523aa4678cbfa5"; + hash = "sha256-X6mBbj7BkW66aYeSCiI3JKBJv10etLQxaTRfRgwsFmM="; + revert = true; + }) + ]; + # TODO: Patch epoll so that the dbus actually responds # TODO: Figure out how to get privsep working, currently getting SIGBUS extraConfig = ''