]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
wifi-scripts: fix missing variables for setting frag/rts
authorFelix Fietkau <nbd@nbd.name>
Thu, 26 Jun 2025 17:16:21 +0000 (19:16 +0200)
committerFelix Fietkau <nbd@nbd.name>
Thu, 26 Jun 2025 17:16:42 +0000 (19:16 +0200)
Signed-off-by: Felix Fietkau <nbd@nbd.name>
package/network/config/wifi-scripts/files-ucode/lib/netifd/wireless/mac80211.sh

index d278f89518de38c965dc46a011e5e61339b4715a..96cd0d0fc3730f318de3e6cae67fddb7f9df3725 100755 (executable)
@@ -198,9 +198,9 @@ function setup_phy(phy, config, data) {
        system(`iw phy ${phy} set txpower ${config.txpower}`);
 
        if (config.frag)
-               system(`iw phy ${phy} set frag ${frag}`);
+               system(`iw phy ${phy} set frag ${config.frag}`);
        if (config.rts)
-               system(`iw phy ${phy} set rts ${rts}`);
+               system(`iw phy ${phy} set rts ${config.rts}`);
 }
 
 function iw_htmode(config) {