fix(ap01): bridge only once the WLAN is in operational state
It required a lot of technology, but hey, we now have it. Signed-off-by: Ryan Lahfa <ryan@dgnum.eu>
This commit is contained in:
parent
337a71a169
commit
c0ec57ef22
1 changed files with 5 additions and 1 deletions
|
@ -124,7 +124,7 @@ rec {
|
||||||
wlan1 = {
|
wlan1 = {
|
||||||
member = config.hardware.networkInterfaces.wlan1;
|
member = config.hardware.networkInterfaces.wlan1;
|
||||||
# Bridge only once hostapd is ready.
|
# Bridge only once hostapd is ready.
|
||||||
dependencies = [ config.services.hostap-2 ];
|
dependencies = [ config.services.hostap-2-ready ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -205,6 +205,10 @@ rec {
|
||||||
services.hostap-2 = mkWifiSta (
|
services.hostap-2 = mkWifiSta (
|
||||||
baseParams // clientRadius // externalRadius // radiusKeyMgmt // modernParams
|
baseParams // clientRadius // externalRadius // radiusKeyMgmt // modernParams
|
||||||
) config.hardware.networkInterfaces.wlan1 secrets-2;
|
) config.hardware.networkInterfaces.wlan1 secrets-2;
|
||||||
|
# Oneshot that waits until the hostapd has set the interface in operational state.
|
||||||
|
services.hostap-2-ready = svc.hostapd-ready.build {
|
||||||
|
interface = config.hardware.networkInterfaces.wlan1;
|
||||||
|
};
|
||||||
|
|
||||||
defaultProfile.packages = with pkgs; [
|
defaultProfile.packages = with pkgs; [
|
||||||
zyxel-bootconfig
|
zyxel-bootconfig
|
||||||
|
|
Loading…
Reference in a new issue