Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

Merge pull request #26170 from kirelagin/wlan-fix

wirelessInterfaces: Add a missing parameter

authored by Joachim F and committed by GitHub 0b7c4c19 a071a06c

+2 -2
+2 -2
nixos/modules/tasks/network-interfaces.nix
··· 1110 1110 ''; 1111 1111 1112 1112 # Udev script to execute for a new WLAN interface. The script configures the new WLAN interface. 1113 - newInterfaceScript = new: pkgs.writeScript "udev-run-script-wlan-interfaces-${new._iName}.sh" '' 1113 + newInterfaceScript = device: new: pkgs.writeScript "udev-run-script-wlan-interfaces-${new._iName}.sh" '' 1114 1114 #!${pkgs.stdenv.shell} 1115 1115 # Configure the new interface 1116 1116 ${pkgs.iw}/bin/iw dev ${new._iName} set type ${new.type} ··· 1132 1132 # It is important to have that rule first as overwriting the NAME attribute also prevents the 1133 1133 # next rules from matching. 1134 1134 ${flip (concatMapStringsSep "\n") (wlanListDeviceFirst device wlanDeviceInterfaces."${device}") (interface: 1135 - ''ACTION=="add", SUBSYSTEM=="net", ENV{DEVTYPE}=="wlan", ENV{INTERFACE}=="${interface._iName}", ${systemdAttrs interface._iName}, RUN+="${newInterfaceScript interface}"'')} 1135 + ''ACTION=="add", SUBSYSTEM=="net", ENV{DEVTYPE}=="wlan", ENV{INTERFACE}=="${interface._iName}", ${systemdAttrs interface._iName}, RUN+="${newInterfaceScript device interface}"'')} 1136 1136 1137 1137 # Add the required, new WLAN interfaces to the default WLAN interface with the 1138 1138 # persistent, default name as assigned by udev.