pkgs/openwrt/uci-config: add support for disassoc_low_ack as used with ap57

This commit is contained in:
Astro 2023-09-25 22:06:14 +02:00
parent fc5f04850a
commit 0aa6cb7828
3 changed files with 14 additions and 1 deletions

View File

@ -1705,7 +1705,10 @@
channel = 100;
htmode = "VHT80";
ssids = {
"Zentralwerk" = { net = "roof"; };
"Zentralwerk" = {
net = "roof";
disassocLowAck = false;
};
"ZW public" = { net = "pub"; };
};
};

View File

@ -472,6 +472,13 @@ let
type = nullOr str;
default = null;
};
disassocLowAck = mkOption {
type = bool;
default = true;
description = ''
Disable for wireless bridges.
'';
};
};
}));
};

View File

@ -295,6 +295,9 @@ in
else ''
uci -q delete wireless.@wifi-iface[-1].key || true
''}
${lib.optionalString (!ssidConfig.disassocLowAck) ''
uci set wireless.@wifi-iface[-1].disassoc_low_ack='0'
''}
''
) (builtins.attrNames radioConfig.ssids)}
'') (builtins.attrNames hostConfig.wifi))}