@@ -1,4 +1,4 @@
1−{ stdenv, fetchurl, lib, openssl, pkgconfig, libnl
1+{ stdenv, fetchpatch, fetchurl, lib, openssl, pkgconfig, libnl
22, dbus_libs ? null, readline ? null, pcsclite ? null
33}:
44
@@ -79,6 +79,11 @@ stdenv.mkDerivation rec {
7979 patches = [
8080 ./0001-P2P-Validate-SSID-element-length-before-copying-it-C.patch
8181 ./build-fix.patch
82+ (fetchpatch {
83+ name = "p2p-fix.patch";
84+ url = "http://w1.fi/cgit/hostap/patch/?id=8a78e227df1ead19be8e12a4108e448887e64d6f";
85+ sha256 = "1k2mcq1jv8xzi8061ixcz6j56n4i8wbq0vxcvml204q1syy2ika0";
86+ })
8287 ];
8388
8489 postInstall = ''