From d3e0850989cbff07143fc0a237c610a74e079555 Mon Sep 17 00:00:00 2001 From: Michael Alan Dorman Date: Fri, 8 May 2015 11:02:01 -0400 Subject: [PATCH] Add wpa_supplicant p2p patch. wpa_supplicant 2.4 appears to have a serious bug that makes impossible to use wifi for some number of people. (See https://bbs.archlinux.org/viewtopic.php?id=196584 for an example) It was resolved in a patch for the to-be-released 2.5 which it seemed worth it to cherry-pick here. --- pkgs/os-specific/linux/wpa_supplicant/default.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pkgs/os-specific/linux/wpa_supplicant/default.nix b/pkgs/os-specific/linux/wpa_supplicant/default.nix index f6142bd630f..c709880af2d 100644 --- a/pkgs/os-specific/linux/wpa_supplicant/default.nix +++ b/pkgs/os-specific/linux/wpa_supplicant/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchurl, lib, openssl, pkgconfig, libnl +{ stdenv, fetchpatch, fetchurl, lib, openssl, pkgconfig, libnl , dbus_libs ? null, readline ? null, pcsclite ? null }: @@ -79,6 +79,11 @@ stdenv.mkDerivation rec { patches = [ ./0001-P2P-Validate-SSID-element-length-before-copying-it-C.patch ./build-fix.patch + (fetchpatch { + name = "p2p-fix.patch"; + url = "http://w1.fi/cgit/hostap/patch/?id=8a78e227df1ead19be8e12a4108e448887e64d6f"; + sha256 = "1k2mcq1jv8xzi8061ixcz6j56n4i8wbq0vxcvml204q1syy2ika0"; + }) ]; postInstall = ''