summary refs log tree commit diff
path: root/pkgs/os-specific/linux/hostapd
diff options
context:
space:
mode:
authorFélix Baylac-Jacqué <felix@alternativebit.fr>2019-06-23 21:33:14 +0200
committerFélix Baylac-Jacqué <felix@alternativebit.fr>2019-06-24 00:26:20 +0200
commit98deb873545deae4f475c3f54451cda0693c29e1 (patch)
tree0c77f2bd8ea2d006e82fe0fffaf83256a1c7edd0 /pkgs/os-specific/linux/hostapd
parent8fb630b26c74d682e4002d946cc39db9b496d034 (diff)
downloadnixpkgs-98deb873545deae4f475c3f54451cda0693c29e1.tar
nixpkgs-98deb873545deae4f475c3f54451cda0693c29e1.tar.gz
nixpkgs-98deb873545deae4f475c3f54451cda0693c29e1.tar.bz2
nixpkgs-98deb873545deae4f475c3f54451cda0693c29e1.tar.lz
nixpkgs-98deb873545deae4f475c3f54451cda0693c29e1.tar.xz
nixpkgs-98deb873545deae4f475c3f54451cda0693c29e1.tar.zst
nixpkgs-98deb873545deae4f475c3f54451cda0693c29e1.zip
hostapd: Add noscan mode.
Applies OpenWRT's noscan patch to hostapd and the relevant option to
the hostapd module.

This noscan patch adds a new `noscan` option allowing us to create
some overlapping BSSs in HT40+/- mode.

Note: this option is disabled by default, we leave this up to the end
user whether it should be enabled or not.

Not being able to create those overlapping BSSs is basically
preventing us to use 802.11n in any urban area where chances to
overlap with another SSID are extremely high.

The patch we are using is a courtesy of the openwrt team and is
applied to the defaul hostapd package in both OpenWRT and Archlinux.
Diffstat (limited to 'pkgs/os-specific/linux/hostapd')
-rw-r--r--pkgs/os-specific/linux/hostapd/default.nix10
1 files changed, 8 insertions, 2 deletions
diff --git a/pkgs/os-specific/linux/hostapd/default.nix b/pkgs/os-specific/linux/hostapd/default.nix
index 73174779c8c..1ec98cb9c51 100644
--- a/pkgs/os-specific/linux/hostapd/default.nix
+++ b/pkgs/os-specific/linux/hostapd/default.nix
@@ -1,7 +1,11 @@
 { stdenv, fetchurl, pkgconfig, libnl, openssl, sqlite ? null }:
 
 with stdenv.lib;
-stdenv.mkDerivation rec {
+let noScanPatch = fetchurl {
+      url="https://git.telliq.com/gtu/openwrt/raw/master/package/network/services/hostapd/patches/300-noscan.patch";
+      sha256 = "04wg4yjc19wmwk6gia067z99gzzk9jacnwxh5wyia7k5wg71yj5k";
+  };
+in stdenv.mkDerivation rec {
   name = "hostapd-${version}";
   version = "2.8";
 
@@ -13,6 +17,8 @@ stdenv.mkDerivation rec {
   nativeBuildInputs = [ pkgconfig ];
   buildInputs = [ libnl openssl sqlite ];
 
+  patches = [ noScanPatch ];
+
   outputs = [ "out" "man" ];
 
   extraConfig = ''
@@ -66,7 +72,7 @@ stdenv.mkDerivation rec {
     repositories.git = git://w1.fi/hostap.git;
     description = "A user space daemon for access point and authentication servers";
     license = licenses.gpl2;
-    maintainers = with maintainers; [ phreedom ];
+    maintainers = with maintainers; [ phreedom ninjatrappeur ];
     platforms = platforms.linux;
   };
 }